.booking {
    position: relative;
    padding: clamp(120px, 16vw, 180px) 0 clamp(60px, 8vw, 100px);
    min-height: 100dvh;
}

.booking__head {
    max-width: 720px;
}

.booking__title {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(40px, 7vw, 84px);
    line-height: 1.04;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-top: 18px;
}

.booking__title em {
    font-style: normal;
    color: var(--amber);
}

.booking__sub {
    margin-top: 20px;
    color: var(--ink-soft);
    font-size: 16px;
    max-width: 56ch;
}

.booking__grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: clamp(28px, 5vw, 60px);
    margin-top: clamp(40px, 6vw, 70px);
    align-items: start;
}

/* ---------- form ---------- */
.booking__form {
    border: 1px solid var(--line);
    background: var(--card);
    padding: clamp(24px, 3.4vw, 44px);
}

.field {
    margin-bottom: 22px;
}

.field label {
    display: block;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 8px;
}

.field__req {
    color: var(--amber);
}

.field__input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink);
    font-size: 16px;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.field__input::placeholder {
    color: var(--ink-faint);
}

.field__input:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(193, 168, 117, 0.12);
}

.field__input.is-error {
    border-color: #C25E5E;
}

.field__input.is-error:focus {
    box-shadow: 0 0 0 3px rgba(194, 94, 94, 0.14);
}

select.field__input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1 L6 6 L11 1' fill='none' stroke='%238C8477' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    cursor: pointer;
}

.field__error {
    display: none;
    margin-top: 6px;
    font-size: 13px;
    color: #D97A7A;
}

.field__error.is-visible {
    display: block;
}

.booking__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.booking__consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 26px 0 4px;
    padding: 14px;
    font-size: 14px;
    color: var(--ink-soft);
    border: 1px solid transparent;
    border-radius: 10px;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.booking__consent input {
    width: 18px;
    height: 18px;
    flex: none;
    margin-top: 3px;
    accent-color: var(--amber);
}

.booking__consent a {
    color: var(--amber-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.booking__consent.is-error {
    color: #D97A7A;
    border-color: rgba(194, 94, 94, 0.55);
    background: rgba(194, 94, 94, 0.08);
}

.booking__consent.is-error input {
    outline: 2px solid #C25E5E;
    outline-offset: 2px;
}

.booking__consent-error {
    margin: 0 0 4px;
    font-size: 13px;
    color: #D97A7A;
}

.booking__submit {
    width: 100%;
    position: relative;
}

.booking__submit[data-pending] {
    pointer-events: none;
}

.booking__submit[data-pending]::before {
    content: "";
    width: 16px;
    height: 16px;
    margin-right: 10px;
    display: inline-block;
    vertical-align: -3px;
    border: 2px solid rgba(254, 252, 252, 0.35);
    border-top-color: #FEFCFC;
    border-radius: 50%;
    animation: booking-spin 0.7s linear infinite;
}

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

.booking__availability {
    display: none;
    margin: -6px 0 22px;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid var(--line);
}

.booking__availability.is-free,
.booking__availability.is-taken {
    display: block;
}

.booking__availability.is-free {
    color: var(--ink-soft);
    border-color: rgba(254, 252, 252, 0.12);
}

.booking__availability.is-taken {
    color: #D9A3A3;
    border-color: rgba(194, 94, 94, 0.4);
}

.booking__demo-note {
    margin-top: 14px;
    text-align: center;
    font-size: 12px;
    color: var(--ink-faint);
}

/* ---------- aside ---------- */
.booking__aside {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.booking__info {
    background: var(--bg-2);
    padding: 24px;
}

.booking__info-label {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.booking__info-value {
    margin-top: 10px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 19px;
    line-height: 1.3;
}

.booking__info-value a {
    color: var(--amber-soft);
}

.booking__info-value small {
    display: block;
    margin-top: 6px;
    font-family: var(--sans);
    font-weight: 400;
    font-size: 13px;
    color: var(--ink-faint);
}

.booking__info-note {
    margin-top: 8px;
    font-family: var(--sans);
    font-size: 12px;
    color: var(--ink-faint);
}

/* ---------- success ---------- */
.booking__success {
    display: none;
    text-align: center;
    padding: clamp(40px, 8vw, 80px) 0;
    border: 1px solid var(--line);
    background: var(--card);
}

.booking__success.is-visible {
    display: block;
}

.success__mark {
    width: 72px;
    height: 72px;
    margin: 0 auto 28px;
    border: 1px solid var(--amber);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--amber);
}

.success__mark svg {
    width: 30px;
    height: 30px;
}

.success__code {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--amber);
    margin-top: 18px;
}

.success__title {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(28px, 4vw, 44px);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.success__text {
    max-width: 480px;
    margin: 16px auto 0;
    color: var(--ink-soft);
    font-size: 15px;
}

.success__actions {
    margin-top: 32px;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .booking__grid {
        grid-template-columns: 1fr;
    }

    .booking__aside {
        position: static;
    }
}

@media (max-width: 560px) {
    .booking__row {
        grid-template-columns: 1fr;
    }
}
