:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #172033;
    --muted: #718096;
    --border: #e2e8f0;

    --primary: #635bff;
    --primary-dark: #4f46e5;
    --primary-soft: #efedff;

    --success: #159957;
    --danger: #dc3545;

    --radius: 18px;
    --shadow: 0 10px 35px rgba(30, 41, 59, 0.07);
    --font-size:18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

     font-size:18px;

    line-height: 1.5;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.page {
    min-height: 100vh;
}


/* =========================================================
   HEADER
========================================================= */

.booking-header {
    max-width: 1120px;
    margin: auto;

    padding:
        25px 24px
        15px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    color: white;
    background: linear-gradient(
        135deg,
        #635bff,
        #8b5cf6
    );

    border-radius: 12px;

    font-size: 1.25rem;
    font-weight: 800;
}

.brand-title {
    font-weight: 900;
    letter-spacing: -0.5px;
}

.brand-title span {
    color: var(--primary);
}

.brand-subtitle {
    color: var(--muted);
    font-size: 11px;
}

.secure-badge {
    padding: 8px 12px;

    border: 1px solid #dce3ec;
    border-radius: 999px;

    background: rgba(255,255,255,.7);

    color: #566174;
    font-size: 1rem;
    font-weight: 700;
}


/* =========================================================
   MAIN
========================================================= */

.booking-wrapper {
    width: min(1100px, calc(100% - 32px));
    margin: 25px auto 70px;
}

.intro {
    text-align: center;
    margin-bottom: 38px;
}

.eyebrow {
    display: inline-block;

    color: var(--primary);
    font-size: 11px;
    font-weight: 900;

    letter-spacing: 1.5px;
}

.intro h1 {
    margin: 10px 0 12px;

    font-size: clamp(34px, 6vw, 56px);
    line-height: 1.03;
    letter-spacing: -2px;
}

.intro h1 span {
    color: var(--primary);
}

.intro p {
    max-width: 620px;
    margin: auto;

    color: var(--muted);
    font-size: 1rem;
}


/* =========================================================
   CARDS
========================================================= */

.form-card,
.success-card {
    background: var(--card);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow);

    padding: 30px;
    margin-bottom: 18px;
}

.section-heading {
    display: flex;
    gap: 14px;
    align-items: flex-start;

    margin-bottom: 26px;
}

.step-number {
    flex: 0 0 43px;

    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    color: var(--primary);
    background: var(--primary-soft);

    font-size: 1rem;
    font-weight: 900;
}

.section-heading h2 {
    margin: 1px 0 3px;

    font-size: 1.25rem;
}

.section-heading p {
    margin: 0;

    color: var(--muted);
    font-size: 1rem;
}


/* =========================================================
   FIELDS
========================================================= */

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.field {
    margin-bottom: 20px;
}

.field:last-child {
    margin-bottom: 0;
}

.field label {
    display: block;

    margin-bottom: 8px;

    font-size: 1rem;
    font-weight: 800;
}

.field label > span:first-of-type {
    color: var(--danger);
}

.field label .optional {
    color: #98a2b3;
    font-weight: 600;
    margin-left: 4px;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="number"],
.field input[type="file"],
.field textarea {
    width: 100%;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: #fbfcfe;
    color: var(--text);

    outline: none;

    transition:
        border .2s,
        box-shadow .2s,
        background .2s;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="number"] {
    height: 50px;
    padding: 0 14px;
}

.field textarea {
    padding: 14px;
    resize: vertical;
    min-height: 190px;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--primary);

    background: white;

    box-shadow:
        0 0 0 4px
        rgba(99, 91, 255, .09);
}

.field small {
    display: block;

    margin-top: 7px;

    color: var(--muted);
    font-size: 1rem;
}


/* =========================================================
   URGENT TOGGLE
========================================================= */

.urgent-toggle {
    display: flex !important;
    align-items: center;
    gap: 12px;

    padding: 13px 15px;

    border: 1px solid var(--border);
    border-radius: 12px;

    cursor: pointer;

    background: #fbfcfe;

    margin-bottom: 0 !important;
}

.urgent-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle-ui {
    position: relative;

    width: 40px;
    height: 23px;

    flex-shrink: 0;

    border-radius: 30px;
    background: #cbd5e1;

    transition: .2s;
}

.toggle-ui::after {
    content: "";

    position: absolute;

    width: 17px;
    height: 17px;

    top: 3px;
    left: 3px;

    border-radius: 50%;

    background: white;

    transition: .2s;

    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.urgent-toggle input:checked + .toggle-ui {
    background: #ef4444;
}

.urgent-toggle input:checked + .toggle-ui::after {
    transform: translateX(17px);
}

.urgent-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.urgent-text strong {
    font-size: 1rem;
}

.urgent-text small {
    margin: 0;
}


/* =========================================================
   TAT
========================================================= */

.input-with-suffix {
    display: flex;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: #fbfcfe;
}

.input-with-suffix input {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.input-with-suffix span {
    display: grid;
    place-items: center;

    padding: 0 14px;

    color: var(--muted);
    font-size: 1rem;
    font-weight: 700;

    border-left: 1px solid var(--border);
}


/* =========================================================
   FORMAT
========================================================= */

.format-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.format-option {
    margin: 0 !important;
    cursor: pointer;
}

.format-option input {
    position: absolute;
    opacity: 0;
}

.format-box {
    display: flex;
    flex-direction: column;
    gap: 2px;

    padding: 13px;

    border: 1px solid var(--border);
    border-radius: 11px;

    transition: .2s;
}

.format-box strong {
    font-size: 1rem;
}

.format-box small {
    margin: 0;
}

.format-option input:checked + .format-box {
    border-color: var(--primary);
    background: var(--primary-soft);

    box-shadow:
        0 0 0 2px
        rgba(99,91,255,.06);
}


/* =========================================================
   LINK INPUT
========================================================= */

.link-input {
    display: flex;
    align-items: center;
    gap: 9px;

    height: 50px;

    padding: 0 13px;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: #fbfcfe;
}

.link-input:focus-within {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px
        rgba(99,91,255,.09);
}

.link-input span {
    font-size: 1rem;
}

.link-input input {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;

    padding: 0 !important;

    background: transparent !important;
}


/* =========================================================
   INSTRUCTIONS
========================================================= */

.instruction-tip {
    display: flex;
    gap: 12px;

    padding: 15px;

    margin-bottom: 20px;

    border-radius: 12px;

    background: #f8f7ff;
    border: 1px solid #e8e5ff;
}

.tip-icon {
    font-size: 1.25rem;
}

.instruction-tip strong {
    font-size: 1rem;
}

.instruction-tip p {
    margin: 4px 0 0;

    color: var(--muted);
    font-size: 1rem;
}

.textarea-footer {
    display: flex;
    justify-content: space-between;

    margin-top: 7px;
}

.textarea-footer small,
#instructionCount {
    color: var(--muted);
    font-size: 1rem;
}


/* =========================================================
   PAYMENT
========================================================= */

.payment-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 30px;

    align-items: start;
}

.qr-box {
    text-align: center;

    padding: 18px;

    border: 1px solid var(--border);
    border-radius: 15px;

    background: #fafbfe;
}

.qr-label {
    margin-bottom: 12px;

    color: var(--primary);

    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.qr-code {
    display: block;

    width: 300px;
    height: 300px;

    margin: auto;

    object-fit: contain;

    border-radius: 8px;
}

.qr-box p {
    margin: 12px 0 0;

    color: var(--muted);
    font-size: 0.75rem;
}

.payment-note {
    padding: 15px;

    margin-bottom: 18px;

    border-radius: 12px;

    background: #f8fafc;
}

.payment-note strong {
    font-size: 1rem;
}

.payment-note ol {
    margin: 8px 0 0;
    padding-left: 18px;

    color: var(--muted);

    font-size: 1rem;
}

.payment-note li {
    margin-bottom: 3px;
}


/* =========================================================
   FILE UPLOAD
========================================================= */

.upload-box {
    min-height: 145px;

    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    border: 1.5px dashed #cbd5e1 !important;
    border-radius: 13px;

    padding: 20px;

    background: #fafbfe;

    cursor: pointer;

    transition: .2s;
}

.upload-box:hover {
    border-color: var(--primary) !important;
    background: #faf9ff;
}

.upload-box input {
    display: none;
}

.upload-icon {
    width: 37px;
    height: 37px;

    display: grid;
    place-items: center;

    margin-bottom: 8px;

    border-radius: 50%;

    background: var(--primary-soft);
    color: var(--primary);

    font-size: 1.25rem;
}

.upload-box strong {
    font-size: 1rem;
}

.upload-box small {
    margin: 3px 0 0;
}

.selected-file {
    color: var(--success);
    font-size: 0.85rem;
    font-weight: 800;

    margin-top: 6px;
}


/* =========================================================
   CAPTCHA
========================================================= */

.captcha-area {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;

    align-items: end;
}

.captcha-image {
    position: relative;

    height: 58px;
}

.captcha-image img {
    width: 180px;
    height: 58px;

    display: block;

    border: 1px solid var(--border);
    border-radius: 9px;
}

.captcha-refresh {
    position: absolute;

    right: 5px;
    top: 5px;

    width: 30px;
    height: 30px;

    border: 0;
    border-radius: 8px;

    color: var(--primary);
    background: white;

    box-shadow: 0 2px 8px rgba(0,0,0,.12);

    font-size: 1rem;
}

.captcha-input {
    margin: 0;
}


/* =========================================================
   SUBMIT
========================================================= */

.submit-area {
    text-align: center;

    padding: 10px 0 0;
}

.btn {
    border: 0;

    border-radius: 12px;

    font-weight: 800;

    transition:
        transform .2s,
        box-shadow .2s,
        background .2s;
}

.btn-submit {
    width: 100%;

    min-height: 58px;

    padding: 0 22px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #7c3aed
        );

    box-shadow:
        0 10px 25px
        rgba(99,91,255,.22);

    font-size: 1rem;
}

.btn-submit:hover {
    transform: translateY(-1px);

    box-shadow:
        0 14px 30px
        rgba(99,91,255,.3);
}

.button-arrow {
    font-size: 1.25rem;
}

.button-loader {
    display: none;

    width: 17px;
    height: 17px;

    border: 2px solid rgba(255,255,255,.4);
    border-top-color: white;

    border-radius: 50%;

    animation: spin .7s linear infinite;
}

.btn-submit.loading {
    pointer-events: none;
    opacity: .8;
}

.btn-submit.loading .button-loader {
    display: block;
}

.btn-submit.loading .button-arrow {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.privacy-note {
    margin: 13px 0 0;

    color: var(--muted);

    font-size: 0.75rem;
}


/* =========================================================
   ALERTS
========================================================= */

.alert {
    padding: 16px 18px;

    margin-bottom: 18px;

    border-radius: 12px;

    font-size: 1rem;
}

.alert-error {
    color: #842029;

    border: 1px solid #f5c2c7;
    background: #fff5f5;
}

.alert ul {
    margin: 7px 0 0;
    padding-left: 18px;
}


/* =========================================================
   SUCCESS
========================================================= */

.success-card {
    text-align: center;

    padding: 55px 30px;
}

.success-icon {
    width: 70px;
    height: 70px;

    display: grid;
    place-items: center;

    margin: 0 auto 20px;

    border-radius: 50%;

    color: white;
    background: var(--success);

    font-size: 2rem;
    font-weight: 700;
}

.success-card h2 {
    margin: 8px 0;

    font-size: 2rem;
}

.success-card p {
    max-width: 500px;
    margin: 0 auto 22px;

    color: var(--muted);
}

.booking-number {
    display: inline-block;

    padding: 13px 18px;

    margin-bottom: 24px;

    border-radius: 10px;

    background: #f1f5f9;

    color: var(--text);

    font-family: monospace;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.btn-primary {
    padding: 14px 20px;

    color: white;
    background: var(--primary);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    max-width: 900px;
    margin: auto;

    padding: 0 20px 30px;

    display: flex;
    justify-content: space-between;

    color: #94a3b8;

    font-size: 0.75rem;
}

.site-footer p {
    margin: 0;
}


/* =========================================================
   HONEYPOT
========================================================= */

.hp-field {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;

    opacity: 0 !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .booking-header {
        padding: 18px 16px;
    }

    .secure-badge {
        display: none;
    }

    .booking-wrapper {
        width: calc(100% - 20px);
        margin-top: 15px;
    }

    .intro {
        margin-bottom: 25px;
    }

    .intro h1 {
        font-size: 2.25rem;
        letter-spacing: -1.5px;
    }

    .intro p {
        font-size: 1rem;
    }

    .form-card {
        padding: 21px 17px;

        border-radius: 15px;
    }

    .section-heading {
        margin-bottom: 20px;
    }

    .field-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .field-grid > .field {
        margin-bottom: 20px;
    }

    .format-options {
        grid-template-columns: 1fr 1fr;
    }

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

    .qr-box {
        width: 100%;
    }

    .captcha-area {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .captcha-image {
        width: 200px;
    }

    .captcha-input {
        margin-top: 0;
    }

    .site-footer {
        flex-direction: column;
        gap: 4px;

        text-align: center;
    }
}


@media (max-width: 420px) {

    .brand-title {
        font-size: 1rem;
    }

    .brand-subtitle {
        font-size: 0.75rem;
    }

    .brand-icon {
        width: 36px;
        height: 36px;
    }

    .intro h1 {
        font-size: 2rem;
    }

    .format-options {
        grid-template-columns: 1fr;
    }

    .section-heading h2 {
        font-size: 1rem;
    }

    .section-heading p {
        font-size: 1rem;
    }
}
