/*
 * Booking assistance panel (Contextual Assistance Service, 2026-11-29).
 *
 * The same panel contract as the public document family's assistance
 * panel (identical class names), restated in the booking shell's own
 * stylesheet so the booking surfaces do not depend on the document
 * theme. Values follow the booking family's neutral palette.
 */

/* Help menu items that open the panel are buttons wearing the
   booking menu's item styling. */
.booking-menu-item[data-assistance-topic] {
    background: none;
    border: 0;
    width: 100%;
    text-align: start;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.assistance-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(23, 23, 23, 0.55);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.assistance-overlay[hidden] {
    display: none;
}

.assistance-panel {
    background: #fff;
    color: #262626;
    border-radius: 0.75rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 34rem;
    padding: 1.5rem;
    text-align: start;
}

.assistance-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.assistance-panel-title {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 0;
    outline: none;
}

.assistance-close {
    background: none;
    border: 0;
    color: #525252;
    cursor: pointer;
    padding: 0.5rem;
    margin: -0.5rem -0.5rem 0 0;
    min-width: 2.75rem;
    min-height: 2.75rem;
}

.assistance-close:hover,
.assistance-close:focus-visible {
    color: #171717;
}

.assistance-context {
    color: #525252;
    margin: 0.25rem 0 1.25rem;
}

.assistance-topics {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.assistance-topic {
    display: block;
    width: 100%;
    text-align: start;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    min-height: 2.75rem;
}

.assistance-topic:hover,
.assistance-topic:focus-visible {
    border-color: #a3a3a3;
    background: #f5f5f5;
}

.assistance-topic-label {
    display: block;
    font-weight: 500;
    color: #171717;
}

.assistance-topic-desc {
    display: block;
    color: #525252;
    font-size: 0.875rem;
    margin-top: 0.125rem;
}

.assistance-back {
    background: none;
    border: 0;
    color: #2563eb;
    cursor: pointer;
    padding: 0.5rem 0.5rem 0.5rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 2.75rem;
}

.assistance-form-topic {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0.25rem 0;
    outline: none;
}

.assistance-recipient,
.assistance-note,
.assistance-action-intro,
.assistance-action-text {
    color: #525252;
    margin: 0 0 1rem;
}

.assistance-note {
    background: #f5f5f5;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #404040;
}

.assistance-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    color: #991b1b;
    padding: 0.75rem 1rem;
    margin: 0 0 1rem;
    outline: none;
}

.assistance-action-result {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.5rem;
    color: #166534;
    padding: 0.75rem 1rem;
}

.assistance-action-row {
    margin: 0 0 1rem;
}

.assistance-still {
    margin: 1rem 0 0;
}

.assistance-panel .form-group {
    margin-bottom: 1rem;
}

.assistance-panel .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.assistance-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.assistance-submit-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.assistance-sending {
    color: #525252;
}

.assistance-success-ref {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0.25rem 0;
}

.assistance-success-ref-label,
.assistance-success-keep {
    color: #525252;
    margin: 0;
}

.assistance-success-heading {
    font-size: 1.125rem;
    font-weight: 600;
    outline: none;
}

.assistance-view .btn {
    min-height: 2.75rem;
}

@media (max-width: 40rem) {
    .assistance-overlay {
        padding: 0.75rem;
    }

    .assistance-panel {
        padding: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .assistance-overlay,
    .assistance-panel {
        transition: none;
    }
}
