/**
 * Barka Angels — Styles complémentaires
 * Basés sur company-modern.css (déjà chargé sur la page)
 * Uniquement les éléments spécifiques au formulaire multi-étapes
 */

/* ========================================
   PROGRESS STEPPER
   ======================================== */

.ba-stepper {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
}

.ba-stepper-item {
    display: flex;
    align-items: center;
    flex: 1;
}

.ba-stepper-circle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border: 2px solid #e5e7eb;
}

.ba-stepper-circle.active {
    background: linear-gradient(135deg, #012CA8 0%, #00B7FF 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(1, 44, 168, 0.35);
}

.ba-stepper-circle.done {
    background: linear-gradient(135deg, #012CA8 0%, #00B7FF 100%);
    color: #ffffff;
    border-color: transparent;
}

.ba-stepper-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 4px;
    transition: background 0.3s ease;
}

.ba-stepper-line.done {
    background: linear-gradient(90deg, #012CA8 0%, #00B7FF 100%);
}

/* ========================================
   STEP HEADER
   ======================================== */

.ba-step-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #012CA8;
    margin-bottom: 6px;
}

.ba-step-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.ba-step-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1.75rem;
}

/* ========================================
   RADIO PILLS
   ======================================== */

.ba-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.ba-radio-pill {
    padding: 9px 20px;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    line-height: 1.4;
}

.ba-radio-pill:hover {
    border-color: #012CA8;
    color: #012CA8;
    background: #eff6ff;
}

.ba-radio-pill.selected {
    border-color: #012CA8;
    background: linear-gradient(135deg, rgba(1,44,168,0.08) 0%, rgba(0,183,255,0.08) 100%);
    color: #012CA8;
    font-weight: 600;
}

/* ========================================
   CHIP MULTI-SELECT
   ======================================== */

.ba-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.ba-chip {
    padding: 9px 18px;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 2px;
    user-select: none;
}

.ba-chip .chip-main {
    font-weight: 600;
    line-height: 1.3;
}

.ba-chip .chip-sub {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 400;
}

.ba-chip:hover {
    border-color: #012CA8;
    color: #012CA8;
    background: #eff6ff;
}

.ba-chip.selected {
    border-color: #012CA8;
    background: linear-gradient(135deg, rgba(1,44,168,0.08) 0%, rgba(0,183,255,0.08) 100%);
    color: #012CA8;
}

.ba-chip.selected .chip-sub {
    color: #3b82f6;
}

/* ========================================
   FORM FIELD ERRORS
   ======================================== */

.ba-field-error {
    font-size: 0.8rem;
    color: #dc2626;
    margin-top: 5px;
    display: none;
}

.ba-field-error.visible {
    display: block;
}

.ba-form-error-banner {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.875rem;
    margin-bottom: 20px;
    display: none;
}

.ba-form-error-banner.visible {
    display: block;
}

/* ========================================
   CHAR COUNTER
   ======================================== */

.ba-char-counter {
    font-size: 0.78rem;
    color: #9ca3af;
    text-align: right;
    margin-top: 4px;
}

.ba-char-counter.warn {
    color: #f59e0b;
}

/* ========================================
   SOCIAL ROWS
   ======================================== */

.ba-social-row {
    display: grid;
    grid-template-columns: 1fr 130px;
    gap: 10px;
    align-items: end;
    margin-bottom: 12px;
}

.ba-social-row .form-group {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .ba-social-row {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   FORM NAV BUTTONS
   ======================================== */

.ba-form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 12px;
}

.ba-btn-prev {
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    background: transparent;
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.ba-btn-prev:hover {
    border-color: #374151;
    color: #374151;
}

.ba-btn-next,
.ba-btn-submit {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #012CA8 0%, #00B7FF 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(1, 44, 168, 0.3);
    line-height: 1.4;
}

.ba-btn-next:hover,
.ba-btn-submit:hover {
    background: linear-gradient(135deg, #012CA8 0%, #012CA8 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(1, 44, 168, 0.4);
}

.ba-btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   STEP CONTENT ANIMATION
   ======================================== */

.ba-step-content {
    animation: baFadeIn 0.25s ease both;
}

@keyframes baFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========================================
   NOTICE / INFO BOXES
   ======================================== */

.ba-notice {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.875rem;
    line-height: 1.65;
    margin-bottom: 18px;
}

.ba-notice.info {
    background: rgba(1, 44, 168, 0.05);
    border: 1px solid rgba(1, 44, 168, 0.15);
    color: #374151;
}

.ba-notice.warning {
    background: rgba(245, 158, 11, 0.07);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #92400e;
}

/* ========================================
   SUCCESS SCREEN
   ======================================== */

.ba-success {
    display: none;
    text-align: center;
    padding: 2rem 1rem;
}

.ba-success.visible {
    display: block;
}

.ba-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E8F4FF 0%, #D6ECFF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.ba-success-icon i {
    font-size: 2rem;
    color: #012CA8;
}

.ba-success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.ba-success-message {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.7;
    max-width: 460px;
    margin: 0 auto;
}

/* ========================================
   BENEFIT BADGE (hero eyebrow)
   ======================================== */

.ba-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(1,44,168,0.08) 0%, rgba(0,183,255,0.08) 100%);
    border: 1px solid rgba(1, 44, 168, 0.18);
    color: #012CA8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* hidden util */
.ba-hidden {
    display: none !important;
}
