/*
    Booking wizard — shared chrome for the customer-facing trailer, portable bar
    and event booking flows.

    Visual language is lifted from the staff New Hire wizard
    (Areas/GroundControlHQ/Views/NewHireWizard/_WizardProgress.cshtml) so both
    wizards read as the same product: cream card, #6B8FAA blue for completed
    steps, #C7A17A tan for the current one.
*/

/* ── Progress header ─────────────────────────────────────────────────────── */
.bw-card {
    background: #FFFDF9;
    border: 1px solid #E8DFD1;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 18px;
}

.bw-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.bw-head h4 { margin: 0; color: #3D332B; font-weight: 600; }
.bw-head .bw-meta { color: #8A7E73; font-size: .9rem; }

.bw-bar { height: 6px; border-radius: 3px; background: #E8DFD1; overflow: hidden; }
.bw-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, #6B8FAA, #C7A17A);
    transition: width .35s ease;
}

.bw-pips { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }

.bw-pip {
    flex: 1 1 0;
    min-width: 64px;
    text-align: center;
    padding: 6px 4px;
    border-radius: 8px;
    background: #FFFDF9;
    border: 1px solid #E8DFD1;
    color: #8A7E73;
    font-size: .78rem;
}

.bw-pip .num { display: block; font-weight: 700; font-size: .9rem; }
.bw-pip.done { background: #6B8FAA; color: #fff; border-color: #6B8FAA; }
.bw-pip.current { background: #C7A17A; color: #fff; border-color: #C7A17A; font-weight: 600; }

/* Completed steps are clickable to jump back */
.bw-pip.done { cursor: pointer; }
.bw-pip.done:hover { filter: brightness(1.08); }

/* ── Step panels ─────────────────────────────────────────────────────────── */
.bw-step { display: none; }
.bw-step.active { display: block; }

.bw-step-intro {
    color: #8A7E73;
    font-size: .92rem;
    margin-bottom: 16px;
}

/* ── Selectable radio cards (locations, venues, bar type) ────────────────── */
.bw-choice {
    display: block;
    border: 2px solid #E8DFD1;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    background: #FFFDF9;
    transition: border-color .15s, background .15s;
}

.bw-choice:hover { border-color: #C7A17A; background: #FDF9F2; }

.bw-choice.selected {
    border-color: #6B8FAA;
    background: #EEF4F8;
}

.bw-choice input[type="radio"] { margin-right: 10px; }
.bw-choice .bw-choice-title { font-weight: 600; color: #3D332B; }
.bw-choice .bw-choice-sub { color: #8A7E73; font-size: .85rem; margin-top: 2px; margin-left: 26px; }

/* The "add a new location" panel revealed by its radio */
.bw-newloc {
    border-left: 3px solid #C7A17A;
    background: #FDFAF4;
    border-radius: 0 8px 8px 0;
    padding: 14px 16px;
    margin: 4px 0 10px 26px;
}

/* ── Tips and warnings ───────────────────────────────────────────────────── */
.bw-tip,
.bw-warn {
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .88rem;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.bw-tip {
    background: #EEF4F8;
    border: 1px solid #CBDDE9;
    color: #2F5A76;
}

.bw-warn {
    background: #FDF3E7;
    border: 1px solid #F0D6AE;
    color: #8A5A1E;
}

.bw-tip i, .bw-warn i { margin-top: 2px; }

/* Inline per-field warning, shown immediately as the customer types */
.bw-field-warn {
    display: none;
    color: #8A5A1E;
    font-size: .82rem;
    margin-top: 4px;
}
.bw-field-warn.show { display: block; }

/* ── Review step ─────────────────────────────────────────────────────────── */
.bw-review-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid #F0E9DD;
}
.bw-review-row:last-child { border-bottom: 0; }
.bw-review-row dt { color: #8A7E73; font-weight: 500; margin: 0; flex: 0 0 42%; }
.bw-review-row dd { color: #3D332B; font-weight: 600; margin: 0; text-align: right; flex: 1; }

/* ── Navigation ──────────────────────────────────────────────────────────── */
.bw-nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #E8DFD1;
}

/* A blocked "Continue" stays visible and focusable so screen readers can reach
   the reason it is blocked, rather than being disabled and silent. */
.bw-nav .btn.is-blocked { opacity: .55; }

@media (max-width: 575px) {
    .bw-pip { min-width: 36px; padding: 6px 2px; font-size: 0; }
    .bw-pip .num { font-size: .85rem; }
    .bw-review-row { flex-direction: column; gap: 2px; }
    .bw-review-row dd { text-align: left; }
    .bw-nav .btn { flex: 1 1 auto; }
}
