/* =====================================================
   ROOT
===================================================== */

:root {
    --primary: #c35e40;
    --primary-hover: #c35e40;
    --primary-light: #e0f2fe;

    --accent: #10b981;

    --text-dark: #0f172a;
    --text-main: #334155;
    --text-muted: #64748b;

    --bg-light: #f8fafc;

    --border-color: #e2e8f0;

    --shadow-md:
        0 20px 40px rgba(15, 23, 42, 0.12);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}


/* =====================================================
   RESET
===================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: var(--font-family);
    background: #f1f5f9;
    color: var(--text-main);
    min-height: 100vh;
}



/* =====================================================
   PAGE
===================================================== */

.booking-page {
    width: 100%;
    min-height: 10vh;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding: 30px 20px;
}


.booking-container {
    width: 100%;
    max-width: 650px;

    background: #ffffff;

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-md);

    overflow: hidden;

    animation: bookingFadeIn 0.3s ease;
}


@keyframes bookingFadeIn {

    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =====================================================
   HEADER
===================================================== */

.modal-header {
    padding: 22px 24px;

    border-bottom: 1px solid var(--border-color);

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    background: #ffffff;
}


.header-details {
    min-width: 0;
}


.promo-tag {

    display: inline-block;

    background: #fef3c7;

    color: #b45309;

    font-size: 11px;

    font-weight: 700;

    padding: 4px 9px;

    border-radius: 20px;

    letter-spacing: 0.5px;

    margin-bottom: 7px;
}


.clinic-title {

    font-size: 24px;

    font-weight: 800;

    color: var(--text-dark);

    letter-spacing: 0.5px;

    line-height: 1.2;
}


.clinic-loc {

    margin-top: 6px;

    display: flex;

    align-items: center;

    gap: 7px;

    font-size: 13px;

    color: var(--text-muted);

    line-height: 1.4;
}


.clinic-loc i {

    color: var(--primary);

    flex-shrink: 0;
}


/* =====================================================
   CLOSE / BACK BUTTON
===================================================== */

.close-btn {

    width: 36px;

    height: 36px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: transparent;

    border: none;

    color: var(--text-muted);

    text-decoration: none;

    font-size: 28px;

    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.close-btn:hover {

    background: #f1f5f9;

    color: var(--text-dark);
}


/* =====================================================
   PATIENT DETAILS FORM
===================================================== */

.patient-details-form {
    width: 100%;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 14px;
}


.patient-field {
    display: flex;

    flex-direction: column;

    gap: 6px;
}


.patient-field label {
    color: var(--text-dark);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.3px;
}


.patient-field input {
    width: 100%;

    height: 42px;

    padding: 10px 12px;

    border: 1px solid var(--border-color);

    border-radius: var(--radius-sm);

    background: #ffffff;

    color: var(--text-main);

    font-family: var(--font-family);

    font-size: 13px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.patient-field input::placeholder {
    color: #94a3b8;
}


.patient-field input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(195, 94, 64, 0.10);
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .patient-details-form {
        grid-template-columns: 1fr;
        gap: 10px;
    }

}

/* =====================================================
   CLINIC BUTTON RESET
===================================================== */

.clinic-link {
    width: 100%;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}
/* =====================================================
   BODY
===================================================== */

.modal-body {

    padding: 24px;

    display: flex;

    flex-direction: column;

    gap: 24px;
}


.booking-section {

    width: 100%;
}


.step-label {

    margin-bottom: 10px;

    font-size: 11px;

    font-weight: 800;

    color: var(--text-muted);

    letter-spacing: 0.8px;

    text-transform: uppercase;
}


/* =====================================================
   PATIENT CARD
===================================================== */

.selection-card {

    width: 100%;

    border: 2px solid var(--primary);

    background: var(--primary-light);

    border-radius: var(--radius-md);

    padding: 14px 16px;

    display: flex;

    align-items: center;

    gap: 13px;
}


.radio-dot {

    width: 18px;

    height: 18px;

    border-radius: 50%;

    border: 5px solid var(--primary);

    background: #ffffff;

    flex-shrink: 0;
}


.card-text {

    display: flex;

    flex-direction: column;

    gap: 3px;
}


.card-text strong {

    color: var(--text-dark);

    font-size: 15px;
}


.card-text span {

    color: var(--text-muted);

    font-size: 12px;
}


/* =====================================================
   CLINIC GRID
===================================================== */

.clinic-selection-grid {

    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;
}


/* =====================================================
   CLINIC CARD
===================================================== */

.clinic-link {

    position: relative;

    display: flex;

    flex-direction: column;

    min-width: 0;

    min-height: 130px;

    padding: 16px;

    background: #ffffff;

    border: 1px solid var(--border-color);

    border-radius: 10px;

    text-decoration: none;

    color: var(--text-dark);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.clinic-link:hover {

    background: #fbfdff;

    border-color: #cbd5e1;

    box-shadow:
        0 8px 20px rgba(15, 23, 42, 0.08);

    transform: translateY(-2px);
}


.clinic-link::after {

    content: "";

    position: absolute;

    left: 16px;

    right: 16px;

    top: 57px;

    height: 1px;

    background: #f1f5f9;
}


/* =====================================================
   CLINIC NUMBER
===================================================== */

.clinic-number {

    position: absolute;

    top: 14px;

    left: 15px;

    width: 30px;

    height: 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid var(--border-color);

    border-radius: 7px;

    background: #f8fafc;

    color: var(--text-muted);

    font-size: 10px;

    font-weight: 700;
}


/* =====================================================
   CLINIC ARROW
===================================================== */

.clinic-arrow {

    position: absolute;

    top: 14px;

    right: 15px;

    width: 30px;

    height: 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid var(--border-color);

    border-radius: 7px;

    background: #ffffff;

    color: var(--text-muted);

    font-size: 19px;

    transition: all 0.2s ease;
}


.clinic-link:hover .clinic-arrow {

    background: var(--primary);

    border-color: var(--primary);

    color: #ffffff;

    transform: translateX(2px);
}


/* =====================================================
   CLINIC CONTENT
===================================================== */

.clinic-content {

    width: 100%;

    margin-top: 55px;

    min-width: 0;
}


.clinic-label {

    display: block;

    margin-bottom: 5px;

    color: var(--text-muted);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;
}


.clinic-content h3 {

    width: 100%;

    margin: 0;

    color: #c35e40;

    font-size: 13px;

    font-weight: 650;

    line-height: 1.35;

    overflow-wrap: break-word;
}


.clinic-content p {

    width: 100%;

    margin-top: 6px;

    color: #94a3b8;

    font-size: 10px;

    font-weight: 500;

    line-height: 1.3;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =====================================================
   VACCINE GRID
===================================================== */

.vaccine-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;
}


/* =====================================================
   VACCINE CARD
===================================================== */

.vax-item {

    background: #ffffff;

    border: 1px solid var(--border-color);

    border-radius: 10px;

    padding: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


.vax-item:hover {

    border-color: #cbd5e1;

    box-shadow:
        0 5px 14px rgba(15, 23, 42, 0.06);
}


.vax-item.selected {

    border-color: var(--primary);

    background: #f8fcff;

    box-shadow:
        0 0 0 2px rgba(2, 132, 199, 0.08);
}


.vax-header {

    margin-bottom: 10px;
}


.vax-title-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 8px;
}


.vax-title-row span {

    color: var(--text-dark);

    font-size: 14px;

    font-weight: 700;
}


.selected-price {

    color: var(--primary);

    font-size: 14px;

    font-weight: 800;
}


.vax-header small {

    display: block;

    margin-top: 3px;

    color: var(--text-muted);

    font-size: 11px;

    line-height: 1.3;
}


/* =====================================================
   BRAND SELECT
===================================================== */

.brand-select {

    width: 100%;

    padding: 9px 10px;

    border: 1px solid #cbd5e1;

    border-radius: 7px;

    background: #ffffff;

    color: var(--text-main);

    font-size: 12px;

    outline: none;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.brand-select:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(2, 132, 199, 0.12);
}


/* =====================================================
   DATE
===================================================== */

.date-input-wrapper {

    position: relative;

    width: 100%;
}


.date-input-wrapper input {

    width: 100%;

    padding: 12px 42px 12px 13px;

    border: 1px solid var(--border-color);

    border-radius: var(--radius-sm);

    background: #ffffff;

    color: var(--text-main);

    font-size: 13px;

    outline: none;
}


.date-input-wrapper input:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(2, 132, 199, 0.10);
}


.date-input-wrapper i {

    position: absolute;

    top: 50%;

    right: 14px;

    transform: translateY(-50%);

    color: var(--text-muted);

    pointer-events: none;
}


/* =====================================================
   TIME SLOTS
===================================================== */

.time-grid {

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 9px;
}


.time-grid button {

    padding: 10px 6px;

    background: #ffffff;

    border: 1px solid var(--border-color);

    border-radius: 8px;

    color: var(--text-main);

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition: all 0.2s ease;
}


.time-grid button:hover {

    border-color: var(--primary);

    color: var(--primary);

    background: #f8fcff;
}


.time-grid button.selected {

    background: var(--primary);

    border-color: var(--primary);

    color: #ffffff;

    box-shadow:
        0 4px 10px rgba(2, 132, 199, 0.2);
}


/* =====================================================
   PRICE BREAKDOWN
===================================================== */

.price-breakdown {

    background: var(--bg-light);

    border: 1px solid var(--border-color);

    border-radius: var(--radius-md);

    padding: 16px;

    display: flex;

    flex-direction: column;

    gap: 10px;
}


.breakdown-title {

    padding-bottom: 9px;

    border-bottom: 1px dashed var(--border-color);

    color: var(--text-muted);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.7px;
}


.selected-vaccines-list {

    display: flex;

    flex-direction: column;

    gap: 6px;

    font-size: 12px;
}


.empty-selection {

    color: var(--text-muted);
}


.breakdown-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    color: var(--text-main);

    font-size: 13px;
}


.breakdown-row.discount {

    color: var(--accent);
}


.breakdown-row.total {

    padding-top: 10px;

    margin-top: 3px;

    border-top: 1px solid var(--border-color);

    color: var(--text-dark);

    font-size: 15px;

    font-weight: 800;
}


/* =====================================================
   CONSENT
===================================================== */

.consent-box {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    padding: 12px;

    background: #ffffff;

    border: 1px solid var(--border-color);

    border-radius: var(--radius-sm);
}


.consent-box input {

    width: 17px;

    height: 17px;

    margin-top: 2px;

    flex-shrink: 0;

    accent-color: var(--primary);

    cursor: pointer;
}


.consent-text {

    cursor: pointer;
}


.consent-text p {

    display: flex;

    align-items: center;

    gap: 6px;

    color: var(--text-dark);

    font-size: 12px;

    font-weight: 700;
}


.consent-text p i {

    color: var(--accent);
}


.consent-text small {

    display: block;

    margin-top: 4px;

    color: var(--text-muted);

    font-size: 10px;

    line-height: 1.4;
}


.consent-text a {

    color: var(--primary);

    text-decoration: none;
}


.consent-text a:hover {

    text-decoration: underline;
}


/* =====================================================
   QR PAYMENT
===================================================== */

.qr-payment-section {

    padding: 18px;

    text-align: center;

    background: #f8fafc;

    border: 1px dashed #cbd5e1;

    border-radius: 10px;
}


.qr-header-text {

    margin-bottom: 12px;

    color: var(--text-dark);

    font-size: 13px;

    font-weight: 700;
}


.qr-header-text i {

    margin-right: 5px;

    color: var(--primary);
}


.qr-code-wrapper {

    display: inline-block;

    padding: 10px;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 8px;

    box-shadow:
        0 2px 8px rgba(15, 23, 42, 0.05);
}


.qr-code-wrapper img {

    width: 150px;

    height: 150px;

    display: block;

    object-fit: contain;
}


.qr-subtext {

    margin-top: 10px;

    color: var(--text-muted);

    font-size: 11px;

    font-weight: 500;
}


/* =====================================================
   FOOTER
===================================================== */

.modal-footer {

    padding: 16px 24px;

    border-top: 1px solid var(--border-color);

    background: #ffffff;
}


.btn-confirm {

    width: 100%;

    min-height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 13px 18px;

    background: var(--primary);

    border: none;

    border-radius: var(--radius-md);

    color: #ffffff;

    font-size: 14px;

    font-weight: 800;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.1s ease,
        box-shadow 0.2s ease;
}


.btn-confirm:hover {

    background: var(--primary-hover);

    box-shadow:
        0 7px 16px rgba(2, 132, 199, 0.2);
}


.btn-confirm:active {

    transform: scale(0.99);
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 950px) {

    .clinic-selection-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .booking-page {

        padding: 0;

    }


    .booking-container {

        min-height: 100vh;

        border-radius: 0;

    }


    .modal-header {

        padding: 18px;

    }


    .modal-body {

        padding: 18px;

        gap: 20px;

    }


    .modal-footer {

        padding: 14px 18px;

    }


    .clinic-selection-grid {

        grid-template-columns: 1fr;

    }


    .vaccine-grid {

        grid-template-columns: 1fr;

    }


    .time-grid {

        grid-template-columns:
            repeat(3, 1fr);

    }


    .clinic-title {

        font-size: 21px;

    }


    .clinic-loc {

        font-size: 11px;

        max-width: 270px;

    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 380px) {

    .modal-header {

        padding: 15px;

    }


    .modal-body {

        padding: 15px;

    }


    .modal-footer {

        padding: 12px 15px;

    }


    .time-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .qr-code-wrapper img {

        width: 130px;

        height: 130px;

    }

}