/* IGWENABANGUI — finition visuelle premium */
:root {
    --color-primary: #2457e6;
    --color-primary-dark: #1739a8;
    --color-primary-light: #4f7cff;
    --color-primary-50: #f2f6ff;
    --color-primary-100: #e3ebff;
    --color-primary-200: #c8d8ff;
    --color-success: #0ea55a;
    --color-gray-50: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e4eaf2;
    --color-gray-300: #cbd5e1;
    --color-gray-500: #64748b;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1e293b;
    --color-gray-900: #0f172a;
    --shadow-xl: 0 28px 80px rgba(35, 64, 127, .15), 0 3px 12px rgba(15, 23, 42, .06);
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

body {
    position: relative;
    padding: 3rem 1rem;
    background:
        radial-gradient(circle at 8% 8%, rgba(79, 124, 255, .17), transparent 26rem),
        radial-gradient(circle at 95% 35%, rgba(14, 165, 90, .10), transparent 24rem),
        linear-gradient(160deg, #f8fbff 0%, #edf3ff 48%, #f8fafc 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 999px;
    filter: blur(2px);
    pointer-events: none;
    z-index: -1;
}
body::before { width: 260px; height: 260px; left: -90px; bottom: 8%; background: rgba(36, 87, 230, .06); }
body::after { width: 180px; height: 180px; right: -60px; top: 10%; background: rgba(14, 165, 90, .06); }

.form-wrapper {
    max-width: 980px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.85);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
}

.form-header {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 2.75rem 3.25rem 2.4rem;
    border: 0;
    background:
        radial-gradient(circle at 88% 18%, rgba(255,255,255,.22), transparent 13rem),
        linear-gradient(135deg, #1739a8 0%, #2457e6 55%, #3976f6 100%);
    color: #fff;
}
.form-header::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -95px;
    bottom: -170px;
    border: 42px solid rgba(255,255,255,.08);
    border-radius: 50%;
}

.brand-line {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    margin-bottom: 1.6rem;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    color: #2457e6;
    background: #fff;
    box-shadow: 0 10px 24px rgba(11, 28, 80, .22);
    font-size: 1.25rem;
}
.brand-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.brand-copy strong { font-size: 1rem; letter-spacing: .06em; }
.brand-copy small { margin-top: .18rem; color: rgba(255,255,255,.74); font-size: .72rem; }
.logo-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.25);
    backdrop-filter: blur(8px);
}

.form-title { position: relative; z-index: 1; color: #fff; font-size: clamp(1.8rem, 3vw, 2.45rem); letter-spacing: -.035em; }
.form-title i { color: #bcd0ff; }
.form-intro { position: relative; z-index: 1; max-width: 650px; color: rgba(255,255,255,.82); font-size: 1.02rem; }
.trust-strip {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.5rem;
}
.trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .48rem .78rem;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 999px;
    background: rgba(9, 24, 66, .18);
    color: rgba(255,255,255,.9);
    font-size: .78rem;
    font-weight: 600;
}

.progress-container { margin: 0; padding: 2rem 3.25rem 1.45rem; background: #fff; border-bottom: 1px solid var(--color-gray-200); }
.progress-steps::before { height: 2px; background: #e8edf5; }
.step .step-number {
    width: 38px;
    height: 38px;
    border: 4px solid #fff;
    background: #edf1f7;
    color: #768399;
    box-shadow: 0 0 0 1px #e2e8f0;
}
.step.active .step-number { box-shadow: 0 0 0 5px var(--color-primary-100), 0 8px 20px rgba(36,87,230,.22); }
.step.completed .step-number { box-shadow: 0 0 0 3px #dcfce7; }
.step .step-label { margin-top: .55rem; color: #7b879a; font-size: .67rem; }
.step.active .step-label { color: var(--color-primary-dark); font-weight: 800; }
.progress-bar-track { height: 5px; margin-top: .8rem; background: #eef2f7; }
.progress-text { margin-top: .65rem; color: #64748b; }

#establishmentForm { padding: 2.6rem 3.25rem 0; }
.form-section { min-height: 390px; }
.section-header { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--color-gray-200); }
.section-header h2 { font-size: 1.35rem; letter-spacing: -.02em; }
.section-header h2 i {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 11px;
    background: var(--color-primary-50);
    font-size: .95rem;
}
.section-required, .section-badge { padding: .38rem .72rem; background: #f6f8fb; border: 1px solid #e8edf4; }
.form-grid { gap: 1.35rem 1.5rem; }
.form-group { gap: .45rem; }
.form-group label { color: #26364d; font-size: .84rem; }
.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea,
.social-item input {
    min-height: 50px;
    border: 1px solid #dbe3ee;
    background: #fbfcfe;
    box-shadow: 0 1px 2px rgba(15,23,42,.025);
}
.input-wrapper textarea { min-height: 112px; }
.input-wrapper input:hover,
.input-wrapper select:hover,
.input-wrapper textarea:hover,
.social-item input:hover { border-color: #b8c5d8; background: #fff; }
.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus,
.social-item input:focus {
    background: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(36,87,230,.11), 0 8px 22px rgba(36,87,230,.06);
}
.input-wrapper i { color: #8a98ab; }

.photo-upload-card {
    min-height: 215px;
    border: 1.5px dashed #b9c7db;
    background: linear-gradient(180deg, #fbfdff, #f7faff);
}
.photo-upload-card:hover { transform: translateY(-2px); border-color: var(--color-primary); box-shadow: 0 12px 28px rgba(36,87,230,.08); }
.photo-upload-card .upload-label i {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin-bottom: .45rem;
    border-radius: 20px;
    background: var(--color-primary-50);
    font-size: 1.65rem;
}

.info-message { border: 1px solid #dbe7ff; border-left: 4px solid var(--color-primary); background: linear-gradient(135deg, #f2f6ff, #f8fbff); }
.checkbox-wrapper { padding: 1rem; border: 1px solid var(--color-gray-200); border-radius: var(--radius-md); background: #fbfcfe; }

.form-actions {
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin: 2.5rem -3.25rem 0;
    padding: 1.25rem 3.25rem;
    border-top: 1px solid var(--color-gray-200);
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px);
    box-shadow: 0 -12px 35px rgba(15,23,42,.055);
}
.form-actions button { min-height: 48px; padding: .78rem 1.45rem; border-radius: 14px; }
.btn-next, .btn-submit { box-shadow: 0 10px 22px rgba(36,87,230,.18); }
.btn-submit { background: linear-gradient(135deg, #0ea55a, #0b8d4c); }
.btn-reset { border: 0 !important; }
.draft-status { order: 10; text-align: center; }
.submit-status { order: 9; }

.form-footer { margin: 0; padding: 1.55rem 3.25rem 2rem; background: #f8fafc; }
.modal-content { border: 1px solid rgba(255,255,255,.8); border-radius: 24px; }
.modal-icon { display: grid; place-items: center; width: 82px; height: 82px; margin: 0 auto 1rem; border-radius: 24px; background: #eafaf1; font-size: 2.8rem; }

@media (max-width: 768px) {
    body { padding: 0; background: #fff; }
    .form-wrapper { border: 0; border-radius: 0; box-shadow: none; }
    .form-header { padding: 1.8rem 1.15rem 1.7rem; }
    .brand-line { justify-content: flex-start; margin-bottom: 1.35rem; }
    .brand-copy small { display: none; }
    .logo-badge { margin-left: auto; }
    .form-title { text-align: left; font-size: 1.65rem; }
    .form-intro { text-align: left; font-size: .9rem; }
    .trust-strip { justify-content: flex-start; gap: .45rem; }
    .trust-strip span { font-size: .69rem; padding: .38rem .58rem; }
    .progress-container { padding: 1.4rem 1rem 1.1rem; overflow: hidden; }
    #establishmentForm { padding: 1.6rem 1rem 0; }
    .form-section { min-height: 0; }
    .section-header { margin-bottom: 1.35rem; }
    .form-actions { margin: 2rem -1rem 0; padding: 1rem; gap: .65rem; }
    .form-actions .btn-prev, .form-actions .btn-next, .form-actions .btn-submit { flex: 1; }
    .form-actions .btn-reset { width: 100%; justify-content: center; order: 8; }
    .form-footer { padding: 1.3rem 1rem 1.8rem; }
}

@media (max-width: 430px) {
    .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
    .brand-copy strong { font-size: .88rem; }
    .form-title { font-size: 1.45rem; }
    .form-title i { display: none; }
    .trust-strip span:nth-child(3) { display: none; }
    .step .step-number { width: 28px; height: 28px; border-width: 3px; }
    .progress-steps::before { top: 13px; }
    .form-actions button { min-height: 46px; padding: .7rem .9rem; font-size: .86rem; }
}
