* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f4f7fc;
    font-family: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: #1a2c3e;
    padding: 40px 20px 80px;
}

.booking-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.doctor-brand {
    text-align: center;
    margin-bottom: 32px;
}

.doctor-badge {
    display: inline-block;
    background: #eef2f9;
    color: #0b3b5f;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: 40px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.doctor-brand h1 {
    font-size: 28px;
    font-weight: 700;
    color: #0b2b40;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}

.doctor-brand p {
    font-size: 15px;
    color: #4b6a7f;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

.booking-card {
    background: white;
    border-radius: 28px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05), 0 4px 8px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

/* ==================== ESTILO BASE DAS ABAS (DESKTOP/TABLET - ESPALHADAS) ==================== */
.steps-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 24px 28px 0 28px;
    border-bottom: 1px solid #e9edf2;
}

.step {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.step.active {
    border-bottom-color: #2c7da0;
}

.step .step-number {
    width: 32px;
    height: 32px;
    background: #f0f3f8;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #2c5a74;
    transition: all 0.2s;
}

.step.active .step-number {
    background: #2c7da0;
    color: white;
    box-shadow: 0 4px 10px rgba(44, 125, 160, 0.2);
}

.step.done .step-number {
    background: #e0f0f5;
    color: #1e6f8f;
}

.step-text {
    font-weight: 500;
    font-size: 14px;
    color: #2c5a74;
    white-space: nowrap;
}

.step.active .step-text {
    color: #1a4e6b;
    font-weight: 600;
}

.panel {
    display: none;
    padding: 28px;
    animation: fadeSlide 0.25s ease;
}

.panel.active-panel {
    display: block;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.cal-month {
    font-size: 18px;
    font-weight: 700;
    color: #1a475f;
}

.nav-button {
    background: white;
    border: 1px solid #dee4ec;
    width: 36px;
    height: 36px;
    border-radius: 60px;
    font-size: 18px;
    cursor: pointer;
    color: #3c6e8f;
    transition: all 0.2s;
}

.nav-button:hover {
    background: #eef3f9;
    border-color: #bdd3e6;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6e8ea8;
    letter-spacing: 0.3px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.day {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    border-radius: 40px;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s;
    color: #1e3a4d;
}

.day.empty, .day.past {
    color: #cbdae6;
    cursor: default;
    background: transparent;
}

.day.selected {
    background: #2c7da0;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(44, 125, 160, 0.2);
}

.day.today {
    border: 1px solid #2c7da0;
    background: white;
    color: #2c7da0;
}

.day:not(.empty):not(.past):hover {
    background: #e6f0f6;
}

.divider {
    height: 1px;
    background: #e9edf2;
    margin: 24px 0 20px 0;
}

.section-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #6f95b0;
    margin-bottom: 14px;
}

.times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.time-slot {
    text-align: center;
    padding: 10px 6px;
    border: 1px solid #e2e9f0;
    border-radius: 60px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    color: #1c4b6e;
}

.time-slot.selected {
    background: #2c7da0;
    border-color: #2c7da0;
    color: white;
}

.time-slot.occupied {
    background: #f8fafc;
    color: #b9cee2;
    border-color: #eef2f7;
    text-decoration: line-through;
    cursor: not-allowed;
}

.time-slot:not(.occupied):hover {
    background: #e7f0f8;
    border-color: #b8d2ea;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    font-size: 12px;
    font-weight: 600;
    color: #2c5a74;
    letter-spacing: 0.3px;
}

.field input, .field select, .field textarea {
    background: white;
    border: 1px solid #dee6ef;
    padding: 12px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    outline: none;
}

.field input:focus, .field select:focus, .field textarea:focus {
    border-color: #2c7da0;
    box-shadow: 0 0 0 3px rgba(44, 125, 160, 0.1);
}

.field input.error {
    border-color: #e06c6c;
}

.err-msg {
    font-size: 11px;
    color: #d95959;
    display: none;
    margin-top: 4px;
}

.err-msg.show {
    display: block;
}

.summary-list {
    list-style: none;
    background: #f9fbfd;
    border-radius: 24px;
    padding: 4px 0;
}

.summary-list li {
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f8;
    font-size: 14px;
}

.summary-list li:last-child {
    border-bottom: none;
}

.s-label {
    font-weight: 500;
    color: #5f7f99;
}

.s-val {
    font-weight: 600;
    color: #133b51;
    text-align: right;
}

.price-box {
    background: #f0f7fa;
    border-radius: 20px;
    padding: 16px;
    margin: 16px 0;
}

.coupon-row {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}

.coupon-row input {
    flex: 1;
    background: white;
    border: 1px solid #dee6ef;
    padding: 12px 14px;
    border-radius: 20px;
    font-size: 14px;
}

.payment-methods {
    display: flex;
    gap: 16px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.payment-option {
    flex: 1;
    padding: 16px;
    border: 2px solid #e2e9f0;
    border-radius: 20px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.payment-option.selected {
    border-color: #2c7da0;
    background: #f0f9ff;
}

.card-form {
    margin-top: 20px;
    padding: 20px;
    background: #f9fbfd;
    border-radius: 20px;
}

.button-group {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: #2c7da0;
    color: white;
    box-shadow: 0 2px 6px rgba(44, 125, 160, 0.2);
}

.btn-primary:hover {
    background: #236b89;
    transform: scale(0.98);
}

.btn-secondary {
    background: white;
    border: 1px solid #cfdfed;
    color: #2a627f;
}

.btn-secondary:hover {
    background: #f7fafd;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: default;
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading.active {
    display: block;
}

.thankyou-container {
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    overflow: hidden;
    animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-header {
    background: linear-gradient(135deg, #2c7da0 0%, #1a5d7a 100%);
    padding: 40px 32px;
    text-align: center;
    color: white;
}

.check-icon {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.2);
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
}

.success-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.info-card {
    background: #f8fafd;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e9edf2;
}

.info-row:last-child { border-bottom: none; }
.info-label { font-weight: 500; color: #5f7f99; }
.info-value { font-weight: 600; color: #133b51; }

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    background: #4caf50;
    color: white;
    font-size: 12px;
}

/* Tooltip para horários ocupados */
.time-slot.occupied {
    position: relative;
}

.time-slot.occupied:hover:after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
    margin-bottom: 5px;
}

.time-slot.occupied:hover:before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    margin-bottom: -5px;
}

/* Estilos para cupons */
.coupon-message {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    animation: slideDown 0.3s ease;
}

.coupon-message.success {
    background: #d4edda;
    color: #155724;
    border-left: 3px solid #28a745;
}

.coupon-message.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 3px solid #dc3545;
}

.coupon-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 3px solid #17a2b8;
}

.discount-details-container {
    margin: 12px 0;
}

.discount-details {
    background: linear-gradient(135deg, #f0f7fa 0%, #e8f0f5 100%);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-left: 4px solid #2c7da0;
}

.discount-info {
    flex: 1;
}

.discount-badge {
    display: inline-block;
    background: #2c7da0;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.coupon-code {
    display: inline-block;
    background: #fff;
    color: #2c7da0;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.coupon-desc {
    font-size: 12px;
    color: #4b6a7f;
    margin: 8px 0 4px;
}

.discount-breakdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.discount-breakdown small {
    font-size: 11px;
    color: #5f7f99;
}

.discount-breakdown strong {
    color: #2c7da0;
    font-size: 13px;
}

.remove-coupon-btn {
    background: white;
    border: 1px solid #dee6ef;
    border-radius: 40px;
    padding: 8px 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: #6c757d;
}

.remove-coupon-btn:hover {
    background: #f8d7da;
    border-color: #dc3545;
    color: #dc3545;
}

.discount-percent {
    font-size: 11px;
    color: #28a745;
    margin-left: 4px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Preço com desconto */
.price-box #discountRow {
    border-bottom: 1px solid #e0e8f0;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.discount-value {
    color: #28a745;
}

/* ==================== TABLET (768px - 991px) ==================== */
@media (min-width: 768px) and (max-width: 991px) {
    .steps-row {
        padding: 20px 24px 0 24px;
        gap: 8px;
    }

    .step {
        gap: 8px;
    }

    .step-text {
        font-size: 13px;
    }

    .booking-wrapper {
        max-width: 95%;
    }

    .doctor-brand h1 {
        font-size: 24px;
    }

    .panel {
        padding: 24px;
    }

    .form-row {
        gap: 14px;
    }
}

/* ==================== MOBILE (menor que 768px) - ROLAGEM HORIZONTAL ==================== */
@media (max-width: 767px) {
    body {
        padding: 20px 15px 60px;
    }

    .booking-wrapper {
        max-width: 100%;
    }

    .doctor-brand {
        margin-bottom: 24px;
    }

    .doctor-brand h1 {
        font-size: 22px;
    }

    .doctor-badge {
        font-size: 11px;
        padding: 5px 12px;
    }

    .booking-card {
        border-radius: 20px;
    }

    /* Scroll horizontal das abas em mobile */
    .steps-row {
        justify-content: flex-start;
        gap: 12px;
        padding: 16px 16px 0 16px;
        overflow-x: auto;
        overflow-y: visible;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scroll-padding: 0 40px;
    }

    .steps-row {
        background:
                linear-gradient(to right, white 30%, rgba(255,255,255,0)),
                linear-gradient(to left, white 30%, rgba(255,255,255,0));
        background-position: left center, right center;
        background-repeat: no-repeat;
        background-size: 20px 100%, 20px 100%;
        background-attachment: local, local;
    }

    .steps-row::-webkit-scrollbar {
        height: 3px;
    }

    .steps-row::-webkit-scrollbar-track {
        background: #e9edf2;
        border-radius: 10px;
    }

    .steps-row::-webkit-scrollbar-thumb {
        background: #2c7da0;
        border-radius: 10px;
    }

    .step {
        flex: 0 0 auto;
        min-width: 90px;
        gap: 8px;
        padding-bottom: 14px;
    }

    .step .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
        flex-shrink: 0;
    }

    .step-text {
        font-size: 12px;
        white-space: nowrap;
    }

    .panel {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 12px;
    }

    .field.full-width {
        grid-column: span 1 !important;
    }

    .field label {
        font-size: 13px;
    }

    .field input,
    .field select,
    .field textarea {
        padding: 12px 14px;
        font-size: 16px;
        border-radius: 16px;
    }

    .field input::placeholder,
    .field select::placeholder,
    .field textarea::placeholder {
        font-size: 14px;
    }

    .button-group {
        margin-top: 24px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
        flex: 1;
        min-width: 120px;
        text-align: center;
    }

    .err-msg {
        font-size: 11px;
    }

    .patient-found-message {
        font-size: 12px;
        padding: 10px 12px;
        margin-bottom: 12px;
    }

    .cal-month {
        font-size: 16px;
    }

    .nav-button {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .weekdays {
        font-size: 11px;
        gap: 4px;
    }

    .calendar-grid {
        gap: 4px;
    }

    .day {
        font-size: 12px;
        border-radius: 30px;
    }

    .times-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 10px;
    }

    .time-slot {
        padding: 8px 4px;
        font-size: 12px;
    }

    .price-box {
        padding: 14px;
        margin: 14px 0;
    }

    .price-box div {
        font-size: 14px;
    }

    .coupon-row {
        flex-direction: column;
        gap: 10px;
        margin: 14px 0;
    }

    .coupon-row input {
        padding: 12px 14px;
        font-size: 14px;
        width: 100%;
    }

    .coupon-row button {
        width: 100%;
        padding: 12px;
    }

    .payment-methods {
        gap: 12px;
        margin: 16px 0;
    }

    .payment-option {
        padding: 14px;
        font-size: 14px;
    }

    .payment-info p {
        padding: 16px !important;
        font-size: 14px !important;
    }
}

/* ==================== MOBILE PEQUENO (480px) ==================== */
@media (max-width: 480px) {
    body {
        padding: 15px 12px 50px;
    }

    .doctor-brand h1 {
        font-size: 20px;
    }

    .doctor-brand p {
        font-size: 13px;
    }

    .doctor-badge {
        font-size: 10px;
        margin-bottom: 12px;
    }

    .steps-row {
        padding: 14px 16px 0 16px;
    }

    .step {
        min-width: 75px;
        gap: 6px;
    }

    .step .step-number {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .step-text {
        font-size: 11px;
    }

    .panel {
        padding: 16px;
    }

    .form-row {
        gap: 14px;
    }

    .field label {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .field input,
    .field select,
    .field textarea {
        padding: 11px 12px;
        font-size: 15px;
        border-radius: 14px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .err-msg {
        font-size: 10px;
    }

    .cal-header {
        margin-bottom: 16px;
    }

    .cal-month {
        font-size: 14px;
    }

    .nav-button {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .weekdays {
        font-size: 10px;
        gap: 3px;
    }

    .calendar-grid {
        gap: 3px;
    }

    .day {
        font-size: 11px;
        border-radius: 25px;
    }

    .section-label {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .divider {
        margin: 16px 0 12px 0;
    }

    .times-grid {
        grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
        gap: 8px;
    }

    .time-slot {
        padding: 6px 3px;
        font-size: 11px;
    }

    .price-box {
        padding: 12px;
    }

    .price-box div {
        font-size: 13px;
    }

    .price-box #totalPrice {
        font-size: 16px;
    }

    .coupon-row input {
        font-size: 13px;
        padding: 10px 12px;
    }

    .payment-option {
        padding: 12px;
        font-size: 13px;
    }

    .payment-option strong {
        font-size: 13px;
    }
}

/* ==================== MOBILE MUITO PEQUENO (360px) ==================== */
@media (max-width: 360px) {
    .doctor-brand h1 {
        font-size: 18px;
    }

    .step {
        min-width: 68px;
        gap: 5px;
    }

    .step .step-number {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .step-text {
        font-size: 10px;
    }

    .panel {
        padding: 14px;
    }

    .field input,
    .field select,
    .field textarea {
        padding: 10px 12px;
        font-size: 14px;
    }

    .btn {
        padding: 9px 14px;
        font-size: 12px;
    }

    .day {
        font-size: 10px;
    }

    .time-slot {
        font-size: 10px;
        padding: 5px 2px;
    }

    .price-box {
        padding: 10px;
    }

    .price-box div {
        font-size: 12px;
    }

    .payment-option {
        padding: 10px;
        font-size: 12px;
    }
}

/* ==================== TELAS EXTREMAMENTE PEQUENAS (319px) - TEXTO ABREVIADO ==================== */
@media (max-width: 319px) {
    .step-text {
        font-size: 0;
    }

    .step-text::before {
        content: attr(data-short);
        font-size: 10px;
        font-weight: 500;
    }

    .step {
        min-width: 55px;
        justify-content: center;
    }
}

/* ==================== ORIENTATION LANDSCAPE ==================== */
@media (max-width: 767px) and (orientation: landscape) {
    body {
        padding: 15px 12px 40px;
    }

    .panel {
        padding: 16px;
    }

    .form-row {
        gap: 12px;
    }

    .field input,
    .field select,
    .field textarea {
        padding: 8px 12px;
    }

    .button-group {
        margin-top: 20px;
    }

    .btn {
        padding: 8px 16px;
    }
}

/* ==================== TELAS HD (1920px+) ==================== */
@media (min-width: 1920px) {
    .booking-wrapper {
        max-width: 1000px;
    }

    .doctor-brand h1 {
        font-size: 32px;
    }

    .doctor-brand p {
        font-size: 16px;
    }

    .panel {
        padding: 32px;
    }

    .form-row {
        gap: 20px;
    }

    .field label {
        font-size: 13px;
    }

    .field input,
    .field select,
    .field textarea {
        padding: 14px 16px;
        font-size: 15px;
    }

    .btn {
        padding: 12px 28px;
        font-size: 15px;
    }
}

/* ==================== SUPORTE PARA NOTCH/DISPLAY CUTOUTS ==================== */
@supports (padding: max(0px)) {
    body {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-bottom: max(60px, env(safe-area-inset-bottom));
    }

    .pix-modal-overlay {
        padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    }
}

/* ==================== PREVENÇÃO DE ZOOM EM INPUTS NO IOS ==================== */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    select,
    textarea,
    input {
        font-size: 16px;
    }
}

/* ==================== TOUCH DEVICES ==================== */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .payment-option,
    .time-slot,
    .day:not(.empty):not(.past),
    .nav-button {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .btn:active,
    .payment-option:active,
    .time-slot:active {
        opacity: 0.7;
        transform: scale(0.98);
    }
}

/* ==================== ANIMAÇÕES GERAIS ==================== */
* {
    transition: all 0.2s ease;
}

@media (max-width: 480px) {
    .field input,
    .field select,
    .field textarea,
    .btn,
    .payment-option,
    .time-slot {
        transition: background-color 0.2s, transform 0.1s;
    }

    .field input:active,
    .btn:active {
        transform: scale(0.98);
    }
}

@media (max-width: 767px) {
    .booking-card {
        margin-bottom: 20px;
    }
}

/* ==================== MENSAGEM DE PACIENTE ENCONTRADO ==================== */
.patient-found-message {
    background: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 15px;
    animation: fadeSlide 0.3s ease;
}

/* ==================== LGPD POPUP MODAL ==================== */
.lgpd-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lgpdFadeIn 0.3s ease;
}

@keyframes lgpdFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lgpd-popup-container {
    max-width: 500px;
    width: 90%;
    background: white;
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: lgpdPopIn 0.3s ease;
}

@keyframes lgpdPopIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lgpd-popup-header {
    background: linear-gradient(135deg, #2c7da0 0%, #1a5d7a 100%);
    padding: 24px 24px 20px;
    text-align: center;
    color: white;
}

.lgpd-popup-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.lgpd-popup-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white;
}

.lgpd-popup-header p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.lgpd-popup-body {
    padding: 24px;
}

.lgpd-popup-text {
    color: #4a5568;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 20px;
}

.lgpd-popup-links {
    background: #f7fafc;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
}

.lgpd-popup-links-title {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lgpd-popup-links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lgpd-popup-links-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c7da0;
    text-decoration: none;
    font-size: 13px;
    padding: 6px 0;
    transition: color 0.2s;
}

.lgpd-popup-links-list a:hover {
    color: #1a5d7a;
    text-decoration: underline;
}

.lgpd-popup-buttons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.lgpd-popup-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.lgpd-popup-btn-primary {
    background: #2c7da0;
    color: white;
}

.lgpd-popup-btn-primary:hover {
    background: #236b89;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 125, 160, 0.3);
}

.lgpd-popup-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.lgpd-popup-btn-secondary:hover {
    background: #e2e8f0;
}

/* Mobile POPUP */
@media (max-width: 640px) {
    .lgpd-popup-container {
        width: 92%;
        border-radius: 24px;
    }

    .lgpd-popup-header {
        padding: 20px 20px 16px;
    }

    .lgpd-popup-icon {
        font-size: 40px;
    }

    .lgpd-popup-header h3 {
        font-size: 18px;
    }

    .lgpd-popup-body {
        padding: 20px;
    }

    .lgpd-popup-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .lgpd-popup-btn {
        padding: 12px 16px;
    }

    .lgpd-popup-links {
        padding: 12px;
    }
}

@media (max-width: 380px) {
    .lgpd-popup-header h3 {
        font-size: 16px;
    }

    .lgpd-popup-text {
        font-size: 13px;
    }

    .lgpd-popup-links-list a {
        font-size: 12px;
    }
}

/* ==================== LGPD BANNER NO RODAPÉ ==================== */
.lgpd-footer-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a2c3e 0%, #0f1e2c 100%);
    color: white;
    z-index: 100000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: lgpdSlideUp 0.4s ease;
}

@keyframes lgpdSlideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.lgpd-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.lgpd-footer-text {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 2;
    min-width: 250px;
}

.lgpd-footer-icon {
    font-size: 28px;
    background: rgba(255, 255, 255, 0.1);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.lgpd-footer-message {
    flex: 1;
}

.lgpd-footer-message strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    color: #ffffff;
}

.lgpd-footer-message p {
    font-size: 12px;
    margin: 0;
    opacity: 0.8;
    line-height: 1.4;
}

.lgpd-footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    flex: 1;
    justify-content: center;
}

.lgpd-footer-links a {
    color: #7ab3c8;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s;
}

.lgpd-footer-links a:hover {
    color: #2c7da0;
    text-decoration: underline;
}

.lgpd-footer-buttons {
    display: flex;
    gap: 12px;
}

.lgpd-footer-btn {
    padding: 8px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: 'Inter', sans-serif;
}

.lgpd-footer-btn-primary {
    background: #2c7da0;
    color: white;
}

.lgpd-footer-btn-primary:hover {
    background: #236b89;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 125, 160, 0.3);
}

.lgpd-footer-btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.lgpd-footer-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsivo LGPD Banner */
@media (max-width: 768px) {
    .lgpd-footer-container {
        flex-direction: column;
        padding: 16px;
        gap: 12px;
    }

    .lgpd-footer-text {
        width: 100%;
    }

    .lgpd-footer-links {
        width: 100%;
        justify-content: center;
        gap: 16px;
    }

    .lgpd-footer-buttons {
        width: 100%;
        justify-content: center;
    }

    .lgpd-footer-btn {
        flex: 1;
        text-align: center;
        padding: 10px 16px;
    }

    .lgpd-footer-icon {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .lgpd-footer-message strong {
        font-size: 13px;
    }

    .lgpd-footer-message p {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .lgpd-footer-links {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .lgpd-footer-links a {
        font-size: 11px;
    }
}

/* ==================== BOTÕES DE SCROLL DAS ABAS ==================== */
.steps-scroll-btn {
    transition: all 0.2s ease;
}

.steps-scroll-btn:hover {
    transform: translateY(-50%) scale(1.05);
    background: #236b89 !important;
}

.steps-scroll-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* ==================== AJUSTES ADICIONAIS ==================== */
.step-text {
    white-space: nowrap;
}

/* Campo de input com erro */
.field input.error,
.field select.error,
.field textarea.error {
    border-color: #dc3545 !important;
    background-color: #fff8f8 !important;
}

/* Mensagem de erro do formulário */
.form-error-message {
    animation: slideDown 0.3s ease;
}

.lgpd-error {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Wrapper para setas de navegação (apenas mobile) */
.steps-scroll-wrapper {
    position: relative;
}

/* Em desktop, o wrapper não afeta o layout */
@media (min-width: 768px) {
    .steps-scroll-wrapper {
        margin: 0;
    }
}

/* ==================== RESPONSIVIDADE DO BRICK DO MERCADO PAGO ==================== */

/* Container do Brick */
#cardPaymentBrick_container,
.mercadopago-brick-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Forçar responsividade do Brick */
.mp-brick-container,
.mp-card-form,
.mp-card-form__container,
.mp-card-form__card-number,
.mp-card-form__expiration-date,
.mp-card-form__security-code,
.mp-card-form__cardholder-name,
.mp-card-form__doc-type,
.mp-card-form__doc-number,
.mp-card-form__installments {
    width: 100% !important;
    max-width: 100% !important;
}

/* Ajustar inputs do Brick */
.mp-card-form__card-number iframe,
.mp-card-form__expiration-date iframe,
.mp-card-form__security-code iframe,
.mp-card-form__cardholder-name iframe,
.mp-card-form__doc-type iframe,
.mp-card-form__doc-number iframe,
.mp-card-form__installments iframe {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
}

/* Container principal do Brick */
#cardPaymentBrick_container > div {
    width: 100% !important;
    max-width: 100% !important;
}

/* Ajustes específicos para mobile */
@media (max-width: 767px) {
    #creditCardBrickContainer {
        margin: 0 -10px;
        padding: 0 10px;
        width: calc(100% + 20px);
    }

    #cardPaymentBrick_container {
        width: 100%;
        overflow-x: hidden;
    }

    /* Forçar iframes internos a respeitarem largura */
    #cardPaymentBrick_container iframe {
        width: 100% !important;
        min-width: 100% !important;
    }

    /* Ajustar espaçamento dos campos */
    .mp-card-form__container {
        padding: 0 !important;
    }

    /* Cada campo ocupando linha inteira */
    .mp-card-form__card-number,
    .mp-card-form__expiration-date,
    .mp-card-form__security-code,
    .mp-card-form__cardholder-name,
    .mp-card-form__doc-type,
    .mp-card-form__doc-number,
    .mp-card-form__installments {
        margin-bottom: 16px !important;
        width: 100% !important;
    }

    /* Labels menores */
    .mp-card-form__label {
        font-size: 12px !important;
        margin-bottom: 6px !important;
    }
}

/* ==================== RESPONSIVIDADE EXTREMA PARA BRICK DO MERCADO PAGO (360px) ==================== */

@media (max-width: 360px) {
    /* Container principal do Brick */
    #creditCardBrickContainer {
        margin: 0 -12px;
        padding: 0 12px;
        width: calc(100% + 24px);
    }

    #cardPaymentBrick_container {
        width: 100%;
        overflow-x: hidden;
        min-height: 480px;
    }

    /* Forçar todos os elementos internos a respeitarem 100% de largura */
    #cardPaymentBrick_container > div,
    #cardPaymentBrick_container .mp-brick-container,
    #cardPaymentBrick_container .mp-card-form,
    #cardPaymentBrick_container .mp-card-form__container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Forçar iframes a ocuparem 100% da largura */
    #cardPaymentBrick_container iframe {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    /* Campos individuais do Brick */
    .mp-card-form__card-number,
    .mp-card-form__expiration-date,
    .mp-card-form__security-code,
    .mp-card-form__cardholder-name,
    .mp-card-form__doc-type,
    .mp-card-form__doc-number,
    .mp-card-form__installments {
        width: 100% !important;
        margin-bottom: 20px !important;
        display: block !important;
    }

    /* Labels menores */
    .mp-card-form__label {
        font-size: 11px !important;
        margin-bottom: 6px !important;
        display: block !important;
    }

    /* Inputs internos */
    .mp-card-form__card-number input,
    .mp-card-form__expiration-date input,
    .mp-card-form__security-code input,
    .mp-card-form__cardholder-name input {
        font-size: 14px !important;
        padding: 10px 12px !important;
    }

    /* Container de parcelas */
    .mp-card-form__installments select {
        font-size: 14px !important;
        padding: 10px 12px !important;
        width: 100% !important;
    }

    /* Botão de pagamento (se aparecer) */
    .mp-brick-button {
        width: 100% !important;
        margin-top: 16px !important;
        padding: 14px !important;
        font-size: 14px !important;
    }

    /* Mensagens de erro */
    .mp-card-form__error-message {
        font-size: 10px !important;
        margin-top: 4px !important;
    }

    /* Ajustar padding interno do Brick */
    .mp-card-form__container > div {
        padding: 0 !important;
    }
}

@media (max-width: 320px) {
    /* Container principal do Brick */
    #creditCardBrickContainer {
        margin: 0 -15px;
        padding: 0 15px;
        width: calc(100% + 30px);
    }

    #cardPaymentBrick_container {
        width: 100%;
        overflow-x: hidden;
        min-height: 480px;
    }

    /* Forçar todos os elementos internos a respeitarem 100% de largura */
    #cardPaymentBrick_container > div,
    #cardPaymentBrick_container .mp-brick-container,
    #cardPaymentBrick_container .mp-card-form,
    #cardPaymentBrick_container .mp-card-form__container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Forçar iframes a ocuparem 100% da largura */
    #cardPaymentBrick_container iframe {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    /* Campos individuais do Brick */
    .mp-card-form__card-number,
    .mp-card-form__expiration-date,
    .mp-card-form__security-code,
    .mp-card-form__cardholder-name,
    .mp-card-form__doc-type,
    .mp-card-form__doc-number,
    .mp-card-form__installments {
        width: 100% !important;
        margin-bottom: 14px !important;
        display: block !important;
    }

    /* Labels menores */
    .mp-card-form__label {
        font-size: 10px !important;
        margin-bottom: 4px !important;
        display: block !important;
    }

    /* Inputs internos - ENCURTADOS */
    .mp-card-form__card-number input,
    .mp-card-form__expiration-date input,
    .mp-card-form__security-code input,
    .mp-card-form__cardholder-name input {
        font-size: 12px !important;
        padding: 6px 8px !important;
        height: 36px !important;
        min-height: 36px !important;
    }

    /* Container de parcelas - ENCURTADO */
    .mp-card-form__installments select {
        font-size: 12px !important;
        padding: 6px 8px !important;
        height: 36px !important;
        min-height: 36px !important;
        width: 100% !important;
    }

    /* Botão de pagamento (se aparecer) */
    .mp-brick-button {
        width: 100% !important;
        margin-top: 12px !important;
        padding: 10px !important;
        font-size: 12px !important;
        height: 40px !important;
    }

    /* Mensagens de erro */
    .mp-card-form__error-message {
        font-size: 9px !important;
        margin-top: 3px !important;
    }

    /* Ajustar padding interno do Brick */
    .mp-card-form__container > div {
        padding: 0 !important;
    }

    /* Ajustar wrapper dos campos para reduzir espaçamento */
    .mp-card-form__card-number-wrapper,
    .mp-card-form__expiration-date-wrapper,
    .mp-card-form__security-code-wrapper,
    .mp-card-form__cardholder-name-wrapper {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Reduzir tamanho das imagens de bandeira */
    .mp-card-form__card-number img {
        width: 24px !important;
        height: auto !important;
    }

    /* Ajustar fonte dos placeholders */
    .mp-card-form__card-number input::placeholder,
    .mp-card-form__expiration-date input::placeholder,
    .mp-card-form__security-code input::placeholder,
    .mp-card-form__cardholder-name input::placeholder {
        font-size: 11px !important;
    }
}

/* Ajustes específicos para 280px (extremo) */
@media (max-width: 280px) {
    #creditCardBrickContainer {
        margin: 0 -18px;
        padding: 0 18px;
        width: calc(100% + 36px);
    }

    #cardPaymentBrick_container {
        min-height: 500px;
    }

    .mp-card-form__label {
        font-size: 9px !important;
    }

    .mp-card-form__card-number input,
    .mp-card-form__expiration-date input,
    .mp-card-form__security-code input,
    .mp-card-form__cardholder-name input {
        font-size: 11px !important;
        padding: 4px 6px !important;
        height: 34px !important;
    }

    .mp-card-form__installments select {
        font-size: 11px !important;
        padding: 4px 6px !important;
        height: 34px !important;
    }

    .mp-brick-button {
        font-size: 11px !important;
        padding: 8px !important;
        height: 38px !important;
    }
}

/* Forçar ajuste adicional para garantir que os inputs fiquem menores */
body.booking-page #cardPaymentBrick_container .mp-card-form__card-number input,
body.booking-page #cardPaymentBrick_container .mp-card-form__expiration-date input,
body.booking-page #cardPaymentBrick_container .mp-card-form__security-code input,
body.booking-page #cardPaymentBrick_container .mp-card-form__cardholder-name input {
    padding: 6px 8px !important;
    font-size: 12px !important;
    height: 36px !important;
}

/* Prevenir zoom automático no iOS para inputs do Brick */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    #cardPaymentBrick_container input,
    #cardPaymentBrick_container select {
        font-size: 16px !important;
    }
}

/* Forçar recriação do Brick em resoluções muito pequenas */
@media (max-width: 400px) {
    body.booking-page .mercadopago-brick-container {
        transform: translateZ(0);
        backface-visibility: hidden;
    }
}

/* Garantir que o container do Brick não cause overflow horizontal */
.booking-card,
#panel3,
#creditCardBrickContainer,
#cardPaymentBrick_container {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* Ajuste para o panel de pagamento em mobile */
@media (max-width: 767px) {
    #panel3 {
        padding: 16px 12px !important;
    }

    #creditCardBrickContainer {
        margin: 0 -12px;
        padding: 0 12px;
        width: calc(100% + 24px);
    }
}

/* Loading do cartão de crédito */
#creditCardLoading {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
}

#creditCardLoading .spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2c7da0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos para Secure Fields do Mercado Pago */
#cardNumberContainer,
#expirationDateContainer,
#securityCodeContainer {
    width: 100%;
    min-height: 50px;
}

#cardNumberContainer iframe,
#expirationDateContainer iframe,
#securityCodeContainer iframe {
    width: 100% !important;
    min-width: 100% !important;
    border: 1px solid #dee6ef !important;
    border-radius: 20px !important;
    padding: 12px 14px !important;
    height: 48px !important;
}

.mp-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

@media (max-width: 550px) {
    .mp-row {
        flex-direction: column;
        gap: 10px;
    }
}

.payment-error-message {
    animation: fadeSlide 0.3s ease;
}

#creditCardPayBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==================== CHECKBOX MAIOR PARA DISPOSITIVOS MÓVEIS ==================== */

/* Aumentar tamanho do checkbox LGPD e outros checkboxes */
.lgpd-consent-checkbox input[type="checkbox"],
#lgpdConsentCheckbox {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    cursor: pointer !important;
    transform: scale(1);
    margin: 0 !important;
    accent-color: #2c7da0;
}

/* Para tablets (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .lgpd-consent-checkbox input[type="checkbox"],
    #lgpdConsentCheckbox {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        min-height: 22px !important;
    }
}

/* Para iPhones e dispositivos móveis */
@media (max-width: 767px) {
    .lgpd-consent-container {
        padding: 14px !important;
        margin: 20px 0 16px 0 !important;
    }

    .lgpd-consent-checkbox {
        padding: 6px 0;
        gap: 14px !important;
    }

    .lgpd-consent-checkbox input[type="checkbox"],
    #lgpdConsentCheckbox {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        min-height: 26px !important;
        margin-top: 0 !important;
    }

    /* Aumentar área de toque do label inteiro */
    .lgpd-consent-checkbox {
        padding: 8px 0;
        margin: -4px 0;
    }

    /* Texto um pouco maior para facilitar leitura */
    .lgpd-consent-checkbox span {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
}

/* Para iPhones SE, 6, 7, 8 (375px) */
@media (max-width: 380px) {
    .lgpd-consent-checkbox input[type="checkbox"],
    #lgpdConsentCheckbox {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
    }
}

/* Para iPhones muito pequenos (320px - iPhone SE 1ª geração) */
@media (max-width: 330px) {
    .lgpd-consent-checkbox input[type="checkbox"],
    #lgpdConsentCheckbox {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
    }

    .lgpd-consent-checkbox span {
        font-size: 12px !important;
    }
}

/* Cor personalizada para checkbox marcado no iOS */
#lgpdConsentCheckbox:checked {
    background-color: #2c7da0;
    border-color: #2c7da0;
}

/* Feedback visual ao tocar (iOS) */
@media (hover: none) and (pointer: coarse) {
    .lgpd-consent-checkbox:active {
        opacity: 0.7;
    }
}

/* ==================== REMOVER MARGENS DO TEMA APENAS EM MOBILE ==================== */
@media (max-width: 767px) {
    /* Garantir que body e html ocupem 100% da altura em mobile */
    html, body {
        height: 100%;
        margin: 0;
        padding: 0;
        min-height: 100vh;
    }

    body {
        padding: 0 !important;
        margin: 0 !important;
        background: #f4f7fc;
        min-height: 100vh;
    }

    /* Wrapper principal ocupando toda a tela em mobile */
    .booking-wrapper {
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
        min-height: 100vh;
        background: #f4f7fc;
    }

    /* Remover padding do body que poderia causar espaços */
    body.booking-page,
    body.page-template-default,
    body.single,
    body.page {
        padding: 0 !important;
    }

    /* Card de agendamento ocupando toda a tela em mobile */
    .booking-card {
        border-radius: 0 !important;
        margin: 0 !important;
        width: 100%;
        min-height: 100vh;
        background: white;
        box-shadow: none !important;
    }

    /* Ajustar header do médico para mobile */
    .doctor-brand {
        margin-bottom: 0;
        padding: 16px 16px 0 16px;
        background: white;
    }

    .doctor-brand h1 {
        font-size: 20px;
    }

    .doctor-brand p {
        font-size: 13px;
    }

    /* Steps row - ajustar para ocupar largura total */
    .steps-row {
        padding: 12px 16px 0 16px;
        margin: 0;
        background: white;
    }

    /* Painéis ocupando toda a largura */
    .panel {
        padding: 20px 16px;
        min-height: calc(100vh - 120px);
    }

    /* Botões fixos no final em telas menores */
    .button-group {
        margin-top: 32px;
        padding-bottom: 20px;
    }

    /* Remover possíveis margens do tema em mobile */
    #primary,
    #main,
    .main-content,
    .site-content,
    .content-area,
    .entry-content,
    .site-main {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Esconder sidebars em mobile */
    #secondary,
    .sidebar,
    .widget-area,
    aside[role="complementary"] {
        display: none !important;
    }

    /* Ajustar conteúdo principal para ocupar 100% em mobile */
    #primary,
    .content-area,
    .site-main,
    article.type-page {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .entry-content {
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* ==================== AJUSTES ADICIONAIS PARA MOBILE ==================== */
@media (max-width: 767px) {
    .cal-header {
        padding: 0 4px;
    }

    .times-grid {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
        gap: 10px;
    }

    .form-row {
        gap: 14px;
    }

    .field input,
    .field select,
    .field textarea {
        width: 100%;
        box-sizing: border-box;
    }
}

/* ==================== PARA TELAS MUITO PEQUENAS (até 480px) ==================== */
@media (max-width: 480px) {
    body {
        padding: 0 !important;
    }

    .booking-card {
        border-radius: 0 !important;
    }

    .doctor-brand {
        padding: 12px 12px 0 12px;
    }

    .steps-row {
        padding: 10px 12px 0 12px;
    }

    .panel {
        padding: 16px 12px;
    }

    .button-group {
        margin-top: 24px;
        padding-bottom: 16px;
    }

    .btn {
        padding: 12px 16px;
    }
}

/* ==================== PARA TELAS EXTREMAMENTE PEQUENAS (até 360px) ==================== */
@media (max-width: 360px) {
    .doctor-brand {
        padding: 10px 10px 0 10px;
    }

    .steps-row {
        padding: 8px 10px 0 10px;
    }

    .panel {
        padding: 14px 10px;
    }

    .step {
        min-width: 65px;
    }

    .step-text {
        font-size: 10px;
    }

    .btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    .time-slot {
        padding: 6px 3px;
        font-size: 11px;
    }
}

