#registration-form {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 2rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 1px 12px 2px rgba(40,50,90,.08);
    font-family: 'Poppins', 'Inter', Arial, sans-serif;
}
@media (min-width: 1024px) {
    body {
        height: 100vh;
        min-height: 100vh;
        overflow-y: hidden;
    }
    #registration-form {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        box-shadow: 0 4px 36px 0 rgba(25,34,56,.14);
    }
}
/* Civilité dropdown */
.civilite-dropdown-list {
    min-width: 100%;
    border-radius: 1rem;
    box-shadow: 0 6px 28px 0 rgba(40,55,100,.14);
    border: none;
    background: #fff;
    margin-top: 2px;
    padding: 0.2rem 0;
    z-index: 40;
}
.civilite-dropdown-list .item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .7rem 1.1rem .7rem .7rem;
    cursor: pointer;
    color: #222d3b;
    font-weight: 500;
    border: none;
    background: transparent;
    transition: background 0.13s;
}
.civilite-dropdown-list .item.selected {
    color: #1366ff;
    background: #f3f6fd;
}
.civilite-dropdown-list .item:hover {
    background: #e8f0fe;
}
.civilite-dropdown-list svg {
    opacity: .92;
}
.civilite-check-ico {
    display: none;
}
.civilite-dropdown-list .item.selected .civilite-check-ico {
    display: block;
}
.sexe-group-btn {
    display: flex;
    border-radius: 999px;
    background: #f3f6fd;
    padding: 3px;
    margin-top: 4px;
}
.sexe-btn {
    flex: 1;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    padding: .55rem 0;
    font-size: 1rem;
    background: transparent;
    color: #576175;
    cursor: pointer;
    transition: background .12s, color .15s;
}
.sexe-btn.selected {
    background: #3a424f;
    color: #fff;
    box-shadow: 0 1px 6px 0 rgba(19,102,255,.08);
}

/* ----- Input wrapper fidèles au design d'origine ----- */
.input-wrapper {
    margin-bottom: 1.1rem;
    position: relative;
    background: transparent;
    /* le border est déplacé vers le pseudo ::after pour garder la taille d'input intacte */
}
.input-wrapper::after {
    content: "";
    display: block;
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: #e3e7ed;
    border-radius: 0 0 3px 3px;
    pointer-events: none;
    transition: background .17s;
    z-index: 2;
}
.input-wrapper.field-error::after {
    background: #e63946 !important;
}
.input-wrapper.field-success::after {
    background: #1366ff !important;
}
.input-wrapper input, .input-wrapper input:focus {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    width: 100%;
    font-size: 1.05rem;
    padding: .7rem .2rem .5rem .9rem !important;
    margin: 0;
}
.input-wrapper input:focus ~ .fake-border,
.input-wrapper input:not(:placeholder-shown):not([type="hidden"]) ~ .fake-border {
    opacity: 0; /* On masque la fausse bordure si besoin */
}
label {
    font-weight: 500;
    font-size: .98rem;
    color: #1d293b;
    margin-bottom: 2px;
}
#registration-form .error-msg {
    color: #e63946;
    font-size: .85rem;
    margin-top: 3px;
}
#registration-form .submit-btn {
    background: #7c3aed;
    border-radius: 999px;
    font-weight: 600;
    padding: .75rem 0;
    font-size: 1.14rem;
    color: #fff;
    margin-top: 0.7rem;
    box-shadow: 0 2px 12px 0 rgba(124,58,237,.10);
    transition: background .14s;
    border: none;
}
#registration-form .submit-btn:hover {
    background: #6d28d9;
}