/* ============================================================
   sdiregistro.css — Estilos del módulo de registro SDI
   ============================================================ */

/* ---- Selector de tipo de cliente ---- */
.sdi-type-selector__label h1{
    font-family: 'Inter Tight';
    font-weight: 400;
    font-size: 32px;
    line-height: 40px;
    color: #00378A;
    margin-bottom: 23px;
}
.sdi-type-selector__label p{
    font-family: 'Inter Tight';
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: #080808;
    margin-bottom: 25px;
    max-width: 290px;
}
.sdi-type-selector__label span{
    font-family: 'Inter Tight';
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #080808;
    margin-bottom: 13px;
}

.sdi-type-selector__options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 8px;
    margin-bottom: 27px;
}

.sdi-type-btn {
    font-family: 'Inter Tight';
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    box-shadow: none;
    border: 1px solid #00378A;
    background-color: #FFFFFF;
    color: #00378A;
    padding: 10px 30px;
    border-radius: 40px;
}

.sdi-type-btn:hover,
.sdi-type-btn--active,
.sdi-type-btn--active:hover {
    background-color: #00378A;
    color: #FFFFFF;
}

#sdi-type-selector{
    font-family: 'Inter Tight';
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #080808;
}
.have-user{
    font-family: 'Inter Tight';
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    color: #00378A;
}
.have-user a{
    color: #00378A !important;
    text-decoration: none;
}

/* ---- Títulos de sección ---- */
#sdi-registro-form {
    max-width: 1066px;
}
#sdi-registro-form .card,
#sdi-registro-form .card-block{
    padding: 0;
    border: 0;
}
#sdi-registro-form #sdi-registro-submit{
    font-family: 'Inter Tight';
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #000000;
    background-color: #FFE800;
    width: fit-content !important;
    padding: 12px;
    min-width: 200px;
    margin-bottom: 40px;
    margin-top: 30px;
}
#sdi-registro-form #sdi-registro-submit:hover{
    background-color: #000000;
    color: #FFE800;
}
.is-input-select{
    padding-bottom: 12px;
}
.is-input-select .form-control-comment{
    padding: 0;
}
#sdi-registro-form .is-input-select .custom-checkbox{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
}
#sdi-registro-form .sdi-billing-toggle-header{
    margin: 10px 0px 0px 0px;
}
#sdi-registro-form .sdi-billing-toggle-header .js-sdi-billing-toggle{
    font-family: 'Inter Tight';
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    text-decoration: underline;
    color: #00378A;
    padding: 0;
    background-color: transparent;
    border: 0;
}

.sdi-billing-fields .custom-select2:after{
    content: none;
}



/* ---- Mensajes de error inline ---- */
.sdi-field-error {
    display: none;
    color: #dc3545;
    font-size: 0.82rem;
    margin-top: 0.25rem;
}

.sdi-field-success {
    color: #28a745;
    font-size: 0.82rem;
    margin-top: 0.25rem;
}

.form-control.is-invalid + .sdi-field-error {
    display: block;
}

/* ---- Alertas de error (bloque) ---- */
.sdi-errors {
    border-left: 4px solid #dc3545;
}

/* ---- Botón principal ---- */
.btn-sdi-primary {
    background-color: #0275d8;
    border-color: #0275d8;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.18s, border-color 0.18s;
}

.btn-sdi-primary:hover,
.btn-sdi-primary:focus {
    background-color: #025aa5;
    border-color: #025aa5;
    color: #fff;
}

/* ---- Spinner de carga ---- */
#sdi-loading {
    color: #6c757d;
    font-size: 0.88rem;
}

/* ---- Aviso email duplicado ---- */
.sdi-field-warning {
    color: #856404;
    background: #fff3cd;
    border: 1px solid #ffecb5;
    border-radius: 0.25rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.82rem;
    margin-top: 0.25rem;
}

/* ---- Select con chevron Font Awesome ---- */
.form-control-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none;
    padding-right: 2.25rem;
}

.form-group:has(.form-control-select) {
    position: relative;
}

.form-group:has(.form-control-select)::after {
    content: "\f078"; /* fa-chevron-down */
    font-family: "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    font-size: 0.75rem;
    color: #6c757d;
    position: absolute;
    right: 0.85rem;
    top: 73%;
    transform: translateY(-50%);
    pointer-events: none;
}
.sdi_provincia_field.form-group:has(.form-control-select)::after{
    top: 53%;
}

@media(max-width:768px){
    .sdi-type-selector__label h1{
        font-weight: 400;
        font-size: 24px;
        line-height: 24px;
        margin-bottom: 32px;
    }
    .sdi-type-selector__label p{
        font-size: 16px;
        line-height: 22px;
        margin-bottom: 12px;
    }
    .sdi-type-selector__label span{
        margin-bottom: 32px;
        font-size: 14px;
        line-height: 18px;
    }
    .sdi-type-selector__options {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .sdi-type-selector__options .sdi-type-btn{
        width: fit-content;
        min-width: 227px;
    }
    #sdi-registro-form #sdi-registro-submit{
        margin-bottom: 32px;
    }
}