/* =====================================================
   BHA Course Booking — Frontend
   Shortcode: [bha_booking_form]
   ===================================================== */

.bha-booking {
    max-width: 820px;
    margin: 0 auto;
    font-family: inherit;
    color: #0d0d1e;
}

/* ---- Step indicator ---- */

.bha-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 4px 0;
}

.bha-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #aab !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.25s;
}

.bha-step span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    color: #aab !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    transition: background 0.25s, color 0.25s;
    flex-shrink: 0;
}

.bha-step.is-active {
    color: #486ee2 !important;
}

.bha-step.is-active span {
    background: #486ee2 !important;
    color: #fff !important;
}

.bha-step.is-done span {
    background: #2d4cc4 !important;
    color: #fff !important;
}

.bha-step.is-done {
    color: #2d4cc4 !important;
}

.bha-step-sep {
    width: 24px;
    height: 2px;
    background: #e8eaf6;
    margin: 0 4px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .bha-step-sep { width: 12px; }
    .bha-step { font-size: 11px !important; gap: 5px; }
    .bha-step span { width: 22px !important; height: 22px !important; font-size: 11px !important; }
}

/* ---- Panel ---- */

.bha-panel {
    display: none;
    animation: bha-fade-in 0.3s ease;
}

.bha-panel.is-active {
    display: block;
}

@keyframes bha-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bha-panel-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0d0d1e !important;
    margin: 0 0 24px !important;
    text-align: center;
}

/* ---- Step 1: Session type ---- */

.bha-session-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 560px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .bha-session-grid { grid-template-columns: 1fr; }
}

.bha-session-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 32px 24px !important;
    border: 2px solid rgba(72, 110, 226, 0.25) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    text-align: center !important;
    color: #0d0d1e !important;
    box-shadow: none !important;
}

.bha-session-btn:hover,
.bha-session-btn:focus-visible {
    border-color: #486ee2 !important;
    box-shadow: 0 4px 20px rgba(72, 110, 226, 0.15) !important;
    transform: translateY(-2px);
    outline: none;
    background: #ffffff !important;
    color: #0d0d1e !important;
}

.bha-session-icon {
    font-size: 36px !important;
    line-height: 1;
}

.bha-session-btn strong {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0d0d1e !important;
    display: block !important;
}

.bha-session-btn span {
    font-size: 13px !important;
    color: #555555 !important;
    line-height: 1.4 !important;
}

/* ---- Step 2: Course grid ---- */

.bha-course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .bha-course-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
    .bha-course-grid { grid-template-columns: 1fr; }
}

.bha-course-card {
    padding: 18px 16px !important;
    border: 2px solid rgba(72, 110, 226, 0.18) !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    cursor: pointer;
    text-align: center !important;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    color: #0d0d1e !important;
    box-shadow: none !important;
}

.bha-course-card:hover,
.bha-course-card:focus-visible {
    border-color: #486ee2 !important;
    box-shadow: 0 4px 16px rgba(72, 110, 226, 0.12) !important;
    transform: translateY(-2px);
    outline: none;
    background: #ffffff !important;
    color: #0d0d1e !important;
}

.bha-course-card strong {
    display: block !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0d0d1e !important;
    margin-bottom: 5px !important;
}

.bha-course-card p {
    font-size: 12px !important;
    color: #666666 !important;
    margin: 0 !important;
    line-height: 1.45 !important;
}

/* ---- Step 3: Level list ---- */

.bha-level-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.bha-level-btn {
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px !important;
    padding: 18px 20px !important;
    border: 2px solid rgba(72, 110, 226, 0.18) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    cursor: pointer;
    text-align: left !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    color: #0d0d1e !important;
    box-shadow: none !important;
}

.bha-level-btn:hover,
.bha-level-btn:focus-visible {
    border-color: #486ee2 !important;
    box-shadow: 0 4px 16px rgba(72, 110, 226, 0.12) !important;
    outline: none;
    background: #ffffff !important;
    color: #0d0d1e !important;
}

/* Blue circle badge — white text */
.bha-level-badge {
    flex-shrink: 0;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #486ee2, #2d4cc4) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-transform: uppercase;
}

.bha-level-body strong {
    display: block !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0d0d1e !important;
    margin-bottom: 4px !important;
}

.bha-level-body p {
    font-size: 13px !important;
    color: #555555 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* ---- Step 4: Slot list ---- */

.bha-slots-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.bha-slot-btn {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 16px 20px !important;
    border: 2px solid rgba(72, 110, 226, 0.18) !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    cursor: pointer;
    text-align: left !important;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: #0d0d1e !important;
    box-shadow: none !important;
}

.bha-slot-btn:hover,
.bha-slot-btn:focus-visible {
    border-color: #486ee2 !important;
    box-shadow: 0 4px 16px rgba(72, 110, 226, 0.12) !important;
    outline: none;
    background: #ffffff !important;
    color: #0d0d1e !important;
}

/* Blue date block — white text */
.bha-slot-date {
    flex-shrink: 0;
    min-width: 64px;
    text-align: center;
    background: linear-gradient(135deg, #486ee2, #2d4cc4) !important;
    border-radius: 8px;
    padding: 8px 10px;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.3;
}

.bha-slot-date .bha-slot-day {
    font-size: 20px !important;
    font-weight: 800 !important;
    display: block !important;
    line-height: 1;
    color: #ffffff !important;
}

.bha-slot-info strong {
    display: block !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0d0d1e !important;
}

.bha-slot-info span {
    font-size: 12px !important;
    color: #666666 !important;
}

.bha-slot-seats {
    margin-left: auto;
    font-size: 12px !important;
    color: #486ee2 !important;
    font-weight: 600 !important;
    white-space: nowrap;
}

/* Date on Request variant of the date block */
.bha-slot-date--on-request {
    background: linear-gradient(135deg, #7c3aed, #5b21b6) !important;
    font-size: 10px !important;
    line-height: 1.4 !important;
    text-align: center;
    min-width: 64px;
}

.bha-no-slots {
    text-align: center;
    padding: 40px 20px;
    color: #777777 !important;
    font-size: 14px !important;
    border: 2px dashed rgba(72, 110, 226, 0.2);
    border-radius: 12px;
}

/* ---- Step 5: Contact form ---- */

/* Blue summary bar — constrained to match form width */
.bha-summary {
    max-width: 560px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #486ee2, #2d4cc4) !important;
    border-radius: 10px;
    padding: 18px 22px;
    color: #ffffff !important;
    font-size: 14px !important;
    line-height: 1.6;
}

.bha-summary strong {
    display: block !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    margin-bottom: 6px !important;
    color: #ffffff !important;
}

.bha-summary span {
    color: rgba(255,255,255,0.92) !important;
    font-size: 14px !important;
    line-height: 1.7;
}

.bha-form {
    max-width: 560px;
    margin: 0 auto;
}

.bha-form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    margin-bottom: 16px;
}

@media (max-width: 480px) {
    .bha-form-row { grid-template-columns: 1fr !important; }
}

.bha-field {
    margin-bottom: 0;
}

.bha-field--full {
    grid-column: 1 / -1;
}

.bha-field label {
    display: block;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.bha-field label span {
    color: #e04040 !important;
}

.bha-field input {
    width: 100% !important;
    padding: 10px 13px !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 7px !important;
    font-size: 14px !important;
    color: #0d0d1e !important;
    background: #ffffff !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box !important;
    height: auto !important;
    line-height: 1.5 !important;
}

.bha-field input:focus {
    border-color: #486ee2 !important;
    box-shadow: 0 0 0 3px rgba(72, 110, 226, 0.12);
    outline: none;
}

.bha-field input.has-error {
    border-color: #e04040 !important;
}

.bha-err {
    display: block;
    font-size: 12px !important;
    color: #e04040 !important;
    margin-top: 5px;
    min-height: 16px;
}

.bha-submit-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Blue submit button */
.bha-submit-btn {
    flex: 1;
    padding: 10px 20px !important;
    line-height: 1.5 !important;
    background: linear-gradient(135deg, #486ee2, #2d4cc4) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 7px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    letter-spacing: 0.2px;
}

.bha-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #ffffff !important;
}

.bha-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    color: #ffffff !important;
}

.bha-form-err {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fef2f2 !important;
    color: #b91c1c !important;
    font-size: 14px !important;
    display: none;
}

.bha-form-err.is-visible {
    display: block;
}

/* ---- Back button ---- */

.bha-nav {
    margin-top: 20px;
}

.bha-back-btn {
    background: #ffffff !important;
    border: 1.5px solid #d1d5db !important;
    color: #486ee2 !important;
    padding: 10px 18px !important;
    line-height: 1.5 !important;
    border-radius: 7px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.bha-back-btn:hover {
    background: #f5f7ff !important;
    color: #2d4cc4 !important;
    border-color: #486ee2 !important;
}

/* ---- Loading ---- */

.bha-loading {
    text-align: center;
    padding: 40px 20px;
    color: #999999 !important;
    font-size: 14px !important;
}

/* ---- Confirmation ---- */

.bha-confirm {
    text-align: center;
    padding: 40px 20px;
}

/* Blue icon circle — white text */
.bha-confirm-icon {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #486ee2, #2d4cc4) !important;
    color: #ffffff !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 20px;
}

.bha-confirm h2 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #0d0d1e !important;
    margin: 0 0 12px !important;
}

.bha-confirm p {
    font-size: 14px !important;
    color: #555555 !important;
    max-width: 460px;
    margin: 0 auto 24px !important;
    line-height: 1.6 !important;
}

.bha-confirm-details {
    display: inline-block;
    background: #f5f7ff !important;
    border-radius: 10px;
    padding: 16px 24px;
    text-align: left;
    font-size: 14px !important;
    color: #0d0d1e !important;
    margin-bottom: 28px;
    line-height: 1.8;
}

/* Blue restart button — white text */
.bha-restart-btn {
    padding: 12px 28px !important;
    background: linear-gradient(135deg, #486ee2, #2d4cc4) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: opacity 0.2s;
}

.bha-restart-btn:hover {
    opacity: 0.88;
    color: #ffffff !important;
}
