/* Book Request page — extends contact-page tokens */

.site-main--book-request {
    /* inherits .site-main--contact variables */
}

.book-request-page__body {
    padding-bottom: 2.5rem;
}

/* Steps */

.book-request-steps__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.book-request-steps__item {
    position: relative;
    padding: 1.25rem 1.1rem 1.15rem;
    border-radius: 16px;
    min-height: 100%;
}

.book-request-steps__badge {
    position: absolute;
    top: 0.85rem;
    inset-inline-end: 0.85rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--katabam-primary);
    background: rgba(110, 190, 69, 0.14);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    line-height: 1.4;
}

.book-request-steps__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
    padding-inline-end: 2.5rem;
}

.book-request-steps__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(110, 190, 69, 0.14);
    color: var(--katabam-primary-dark);
    flex-shrink: 0;
}

.book-request-steps__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--contact-heading);
    line-height: 1.45;
    min-width: 0;
}

.book-request-steps__text {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.75;
    color: var(--contact-muted);
}

/* Compose layout */

.book-request-compose__split {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    gap: 1.25rem;
    align-items: start;
}

.book-request-compose__form-mount,
.book-request-compose__aside-mount {
    min-width: 0;
}

.book-request-form-card {
    height: 100%;
}

.book-request-form__section {
    border: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.book-request-form__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.book-request-form__head-actions {
    flex-shrink: 0;
}

.book-request-form__legend {
    padding: 0;
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--contact-heading);
}

.book-request-form__grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 960px) {
    .book-request-form__grid--3 {
        grid-template-columns: 1fr;
    }
}

.book-request-form__format {
    margin-top: 0.15rem;
}

.book-request-form__format-label {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--contact-muted);
}

.book-request-form__format-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.book-request-form__format-option {
    position: relative;
    cursor: pointer;
}

.book-request-form__format-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.book-request-form__format-option span {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--contact-surface-border);
    background: var(--contact-surface-soft);
    color: var(--contact-heading);
    font-size: 0.82rem;
    line-height: 1.4;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.book-request-form__format-option input:focus-visible + span {
    outline: 2px solid rgba(110, 190, 69, 0.45);
    outline-offset: 2px;
}

.book-request-form__format-option input:checked + span {
    border-color: rgba(110, 190, 69, 0.55);
    background: rgba(110, 190, 69, 0.14);
    color: var(--katabam-primary-dark);
    box-shadow: 0 0 0 1px rgba(110, 190, 69, 0.2);
}

.book-request-form__actions {
    display: none;
}

.book-request-form__submit {
    min-width: 10rem;
    padding: 0.62rem 1.25rem;
    border-radius: 12px;
    font-size: 0.88rem;
    white-space: nowrap;
}

/* Aside */

.book-request-aside {
    display: grid;
    gap: 1rem;
}

.book-request-aside__panel,
.book-request-aside__cta {
    padding: 1.15rem 1.1rem;
    border-radius: 16px;
}

.book-request-aside__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
}

.book-request-aside__title {
    margin: 0 0 0.75rem;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--contact-heading);
}

.book-request-aside__tips {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.book-request-aside__tips li {
    position: relative;
    padding-inline-start: 1.1rem;
    font-size: 0.84rem;
    line-height: 1.7;
    color: var(--contact-muted);
}

.book-request-aside__tips li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--katabam-primary);
}

.book-request-aside__cta-title {
    margin: 0 0 0.45rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--contact-heading);
}

.book-request-aside__cta-text {
    margin: 0 0 0.85rem;
    font-size: 0.84rem;
    line-height: 1.75;
    color: var(--contact-muted);
}

.book-request-aside__cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.book-request-aside__cta-actions .contact-btn {
    justify-content: center;
    text-align: center;
}

.book-request-reveal {
    opacity: 0;
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--book-request-reveal-delay, 0ms);
}

.book-request-reveal.about-surface {
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--book-request-reveal-delay, 0ms),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0s,
        box-shadow 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0s;
}

.book-request-reveal.is-visible {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .book-request-reveal {
        opacity: 1;
        transition: none;
    }
}

@media (max-width: 960px) {
    .book-request-steps__grid {
        grid-template-columns: 1fr;
    }

    .book-request-compose__split {
        grid-template-columns: 1fr;
    }

    .book-request-compose__aside-mount {
        order: -1;
    }
}

@media (max-width: 640px) {
    .book-request-form__section-head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.55rem;
        margin-bottom: 0.65rem;
    }

    .book-request-form__legend {
        font-size: 0.82rem;
        flex: 1 1 auto;
        min-width: 0;
    }

    .book-request-form__head-actions {
        flex-shrink: 0;
    }

    .book-request-form__head-actions .contact-btn,
    .book-request-form__head-actions .rb-magnet,
    .book-request-form__head-actions .rb-magnet__inner {
        width: auto;
        display: inline-flex;
    }

    .book-request-form__submit {
        min-width: 0;
        padding: 0.5rem 0.7rem;
        font-size: 0.76rem;
        white-space: nowrap;
    }

    .book-request-form__format-options {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.4rem;
    }

    .book-request-form__format-option {
        flex: 1 1 0;
        min-width: 0;
    }

    .book-request-form__format-option span {
        width: 100%;
        justify-content: center;
        padding: 0.42rem 0.35rem;
        font-size: 0.76rem;
    }

    .book-request-aside__cta-actions {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.45rem;
    }

    .book-request-aside__cta-actions .contact-btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 0.5rem 0.55rem;
        font-size: 0.76rem;
        line-height: 1.35;
    }
}
