/* ============================================================
   Booking form — a single silver glass card on a 3D stage
   ============================================================ */

:root {
    --book-paper: #fbffe7;
    --book-ink: #14353c;
    --book-wine: #941212;
    --book-pink: #ff0055;
    --book-line: rgba(20, 53, 60, 0.14);
    --book-radius: 48px;
}

/* Matches the index page exactly: flat paper, no grid, no washes */
.book-page {
    position: relative;
    min-height: 100vh;
    background-color: var(--book-paper);
}

.book-main {
    min-height: calc(100vh - 168px);
    padding: 26px 20px 130px;
    overflow: hidden;
}

.book-container {
    width: min(100%, 980px);
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--book-ink);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    opacity: 0.72;
    transition: opacity 180ms ease, transform 180ms ease;
}

.back-link:hover {
    opacity: 1;
    transform: translateX(-3px);
}

.booking-intro {
    max-width: 850px;
    margin: 70px auto 64px;
    text-align: center;
    animation: intro-rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* Same liquid glass recipe as the form card, in pill form */
.booking-kicker {
    display: inline-flex;
    align-items: center;
    gap: 32.97px;
    margin-bottom: 30px;
    padding: 7px 18px 8px;
    border-radius: 12px;
    background: rgba(248, 251, 255, 0.2);
    box-shadow:
        inset 0 0 0 1.268px rgba(166, 166, 166, 1),
        inset 0 0 10.144px 0 rgba(242, 242, 242, 1),
        0 0 2.536px 0 rgba(0, 0, 0, 0.1),
        0 1.268px 10.144px 0 rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10.7px);
    -webkit-backdrop-filter: blur(10.7px);
    overflow: visible;
    /* type matched to the "grow your career together" emphasis, upright */
    color: #941212db;
    font-family: 'PP Editorial', serif;
    font-size: 1rem;
    font-style: oblique;
    font-weight: 200;
    letter-spacing: 1.5px;
    line-height: 1.2;
    text-transform: none;
}

.booking-intro h1 {
    color: var(--book-ink);
    font-size: clamp(3rem, 7vw, 6.25rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.booking-intro h1 em {
    color: var(--book-wine);
    font-weight: 200;
}

/* ---------- Stage ---------- */

.booking-scene {
    position: relative;
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 10px;
    animation: scene-arrive 900ms 120ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* ---------- Lift rig ----------
   Deliberately no rotateX/rotateY: a perspective rotation skews the
   corners into a trapezoid. Depth comes from lift and shadow instead,
   so the card stays a true rectangle. */

.booking-tilt {
    position: relative;
    z-index: 1;
    transform: translateY(0);
    transition: transform 620ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.booking-scene:hover .booking-tilt {
    transform: translateY(-6px);
}

/* ---------- The card: one glossy liquid glass panel ---------- */

.booking-glass {
    position: relative;
    padding: 50px 48px 44px;
    min-height: 700px;
    border-radius: var(--book-radius);
    box-shadow:
        0 0 2.536px 0 rgba(0, 0, 0, 0.1),
        0 1.268px 10.144px 0 rgba(0, 0, 0, 0.1),
        /* extra ambient spread, since this panel is far larger than a search pill */
        0 26px 56px -30px rgba(46, 62, 86, 0.4);
    transition: box-shadow 620ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.booking-scene:hover .booking-glass {
    box-shadow:
        0 0 2.536px 0 rgba(0, 0, 0, 0.1),
        0 2.5px 14px 0 rgba(0, 0, 0, 0.12),
        0 34px 68px -30px rgba(46, 62, 86, 0.44);
}

/* Glossy liquid glass: solid inner ring plus a bright inner glow is what
   gives the crisp refractive edge. Faintly blue-tinted white body. */
.glass-body {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: rgba(248, 251, 255, 0.2);
    box-shadow:
        inset 0 0 0 1.268px rgba(166, 166, 166, 1),
        inset 0 0 10.144px 0 rgba(242, 242, 242, 1);
    backdrop-filter: blur(10.7px);
    -webkit-backdrop-filter: blur(10.7px);
    pointer-events: none;
}

/* Glossy specular: a hard highlight streak plus a pointer-tracked hotspot */
.glass-sheen {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    background:
        radial-gradient(620px circle at var(--pointer-x, 50%) var(--pointer-y, 10%), rgba(255, 255, 255, 0.42), transparent 56%),
        linear-gradient(122deg,
            rgba(255, 255, 255, 0.5) 0%,
            rgba(255, 255, 255, 0.12) 14%,
            transparent 32%,
            transparent 70%,
            rgba(234, 243, 253, 0.28) 90%,
            rgba(255, 255, 255, 0.44) 100%);
    opacity: var(--sheen, 0.62);
    pointer-events: none;
    transition: opacity 420ms ease;
}

/* Content sits above the glass layers */
.form-fields,
.sent-state {
    position: relative;
    z-index: 3;
}

/* ---------- Fields ---------- */

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 32.97px;
}

.field-group label {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
    padding-left: 2px;
    color: var(--book-ink);
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.field-group label span {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(20, 53, 60, 0.09);
    color: rgba(20, 53, 60, 0.68);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Glass well with a solid border in the submit button's ink */
.field-shell {
    position: relative;
    border: 1px solid rgba(20, 53, 60, 0.55);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(238, 245, 252, 0.32));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 2px 2px 5px -2px rgba(255, 255, 255, 0.95),
        inset -2px -2px 5px -2px rgba(255, 255, 255, 0.7),
        0 5px 12px -10px rgba(46, 62, 86, 0.32);
    transition: border-color 240ms ease, box-shadow 240ms ease, background 240ms ease, transform 240ms ease;
}

.field-shell:hover {
    border-color: rgba(20, 53, 60, 0.72);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(242, 248, 253, 0.44));
}

.field-shell:focus-within {
    border-color: var(--book-wine);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.68));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 2px 2px 5px -2px rgba(255, 255, 255, 1),
        0 0 0 4px rgba(148, 18, 18, 0.1),
        0 14px 26px -16px rgba(46, 62, 86, 0.36);
    transform: translateY(-1px);
}

.field-group input,
.field-group textarea {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 13px;
    outline: none;
    background: transparent;
    color: var(--book-ink);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

.field-group input {
    height: 54px;
    padding: 0 18px;
}

.field-group textarea {
    min-height: 130px;
    padding: 15px 18px;
    resize: vertical;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
    color: rgba(20, 53, 60, 0.38);
}

/* Keep autofill from punching an opaque box through the glass */
.field-group input:-webkit-autofill,
.field-group input:-webkit-autofill:hover,
.field-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--book-ink);
    -webkit-box-shadow: inset 0 0 0 100px rgba(255, 255, 255, 0.82);
    caret-color: var(--book-ink);
}

.form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

/* ---------- Submit ---------- */

.booking-submit {
    position: relative;
    display: inline-flex;
    width: 100%;
    height: 60px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    overflow: hidden;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(180deg, #578089 0%, #030708 52%, #000000 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -2px 0 rgba(0, 0, 0, 0.24),
        0 10px 20px -10px rgba(20, 53, 60, 0.7),
        0 22px 36px -20px rgba(20, 53, 60, 0.6);
    color: var(--book-paper);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 220ms ease, filter 220ms ease;
}

.button-shine {
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.26), transparent);
    transform: skewX(-18deg);
    pointer-events: none;
}

.booking-submit:hover:not(:disabled) {
    filter: brightness(1.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        inset 0 -2px 0 rgba(0, 0, 0, 0.24),
        0 14px 24px -10px rgba(20, 53, 60, 0.72),
        0 30px 46px -22px rgba(20, 53, 60, 0.62);
    transform: translateY(-3px);
}

.booking-submit:hover:not(:disabled) .button-shine {
    animation: button-sweep 780ms ease-out;
}

.booking-submit:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow:
        inset 0 2px 5px rgba(0, 0, 0, 0.32),
        0 6px 12px -8px rgba(20, 53, 60, 0.6);
}

.booking-submit:focus-visible {
    outline: 2px solid var(--book-wine);
    outline-offset: 3px;
}

.booking-submit:disabled {
    cursor: wait;
}

.button-arrow {
    transition: transform 220ms ease;
}

.booking-submit:hover:not(:disabled) .button-arrow {
    transform: translateX(4px);
}

.button-label,
.button-arrow {
    position: relative;
    z-index: 1;
    transition: opacity 180ms ease;
}

.button-loader {
    position: absolute;
    z-index: 1;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 180ms ease;
}

.button-loader i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    animation: loading-dot 900ms ease-in-out infinite;
}

.button-loader i:nth-child(2) {
    animation-delay: 120ms;
}

.button-loader i:nth-child(3) {
    animation-delay: 240ms;
}

.booking-submit.is-sending .button-label,
.booking-submit.is-sending .button-arrow {
    opacity: 0;
}

.booking-submit.is-sending .button-loader {
    opacity: 1;
}

.form-error {
    min-height: 24px;
    margin-top: -14px;
    color: var(--book-wine);
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    text-align: center;
}

.form-error a {
    color: inherit;
    font-weight: 600;
}

/* ---------- Sent state ---------- */

.booking-form.is-sent .form-fields {
    animation: fields-leave 280ms ease both;
}

.sent-state {
    display: flex;
    min-height: 606px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--book-ink);
    text-align: center;
}

/* An author display value outranks the UA [hidden] rule, so restate it */
.form-fields[hidden],
.sent-state[hidden] {
    display: none;
}

.sent-state.is-visible {
    animation: sent-arrive 520ms ease both;
}

.sent-animation {
    position: relative;
    width: 128px;
    height: 128px;
    margin: 0 auto 34px;
}

.sent-halo {
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(148, 18, 18, 0.18), transparent 66%);
    opacity: 0;
}

.sent-ring {
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.8), rgba(216, 229, 245, 0.44));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -12px 24px -16px rgba(96, 118, 146, 0.38),
        0 18px 32px -20px rgba(46, 62, 86, 0.44);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: scale(0);
}

.sent-check {
    position: absolute;
    top: 45px;
    left: 45px;
    z-index: 2;
}

.sent-check path {
    stroke-dasharray: 34;
    stroke-dashoffset: 34;
}

.sent-plane {
    position: absolute;
    top: 38px;
    left: 42px;
    z-index: 3;
    color: var(--book-wine);
    opacity: 0;
    transform: translate(-150px, 84px) rotate(-22deg) scale(0.72);
}

.sent-state.is-visible .sent-halo {
    animation: halo-bloom 900ms 260ms ease-out both;
}

.sent-state.is-visible .sent-ring {
    animation: ring-pop 640ms 200ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.sent-state.is-visible .sent-plane {
    animation: plane-flight 1100ms 60ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.sent-state.is-visible .sent-check path {
    animation: check-draw 460ms 880ms ease-out both;
}

.sent-eyebrow {
    margin-bottom: 10px;
    color: var(--book-wine);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sent-state h2 {
    margin-bottom: 12px;
    font-size: 3.2rem;
    font-weight: 400;
    line-height: 1;
}

.sent-state > p:not(.sent-eyebrow) {
    max-width: 390px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.send-another {
    margin-top: 34px;
    padding: 11px 22px;
    border: 1px solid rgba(20, 53, 60, 0.55);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(238, 245, 252, 0.54));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 8px 18px -14px rgba(46, 62, 86, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--book-ink);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.send-another:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 249, 253, 0.7));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 12px 22px -14px rgba(46, 62, 86, 0.5);
    transform: translateY(-2px);
}

/* ---------- Keyframes ---------- */

@keyframes intro-rise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scene-arrive {
    from { opacity: 0; transform: translateY(38px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes button-sweep {
    from { left: -60%; }
    to { left: 120%; }
}

@keyframes loading-dot {
    0%, 100% { opacity: 0.35; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); }
}

@keyframes fields-leave {
    to { opacity: 0; transform: translateY(-14px); }
}

@keyframes sent-arrive {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes halo-bloom {
    0% { opacity: 0; transform: scale(0.6); }
    60% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.75; transform: scale(1); }
}

@keyframes ring-pop {
    0% { opacity: 0; transform: scale(0.35); }
    70% { opacity: 1; transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes plane-flight {
    0% { opacity: 0; transform: translate(-150px, 84px) rotate(-22deg) scale(0.72); }
    18% { opacity: 1; }
    68% { opacity: 1; transform: translate(18px, -20px) rotate(8deg) scale(0.9); }
    100% { opacity: 0; transform: translate(88px, -90px) rotate(16deg) scale(0.58); }
}

@keyframes check-draw {
    to { stroke-dashoffset: 0; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .booking-glass {
        padding: 44px 38px 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --book-radius: 34px;
    }

    .book-main {
        padding: 16px 14px 90px;
    }

    .booking-intro {
        margin: 52px auto 44px;
    }

    .booking-intro h1 {
        font-size: clamp(2.8rem, 13vw, 4.6rem);
        line-height: 1.02;
    }

    .booking-scene {
        padding: 6px;
    }

    /* No hover lift on touch */
    .booking-scene:hover .booking-tilt {
        transform: none;
    }

    .booking-glass {
        min-height: 664px;
        padding: 34px 26px 32px;
    }

    .form-fields {
        gap: 26px;
    }

    .glass-body {
        backdrop-filter: blur(9px);
        -webkit-backdrop-filter: blur(9px);
    }

    .sent-state {
        min-height: 578px;
    }
}

@media (max-width: 480px) {
    :root {
        --book-radius: 28px;
    }

    .book-main {
        padding-right: 10px;
        padding-left: 10px;
    }

    .back-link {
        margin-left: 6px;
    }

    .booking-kicker {
        padding: 6px 16px 7px;
        font-size: 0.92rem;
    }

    .booking-intro h1 {
        font-size: 2.85rem;
    }

    .booking-glass {
        padding: 28px 20px 26px;
    }

    .field-group label {
        font-size: 1.15rem;
        margin-bottom: 9px;
    }

    .field-group label span {
        font-size: 0.72rem;
    }

    /* 16px keeps iOS Safari from zooming the page on focus */
    .field-group input {
        height: 52px;
        font-size: 16px;
    }

    .field-group textarea {
        font-size: 16px;
    }

    .sent-state h2 {
        font-size: 2.6rem;
    }
}

/* ---------- Accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
    .booking-intro,
    .booking-scene,
    .sent-state.is-visible,
    .sent-state.is-visible .sent-halo,
    .sent-state.is-visible .sent-ring,
    .sent-state.is-visible .sent-plane,
    .sent-state.is-visible .sent-check path,
    .booking-submit:hover:not(:disabled) .button-shine,
    .button-loader i {
        animation-duration: 1ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
    }

    .booking-tilt,
    .booking-scene:hover .booking-tilt {
        transform: none !important;
        transition: none !important;
    }
}