.afs-dashboard-wrapper {
    max-width: 900px;
    margin: 40px auto;
}

.afs-dashboard-wrapper h2 {
    margin-bottom: 20px;
}

.afs-auth-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.afs-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.afs-btn--secondary {
    background: #fff;
    color: #000;
    border: 1px solid #000;
}

.afs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.afs-table th,
.afs-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.afs-table th {
    font-weight: 600;
}

/* === WRAPPER GLOBAL DU FORMULAIRE === */

#afs-form-wrapper {
    max-width: 960px;
    margin: 60px auto;
    padding: 32px 40px;
    border-radius: 32px;
    background: radial-gradient(circle at top, #30235b 0, #050512 55%, #030308 100%);
    color: #f6f3ff;
    box-shadow: 0 24px 60px rgba(0,0,0,0.55);
    display: flex;
    gap: 40px;
    align-items: flex-start;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* petit glow décoratif */
#afs-form-wrapper::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(244,197,138,0.35), transparent 60%);
    opacity: 0.7;
    pointer-events: none;
}

/* pour que le thème n’écrase pas la couleur de texte */
#afs-form-wrapper, 
#afs-form-wrapper h1,
#afs-form-wrapper h2,
#afs-form-wrapper p,
#afs-form-wrapper label {
    color: #f6f3ff;
}

/* === COLONNE GAUCHE : ÉTAPES === */

.afs-progress {
    flex: 0 0 160px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 15px;
}

.afs-progress-step {
    position: relative;
    padding-left: 18px;
    opacity: 0.35;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.afs-progress-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.6);
    background: transparent;
}

.afs-progress-step--active {
    opacity: 1;
    font-weight: 600;
    transform: translateX(2px);
}

.afs-progress-step--active::before {
    background: #f4c58a;
    border-color: #f4c58a;
}

.afs-progress-step--done {
    opacity: 0.7;
}

/* === COLONNE DROITE : FORMULAIRE === */

#afs-property-form {
    flex: 1;
    position: relative;
    z-index: 1;
}

/* Titre de question */
.afs-step h2 {
    font-size: 28px;
    margin: 0 0 22px;
    line-height: 1.25;
}

/* Champs */
.afs-field {
    margin-bottom: 18px;
}

.afs-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
    opacity: 0.9;
}

.afs-field input[type="text"],
.afs-field input[type="number"],
.afs-field input[type="email"],
.afs-field select,
.afs-field textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(9,7,18,0.88);
    color: #f6f3ff;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    -webkit-appearance: none;
}

.afs-field textarea {
    min-height: 120px;
}

.afs-field input::placeholder,
.afs-field textarea::placeholder {
    color: rgba(255,255,255,0.45);
}

/* focus */
.afs-field input:focus,
.afs-field select:focus,
.afs-field textarea:focus {
    border-color: #f4c58a;
    box-shadow: 0 0 0 1px rgba(244,197,138,0.8);
    background: rgba(14,10,30,0.95);
}

/* Sélects (petite flèche claire) */
.afs-field select {
    background-image: linear-gradient(45deg, transparent 50%, #f4c58a 50%),
                      linear-gradient(135deg, #f4c58a 50%, transparent 50%);
    background-position: calc(100% - 14px) calc(50% - 3px),
                         calc(100% - 10px) calc(50% + 3px);
    background-size: 7px 7px, 7px 7px;
    background-repeat: no-repeat;
}

/* === BOUTONS / NAVIGATION === */

.afs-step-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.afs-step-actions button,
#afs-submit-btn {
    border-radius: 999px;
    border: none;
    padding: 10px 26px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    background: #f4c58a;
    color: #1a1410;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}

.afs-step-actions button.afs-prev {
    background: transparent;
    color: #f6f3ff;
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: none;
}

.afs-step-actions button:hover,
#afs-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.45);
}

.afs-step-actions button.afs-prev:hover {
    background: rgba(255,255,255,0.06);
}

/* === MESSAGE DE FEEDBACK === */

#afs-form-message {
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(46,125,50,0.14);
    border: 1px solid rgba(129,199,132,0.75);
    font-size: 14px;
    color: #d0f8ce;
}

/* === RESPONSIVE === */

@media (max-width: 900px) {

    #afs-form-wrapper {
        flex-direction: column;
        padding: 24px 20px;
        margin: 30px auto;
        border-radius: 26px;
    }

    .afs-progress {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px 14px;
        font-size: 13px;
    }

    .afs-progress-step {
        padding-left: 14px;
    }

    .afs-step h2 {
        font-size: 22px;
        margin-top: 14px;
    }
}

/* — Forcer le style Amani dans le wrapper — */

#afs-form-wrapper .afs-field input[type="text"],
#afs-form-wrapper .afs-field input[type="number"],
#afs-form-wrapper .afs-field input[type="email"],
#afs-form-wrapper .afs-field select,
#afs-form-wrapper .afs-field textarea {
    padding: 12px 16px !important; /* plus d’espace dedans */
    border-radius: 12px !important;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(9,7,18,0.88);
    color: #f6f3ff;
    font-size: 14px;
    box-sizing: border-box;
}

/* corriger la couleur du texte dans les champs */
#afs-form-wrapper .afs-field input,
#afs-form-wrapper .afs-field textarea {
    color: #f6f3ff !important;
}

/* Bouton Précédent : le rendre bien visible */
#afs-form-wrapper .afs-step-actions button.afs-prev {
    background: #ffffff !important;
    color: #222222 !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

/* Bouton Suivant / Soumettre : on garde le beige */
#afs-form-wrapper #afs-submit-btn,
#afs-form-wrapper .afs-step-actions button:not(.afs-prev) {
    background: #f4c58a;
    color: #1a1410;
}

/* éviter l’effet énorme "pill" du thème */
#afs-form-wrapper input,
#afs-form-wrapper select,
#afs-form-wrapper textarea {
    border-radius: 12px !important;
}

/* — Forcer le style Amani dans le wrapper — */

#afs-form-wrapper .afs-field input[type="text"],
#afs-form-wrapper .afs-field input[type="number"],
#afs-form-wrapper .afs-field input[type="email"],
#afs-form-wrapper .afs-field select,
#afs-form-wrapper .afs-field textarea {
    padding: 12px 16px !important;  /* plus d'espace dans le champ */
    border-radius: 12px !important;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(9,7,18,0.88);
    color: #f6f3ff;
    font-size: 14px;
    box-sizing: border-box;
}

/* couleur texte forcée dans les inputs */
#afs-form-wrapper .afs-field input,
#afs-form-wrapper .afs-field textarea {
    color: #f6f3ff !important;
}

/* Bouton Précédent lisible */
#afs-form-wrapper .afs-step-actions button.afs-prev {
    background: #ffffff !important;
    color: #222222 !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

/* Bouton Suivant + Soumettre = beige */
#afs-form-wrapper #afs-submit-btn,
#afs-form-wrapper .afs-step-actions button:not(.afs-prev) {
    background: #f4c58a !important;
    color: #1a1410 !important;
}

/* empêcher le thème de remettre des énormes pills */
#afs-form-wrapper input,
#afs-form-wrapper select,
#afs-form-wrapper textarea {
    border-radius: 12px !important;
}

/* === FORMULAIRE CRÉATION DE COMPTE AMANI (STYLE FINARY) === */

.afs-register-wrapper {
    max-width: 420px;
    margin: 80px auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.afs-register-card {
    background: radial-gradient(circle at top, #3a2a6d 0, #050512 55%, #030308 100%);
    border-radius: 28px;
    padding: 32px 28px 30px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.7);
    color: #f6f3ff;
    position: relative;
    overflow: hidden;
}

.afs-register-card::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(244,197,138,0.4), transparent 60%);
    opacity: 0.8;
    pointer-events: none;
}

.afs-register-card h2 {
    font-size: 24px;
    margin: 0 0 6px;
}

.afs-register-card p {
    margin: 0 0 18px;
    font-size: 14px;
    opacity: 0.88;
}

.afs-register-errors {
    background: rgba(244, 67, 54, 0.12);
    border-radius: 12px;
    border: 1px solid rgba(244, 67, 54, 0.6);
    padding: 10px 12px;
    margin-bottom: 16px;
    font-size: 13px;
}

.afs-register-errors p {
    margin: 2px 0;
}

.afs-register-field {
    margin-bottom: 14px;
}

.afs-register-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
}

.afs-register-field input {
    width: 100%;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(9,7,18,0.9);
    color: #f6f3ff;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
}

.afs-register-field input:focus {
    border-color: #f4c58a;
    box-shadow: 0 0 0 1px rgba(244,197,138,0.7);
    background: rgba(14,10,30,0.98);
}

.afs-register-submit {
    width: 100%;
    margin-top: 6px;
    border-radius: 999px;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: #f4c58a;
    color: #1a1410;
    box-shadow: 0 14px 30px rgba(0,0,0,0.65);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.afs-register-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(0,0,0,0.75);
}

.afs-register-login {
    margin-top: 14px;
    font-size: 13px;
    text-align: center;
    opacity: 0.9;
}

.afs-register-login a {
    color: #f4c58a;
    text-decoration: none;
}

.afs-register-login a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .afs-register-wrapper {
        margin: 40px auto;
    }

    .afs-register-card {
        padding: 24px 20px 24px;
        border-radius: 22px;
    }

    .afs-register-card h2 {
        font-size: 22px;
    }
}

#afs-form-message {
    max-width: 620px;
    margin: 40px auto 60px;
    text-align: left;
    padding: 28px 26px;
    border-radius: 24px;
    background: radial-gradient(circle at top left, #3a2a6d 0, #050512 55%, #030308 100%);
    color: #f6f3ff;
    box-shadow: 0 22px 50px rgba(0,0,0,0.75);
    display: none;
}

#afs-form-message h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

#afs-form-message p {
    margin: 0 0 18px;
    font-size: 14px;
    opacity: 0.9;
}

#afs-form-message .afs-success-btn {
    display: inline-block;
    border-radius: 999px;
    padding: 9px 22px;
    font-size: 14px;
    font-weight: 500;
    background: #f4c58a;
    color: #1a1410;
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(0,0,0,0.65);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

#afs-form-message .afs-success-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.8);
}

/* === Actions en haut du dashboard === */

.afs-dashboard-actions {
    margin: 24px 0 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.afs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
}

.afs-btn-primary {
    background: #f4c58a;
    color: #1a1410;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.afs-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.3);
}

.afs-btn-ghost {
    background: #ffffff;
    color: #333;
    border: 1px solid rgba(0,0,0,0.06);
}

.afs-btn-outline {
    background: transparent;
    color: #5a4a3a;
    border: 1px solid #c7b79b;
}

/* === Bloc profil investisseur === */

.afs-investor-profile {
    display: none;
    background: #ffffff;
    border-radius: 22px;
    padding: 22px 24px 24px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.04);
    margin-bottom: 32px;
}

.afs-investor-profile.is-open {
    display: block;
}

.afs-investor-profile h2 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 20px;
}

.afs-investor-intro {
    margin: 0 0 16px;
    font-size: 14px;
    color: #635c53;
}

.afs-investor-intro a {
    color: #0b7cc0;
    text-decoration: none;
}

.afs-investor-intro a:hover {
    text-decoration: underline;
}

.afs-investor-message {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.5);
    font-size: 13px;
    color: #2d6c36;
}

.afs-investor-form {
    margin-top: 4px;
}

.afs-investor-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.afs-investor-field {
    flex: 1 1 180px;
    min-width: 0;
    margin-bottom: 14px;
}

.afs-investor-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #48413a;
}

.afs-investor-field input,
.afs-investor-field textarea,
.afs-investor-field select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    font-size: 14px;
    box-sizing: border-box;
    background: #faf9f7;
}

.afs-investor-field textarea {
    resize: vertical;
}

.afs-investor-field input:focus,
.afs-investor-field textarea:focus,
.afs-investor-field select:focus {
    outline: none;
    border-color: #f4c58a;
    box-shadow: 0 0 0 1px rgba(244,197,138,0.7);
    background: #ffffff;
}

.afs-investor-submit {
    margin-top: 4px;
}

/* Responsive */

@media (max-width: 768px) {
    .afs-dashboard-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .afs-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Wrapper général du form multi-étapes */

#afs-form-wrapper {
    max-width: 900px;
    margin: 50px auto 70px;
    padding: 26px 26px 30px;
    border-radius: 28px;
    background: radial-gradient(circle at top left, #2b2535 0, #14121a 50%, #0b0b0f 100%);
    color: #f7f4ee;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.7);
}

/* Layout deux colonnes (steps + form) */

.afs-form-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 32px;
}

/* Colonne steps */

.afs-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 6px;
}

.afs-progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    opacity: 0.4;
    transition: all 0.18s ease;
}

.afs-progress-step::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

.afs-progress-step--active {
    opacity: 1;
    font-weight: 500;
}

.afs-progress-step--active::before {
    width: 10px;
    height: 10px;
    background: #e9b477;
}

.afs-progress-step--done {
    opacity: 0.8;
}

.afs-progress-step--done::before {
    background: #6ee7b7;
}

/* Titre d’étape + champs */

.afs-step-title {
    font-size: 22px;
    margin-bottom: 18px;
}

.afs-fields-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Inputs dark lisibles */

#afs-form-wrapper label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.82);
}

#afs-form-wrapper input,
#afs-form-wrapper select,
#afs-form-wrapper textarea {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 16px;
    font-size: 14px;
    background: rgba(12, 11, 18, 0.9);
    color: #ffffff;
    transition: all 0.15s ease;
}

#afs-form-wrapper textarea {
    border-radius: 18px;
    min-height: 120px;
}

#afs-form-wrapper input:focus,
#afs-form-wrapper select:focus,
#afs-form-wrapper textarea:focus {
    outline: none;
    border-color: #e9b477;
    box-shadow: 0 0 0 1px rgba(233, 180, 119, 0.6);
}

/* Boutons navigation */

.afs-form-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.afs-btn-prev {
    background: #f9f7f4;
    color: #222;
}

.afs-btn-prev:hover {
    background: #ffffff;
}

.afs-btn-next,
.afs-btn-submit {
    background: #e9b477;
    color: #111;
}

.afs-btn-next:hover,
.afs-btn-submit:hover {
    background: #ecba81;
}

/* ===== Responsive téléphone ===== */

@media (max-width: 768px) {

    #afs-form-wrapper {
        margin: 30px 14px 40px;
        padding: 20px 16px 24px;
        border-radius: 24px;
    }

    .afs-form-layout {
        grid-template-columns: 1fr;
        gap: 18px;              /* Steps plus proches du form */
    }

    .afs-steps {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 14px;
        margin-bottom: 4px;     /* évite le grand trou entre steps et form */
    }

    .afs-progress-step {
        font-size: 12px;
    }

    .afs-step-title {
        font-size: 18px;
    }

    #afs-form-wrapper input,
    #afs-form-wrapper select,
    #afs-form-wrapper textarea {
        border-radius: 18px;
    }

    .afs-form-actions {
        flex-direction: column-reverse;
    }

    .afs-form-actions .afs-btn {
        width: 100%;
    }
}

/* =======================================================
   Owner Register + Owner Login – clean / Apple style
   ======================================================= */

/* Wrapper commun */
.afs-register-wrapper,
.afs-login-wrapper {
    max-width: 480px;
    margin: 80px auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Card */
.afs-register-card,
.afs-login-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 28px 28px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.08);
    color: #111111;
    position: relative;
}

/* Titre + intro */
.afs-register-card h2,
.afs-login-card h2 {
    font-size: 24px;
    line-height: 1.25;
    margin: 0 0 8px;
    letter-spacing: 0.01em;
}

.afs-register-card p,
.afs-login-card p {
    margin: 0 0 18px;
    font-size: 14px;
    color: rgba(0,0,0,0.65);
}

/* Messages d’erreur */
.afs-register-errors,
.afs-login-errors {
    background: rgba(244, 67, 54, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(244, 67, 54, 0.4);
    padding: 10px 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #b71c1c;
}

.afs-register-errors p,
.afs-login-errors p {
    margin: 2px 0;
}

/* Champs */
.afs-register-field,
.afs-login-field {
    margin-bottom: 14px;
}

.afs-register-field label,
.afs-login-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
    color: rgba(0,0,0,0.75);
}

.afs-register-field input,
.afs-login-field input {
    width: 100%;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0,0,0,0.10);
    background: #f7f5f2;
    color: #111111;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
}

.afs-register-field input:focus,
.afs-login-field input:focus {
    border-color: #111111;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.75);
    background: #ffffff;
}

/* Boutons submit */
.afs-register-submit,
.afs-login-submit {
    width: 100%;
    margin-top: 16px;
    border-radius: 999px !important;
    border: none !important;
    padding: 12px 18px !important;
    font-size: 15px !important;
    font-weight: 500;
    cursor: pointer;
    background: #111111 !important;   /* noir propre */
    color: #ffffff !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
    transition: transform 0.12s ease, box-shadow 0.12s ease,
                background 0.12s ease;
}

.afs-register-submit:hover,
.afs-login-submit:hover {
    background: #000000 !important;
    transform: translateY(-1px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.30);
}

/* Lien bas de formulaire (register / login) */
.afs-register-login,
.afs-login-register {
    margin-top: 14px;
    font-size: 13px;
    text-align: center;
    color: rgba(0,0,0,0.7);
}

.afs-register-login a,
.afs-login-register a {
    color: #0066cc;
    text-decoration: none;
}

.afs-register-login a:hover,
.afs-login-register a:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 600px) {
    .afs-register-wrapper,
    .afs-login-wrapper {
        margin: 48px auto;
    }

    .afs-register-card,
    .afs-login-card {
        padding: 26px 20px 24px;
        border-radius: 20px;
    }

    .afs-register-card h2,
    .afs-login-card h2 {
        font-size: 22px;
    }
}

/* ==== OVERRIDE CREATE ACCOUNT BUTTON + LOGIN LINK ==== */

/* Bouton "Create my account" */
.afs-register-submit {
    width: 100%;
    margin-top: 20px;
    border-radius: 999px !important;
    border: none !important;
    padding: 14px 22px !important;
    font-size: 16px !important;
    font-weight: 600;
    cursor: pointer;
    background: #111111 !important;   /* noir plein, sans dégradé */
    color: #ffffff !important;
    box-shadow: none !important;       /* pas d’ombre bizarre */
    transform: none !important;
}

/* Hover propre (légèrement plus clair ou plus foncé si tu préfères) */
.afs-register-submit:hover {
    background: #000000 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Ligne "Already have an account? Log in" */
.afs-register-login {
    margin-top: 22px;          /* plus bas sous le bouton */
    font-size: 15px;
    text-align: center;
}

.afs-register-login a {
    font-size: 15px;
    font-weight: 500;
    color: #0066cc;
    text-decoration: none;
}

.afs-register-login a:hover {
    text-decoration: underline;
}


/* =========================================
   OVERRIDES LISIBILITÉ FORM MULTI-ÉTAPES
   ========================================= */

/* Wrapper du formulaire : fond blanc, ombre légère */
#afs-form-wrapper {
    max-width: 900px;
    margin: 50px auto 70px;
    padding: 28px 28px 32px;
    border-radius: 24px;
    background: #ffffff !important;
    color: #111111 !important;
    box-shadow: 0 18px 50px rgba(0,0,0,0.08) !important;
}

/* On supprime le glow / dégradé décoratif */
#afs-form-wrapper::after {
    content: none !important;
}

/* Titre d’étape plus lisible */
#afs-form-wrapper .afs-step h2 {
    font-size: 26px;
    line-height: 1.3;
    font-weight: 600;
    color: #111111;
}

/* Steps à gauche : texte plus foncé et plus gras */
.afs-progress-step {
    color: rgba(0,0,0,0.6);
    font-weight: 500;
    opacity: 0.6;
}

.afs-progress-step--active {
    color: #111111;
    font-weight: 600;
    opacity: 1;
}

.afs-progress-step::before {
    background: rgba(0,0,0,0.15);
    border-color: transparent;
}

.afs-progress-step--active::before {
    background: #e9b477;
}

/* Labels bien contrastés */
#afs-form-wrapper label {
    color: rgba(0,0,0,0.8);
    font-weight: 500;
    font-size: 14px;
}

/* Champs en clair (fond beige clair, texte noir) */
#afs-form-wrapper .afs-field input[type="text"],
#afs-form-wrapper .afs-field input[type="number"],
#afs-form-wrapper .afs-field input[type="email"],
#afs-form-wrapper .afs-field select,
#afs-form-wrapper .afs-field textarea {
    padding: 11px 14px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0,0,0,0.10) !important;
    background: #f7f5f2 !important;
    color: #111111 !important;
    font-size: 15px;
}

#afs-form-wrapper .afs-field textarea {
    min-height: 120px;
}

/* Placeholders gris mais lisibles */
#afs-form-wrapper .afs-field input::placeholder,
#afs-form-wrapper .afs-field textarea::placeholder {
    color: rgba(0,0,0,0.45);
}

/* Focus propre */
#afs-form-wrapper .afs-field input:focus,
#afs-form-wrapper .afs-field select:focus,
#afs-form-wrapper .afs-field textarea:focus {
    border-color: #111111 !important;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.6);
    background: #ffffff !important;
}

/* Boutons navigation : plus gros, contraste OK */
#afs-form-wrapper .afs-step-actions button.afs-prev {
    background: #f3f1ec !important;
    color: #111111 !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
    box-shadow: none !important;
}

#afs-form-wrapper .afs-step-actions button:not(.afs-prev),
#afs-form-wrapper #afs-submit-btn {
    background: #e9b477 !important;
    color: #111111 !important;
    font-weight: 600;
    padding: 11px 26px !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* Message de fin de formulaire : plus de gros dégradé */
#afs-form-message {
    max-width: 900px;
    margin: 30px auto 0;
    padding: 20px 22px;
    border-radius: 18px;
    background: #ffffff !important;
    color: #111111 !important;
    border: 1px solid #e2e2e2;
    box-shadow: 0 10px 28px rgba(0,0,0,0.06) !important;
}

/* =========================================
   OVERRIDES REGISTER / LOGIN LISIBILITÉ
   ========================================= */

/* Cartes register & login : largeur OK, fond blanc déjà géré,
   on renforce juste la typo */
.afs-register-card h2,
.afs-login-card h2 {
    font-size: 26px;
    font-weight: 600;
}

.afs-register-card p,
.afs-login-card p {
    font-size: 15px;
    color: rgba(0,0,0,0.7);
}

/* Boutons "Create my account" et "Log in" déjà en noir,
   on garde mais on grossit légèrement */
.afs-register-submit,
.afs-login-submit {
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 14px 22px !important;
}

/* Texte sous les formulaires (Log in / Create my account) */
.afs-register-login,
.afs-login-register {
    margin-top: 22px;
    font-size: 15px;
    text-align: center;
    color: rgba(0,0,0,0.7);
}

.afs-register-login a,
.afs-login-register a {
    font-size: 15px;
    font-weight: 500;
    color: #0066cc;
    text-decoration: none;
}

.afs-register-login a:hover,
.afs-login-register a:hover {
    text-decoration: underline;
}

