* {
    box-sizing: border-box;
}

:root {
    color-scheme: only light;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f2f8ff;
    color: #13213d;
}

html, body {
    margin: 0;
    min-height: 100%;
    background: linear-gradient(180deg, #eef6ff 0%, #ffffff 100%);
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.booking-shell {
    width: 100%;
    max-width: 560px;
}

.booking-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 32px;
    box-shadow: 0 28px 80px rgba(48, 88, 180, 0.16);
    overflow: hidden;
    border: 1px solid rgba(126, 155, 240, 0.18);
}

.booking-card__hero {
    position: relative;
    padding: 30px 24px 4px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(61, 119, 242, 0.12) 0%, rgba(255, 255, 255, 0.44) 100%);
}



.hero-top {
    position: relative;
    z-index: 1;
}

.back-link {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 18px;
}

.back-link a {
    color: #315ef0;
    text-decoration: none;
    font-weight: 600;
}

.booking-top {
    text-align: center;
    padding-bottom: 24px;
}

.booking-top h1 {
    margin: 0;
    color: #2d4f9d;
    font-size: 32px;
    line-height: 1.05;
}

.booking-top p {
    margin-top: 10px;
    color: #596a8b;
    font-size: 15px;
}

.step-indicator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    padding: 20px 24px 8px;
    justify-items: center;
}

.step {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #f4f8ff;
    color: #657794;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.step.active {
    background: #eef2ff;
    color: #2e59ff;
}

.step-separator {
    display: none;
}

.booking-panel {
    padding: 22px 24px 28px;
}

.booking-section {
    display: none;
}

.booking-section--active {
    display: block;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: #32486b;
    font-size: 13px;
    font-weight: 700;
}

.step-header--centered {
    justify-content: center;
}

.step-subtitle {
    color: #98a4bf;
    font-weight: 500;
}

.card {
    background: #ffffff;
    border: 1px solid #dde5f7;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 18px;
}

.card--shadow {
    box-shadow: 0 18px 40px rgba(86, 111, 178, 0.08);
}

.card--calendar {
    padding: 16px;
    border-radius: 20px;
}

.card--form {
    display: grid;
    gap: 14px;
    border-radius: 20px;
}

.card--compact {
    padding: 16px;
    border-radius: 20px;
}

.card--summary {
    padding: 18px;
    border-radius: 20px;
}

.date-field {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-radius: 20px;
    border: 1px solid #d6e2fb;
    background: #ffffff;
    padding: 18px;
    color: #20396d;
    font-size: 16px;
    cursor: pointer;
}

.date-field:hover {
    border-color: #aec5fb;
}

.date-field__content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.field-label {
    color: #8d9abc;
    font-size: 14px;
    margin: 0;
}

.field-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: #eef3ff;
    color: #2d4f9d;
    font-size: 18px;
    flex-shrink: 0;
}

.field-arrow {
    color: #8d9abc;
    font-size: 18px;
    flex-shrink: 0;
}

.actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
    margin-top: 12px;
}

.actions-row.single-action {
    grid-template-columns: 1fr;
}

.btn {
    border: none;
    border-radius: 18px;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary {
    background: #406fff;
    color: #ffffff;
    box-shadow: 0 18px 32px rgba(97, 115, 239, 0.22);
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 20px 40px rgba(97, 115, 239, 0.28);
}

.btn-secondary {
    background: #ffffff;
    color: #2f436a;
    border: 1px solid #d6e2fb;
}

.btn-secondary:hover:not(:disabled) {
    background: #f8f9fc;
    border-color: #aec5fb;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25d366;
    color: white;
    border: none;
}

.btn-whatsapp:hover:not(:disabled) {
    background: #1f9c52;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.feature-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #dde5f7;
    border-radius: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-box:hover {
    border-color: #b5ccff;
    box-shadow: 0 6px 20px rgba(64, 111, 255, 0.08);
}

.feature-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #eef3ff;
    border-radius: 50%;
    flex-shrink: 0;
}

.feature-box img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}



.feature-value {
    color: #1e2f55;
    font-size: 15px;
    font-weight: 700;
    display: block;
    margin: 0;
    line-height: 1.3;
}

.feature-subtitle {
    color: #8d9abc;
    font-size: 12px;
    font-weight: 400;
    display: block;
    margin: 0;
}

.feature-box strong {
    display: block;
    font-size: 15px;
    color: #1e2f55;
    margin: 0;
    font-weight: 700;
}

.feature-box span {
    display: none;
}

.feature-box .feature-subtitle {
    display: block;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px 16px;
    gap: 12px;
}

.calendar-nav {
    border: 1px solid #d6e2fb;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: white;
    color: #2f436a;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    font-weight: 700;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.calendar-nav:hover {
    border-color: #aec5fb;
    background: #f8f9fc;
}

.calendar-title {
    color: #243a6f;
    font-weight: 700;
    font-size: 15px;
    flex: 1;
    text-align: center;
}

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

.calendar-weekdays {
    display: contents;
}

.calendar-days {
    display: contents;
}

.calendar-weekdays span {
    font-size: 12px;
    color: #7c8eae;
    text-align: center;
    font-weight: 600;
    padding: 8px 0;
}

.calendar-days button {
    border: none;
    height: 42px;
    border-radius: 16px;
    background: #f6f8ff;
    color: #23365a;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.calendar-days button:hover:not(:disabled) {
    background: #dde7ff;
    transform: translateY(-1px);
}

.calendar-days button.selected {
    background: #406fff;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(64, 111, 255, 0.18);
}

.calendar-days button.today {
    border: 1px solid #406fff;
    background: rgba(64, 111, 255, 0.08);
    color: #1f3f80;
    font-weight: 600;
}

.calendar-days button.disabled {
    opacity: 0.42;
    cursor: not-allowed;
    background: #f5f7fb;
    color: #9aa5c1;
}

.calendar-days button.disabled-blocked {
    text-decoration: line-through;
}

.calendar-days button.disabled-sunday {
    background: #eceef3;
    border-color: #d8dee8;
    opacity: 0.35;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #dde5f7;
    border-radius: 18px;
    padding: 14px 16px;
    font-size: 15px;
    color: #243a6f;
    background: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #aac0ff;
    box-shadow: 0 0 0 4px rgba(66, 120, 255, 0.12);
}



.card--summary {
    padding: 18px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f4fc;
}

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

.summary-row[hidden] {
    display: none;
}

.summary-row span {
    font-size: 13px;
    color: #7a8ead;
}

.summary-row strong {
    font-size: 15px;
    color: #1e2f55;
}

.payment-title {
    margin: 0 0 14px;
    color: #2d4f8f;
    font-weight: 700;
    font-size: 14px;
}

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

.payment-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    min-height: 80px;
    border-radius: 16px;
    border: 1px solid #dbe5fa;
    background: #fcfeff;
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.payment-option:hover {
    transform: translateY(-2px);
}

.payment-option.active {
    border-color: #406fff;
    background: #eef3ff;
}

.payment-option img {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.payment-option span {
    font-size: 14px;
    color: #33446d;
    font-weight: 500;
}

.or-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 18px;
    color: #9aa5c1;
    font-size: 13px;
}

.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dde5f7;
}

.secure-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 24px 20px;
    color: #9aa5c1;
    font-size: 12px;
    text-align: center;
}

.secure-footer img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
    padding: 0 24px 20px;
    text-align: center;
}

.legal-links a {
    color: #9aa5c1;
    font-size: 12px;
    text-decoration: underline;
}

.legal-links .legal-links-sep {
    color: #c7cedf;
    font-size: 12px;
}

.success-badge {
    margin: 0 auto 16px;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: #e4f8ea;
    display: grid;
    place-items: center;
    color: #1e9b50;
    font-size: 44px;
}

#step4 h2 {
    margin: 0 0 6px;
    text-align: center;
    color: #2e6f3c;
    font-size: 26px;
}



.success-container {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 18px;
}

.success-badge {
    margin: 0 auto 16px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e8f7ed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e9b50;
    font-size: 48px;
    font-weight: 300;
}

.success-message {
    color: #7a8ead;
    font-size: 15px;
    margin: 0;
    line-height: 1.4;
}

.whatsapp-icon {
    width: 18px;
    height: 18px;
}









.toast-container {
    position: fixed;
    right: 18px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.toast {
    min-width: 240px;
    padding: 14px 16px;
    border-radius: 16px;
    color: white;
    font-size: 14px;
    box-shadow: 0 18px 42px rgba(15, 32, 91, 0.15);
}

.toast.info {
    background: #406fff;
}

.toast.success {
    background: #27ae60;
}

.toast.error {
    background: #ff5757;
}

.toast--hide {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (max-width: 768px) {
    body {
        padding: 18px;
    }

    .booking-top h1 {
        font-size: 28px;
    }

    .payment-grid {
        grid-template-columns: 1fr;
    }

    .feature-row {
        grid-template-columns: 1fr;
    }

    .step-indicator {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 16px 18px 8px;
    }
}

@media (max-width: 520px) {
    body {
        padding: 16px;
    }

    .booking-card {
        border-radius: 28px;
        box-shadow: 0 18px 60px rgba(48, 88, 180, 0.12);
    }

    .booking-card__hero {
        padding: 24px 18px 2px;
    }

    .booking-top h1 {
        font-size: 24px;
    }

    .booking-top p {
        font-size: 14px;
    }

    .booking-panel {
        padding: 18px 16px 24px;
    }

    .step-indicator {
        grid-template-columns: 1fr 1fr;
        gap: 10px 12px;
        padding: 14px 16px 6px;
    }

    .step {
        width: 44px;
        height: 44px;
        font-size: 12px;
    }

    .step-separator {
        display: none;
    }

    .card {
        padding: 16px;
        border-radius: 18px;
        margin-bottom: 14px;
    }

    .card--calendar {
        padding: 14px;
    }

    .card--compact {
        padding: 14px;
    }

    .card--summary {
        padding: 16px;
    }

    .date-field {
        padding: 14px;
        font-size: 15px;
        gap: 10px;
    }

    .field-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

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

    .btn {
        padding: 14px 16px;
        font-size: 14px;
        min-height: 44px;
    }

    .payment-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .payment-option {
        min-height: 100px;
        padding: 12px;
        border-radius: 16px;
    }

    .payment-option img {
        width: 38px;
    }

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

    .feature-row {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 18px;
    }

    .feature-box {
        gap: 10px;
    }

    .feature-box img {
        width: 40px;
        height: 40px;
    }



    .feature-value {
        font-size: 14px;
    }

    .calendar-grid {
        gap: 5px;
    }

    .calendar-nav {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .calendar-title {
        font-size: 14px;
    }

    .calendar-weekdays span {
        font-size: 11px;
        padding: 6px 0;
    }

    .calendar-days button {
        height: 38px;
        font-size: 14px;
    }

    .summary-row {
        padding: 12px 0;
        gap: 12px;
    }

    .summary-row span {
        font-size: 12px;
    }

    .summary-row strong {
        font-size: 14px;
    }

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



    .step-header {
        font-size: 12px;
        margin-bottom: 16px;
    }

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

    .payment-title {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .input-label {
        font-size: 12px;
    }

    .back-link {
        margin-bottom: 14px;
    }

    .back-link a {
        font-size: 14px;
    }
}


/* Appointment success screen aligned with Online Consultation */
.booking-card--success .hero-top { display: none; }
.booking-card--success .step-indicator { display: none; }
#step4.booking-success { max-width: 620px; margin: 0 auto; }
#step4 .success-container { padding: 6px 0 16px; margin-bottom: 0; }
#step4 .success-badge { width: 88px; height: 88px; margin-bottom: 14px; background: #28a745; color: #fff; font-size: 48px; }
#step4 .success-title { margin: 0 0 8px; color: #17233d; font-size: 26px; text-align: center; }
#step4 .success-container .success-message { max-width: 520px; margin: 0 auto; color: #687795; line-height: 1.55; }
#step4 .success-confirmation-card { margin-bottom: 14px; }
#step4 .success-actions { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 420px; margin: 0 auto; }
#step4 .success-action-button { display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:0; }
#step4 .success-action-icon { width:19px;height:19px;flex-shrink:0; }
@media(max-width:520px){#step4 .success-badge{width:76px;height:76px;font-size:42px}#step4 .success-title{font-size:23px}#step4 .success-confirmation-card{padding:14px}}
@media(max-width:420px){#step4 .success-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#step4 .success-action-button{padding-left:12px;padding-right:12px}}
