
/* ============================
   RESET GENERAL
============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================
   ESTILOS GENERALES DEL BODY
============================ */
body {
    font-family: 'Source Sans Variable', sans-serif;
    color: #FFFFFF;
    background-color: #1D304F;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================
   FORM CONTAINER PRINCIPAL
============================ */
.form-container {
    position: relative;
    width: 85%;
    max-width: 900px;
    padding: 10px 80px;
    overflow-y: auto;
    margin-top: 30px;
    margin-bottom: 30px;
    background-color: #ffffff;
    color: #1D304F;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    background-image: url('images/registration-watermark.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 90%;
    background-attachment: scroll;
}

.form-container::before {
    content: none;
}

.form-container > form,
.form-container > h1 {
    position: relative;
    z-index: 1;
}



/* Scroll personalizado */
.form-container::-webkit-scrollbar {
    width: 8px;
}
.form-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}

/* ============================
   HEADER DEL FORMULARIO
============================ */
.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-header-text img,
.form-header-logo img {
    margin-top: 25px;
    max-height: 130px;
    height: auto;
    width: auto;
}

/* ============================
   ESTRUCTURA DE FILAS Y GRUPOS
============================ */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 5px;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    margin-top: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #1D304F;
}

.form-group input:not([type="checkbox"]),
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    background-color: transparent;
    color: #1D304F;
    font-size: 13px;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: #fff;
    border-color: #1D304F;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

textarea {
    resize: vertical;
}

/* ============================
   POLÍTICA DE PRIVACIDAD
============================ */
.privacy-policy-container {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    margin-top: 9px;
    color: #1D304F;
    font-size: 14px;
}

.privacy-policy-container input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin-top: 2px;
}

.privacy-policy-container label {
    line-height: 1.4;
    display: inline-block;
}

.privacy-policy-container a {
    color: #1D304F;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.privacy-policy-container a:hover {
    color: #666;
}

/* ============================
   BOTONES
============================ */
.submit-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.btn {
    margin-top: 10px;
    margin-bottom: 30px;
    display: inline-block;
    padding: 20px 30px;
    border: none;
    border-radius: 20px;
    background: #D4DD67;
    color: #FFFFFF;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background: #c0cb5f;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* ============================
   MODAL MEJORADO
============================ */
.modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #ffffff;
    color: #1D304F;
    padding: 40px 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 750px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    font-size: 1rem;
    line-height: 1.7;
    font-family: 'Source Sans Variable', sans-serif;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* TÍTULOS Y TIPOGRAFÍA */
.modal-content h1,
.modal-content h2,
.modal-content h3 {
    margin-top: 20px;
    font-size: 1.3em;
    font-weight: 700;
    color: #1D304F;
}

.modal-content em {
    font-style: italic;
    color: #333;
}

.modal-content a {
    color: #1D304F;
    text-decoration: underline;
    font-weight: 600;
}

.modal-content ul {
    margin-left: 18px;
    padding-left: 10px;
}

.modal-content li {
    margin-bottom: 10px;
}

/* BOTÓN DE CIERRE */
#close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #999;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}
#close-modal:hover {
    color: #1D304F;
}

/* BOTÓN ACEPTAR */
.btn-accept {
    padding: 12px 24px;
    border: none;
    background-color: #d3db6b;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 25px;
    font-size: 0.95rem;
    transition: background 0.3s ease;
}
.btn-accept:hover {
    background-color: #c0cb5f;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        font-size: 0.9rem;
        padding: 25px 20px;
    }

    #close-modal {
        top: 10px;
        right: 15px;
        font-size: 1.3rem;
    }

    .btn-accept {
        font-size: 0.9rem;
    }
    
    img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    .promoter-row {
        margin-bottom: 0 !important;
    }

    #id_promoter_display {
        margin-bottom: 0 !important;
    }
}

/* ============================
   ID Y CAMPOS ESPECIALES
============================ */
#id_social_media_other {
    margin-bottom: 5px;
}

#id_privacy_policy {
    position: absolute;
    top: 8px;
    left: 180px;
    width: 16px;
    height: 16px;
    z-index: 10;
}

#id_occupation_description,
#id_income_description {
    width: 100%;
    max-width: 100%;
}

#occupation-other,
#income-other {
    flex: 1;
    max-width: 48%;
}

/* ============================
   RESPONSIVE (MÓVILES)
============================ */
@media (max-width: 768px) {
    body {
        display: block !important;
        min-height: auto !important;
    }

    .form-container {
        margin: 40px auto;
        padding: 20px;
        background-size: 25% auto;
        overflow-y: auto;
        background: #FFFFFF;
    }
    #id_privacy_policy {
        width: 12px !important;
        height: 12px !important;
        padding: 0 !important;
        margin: 3px 10px 0 0 !important;
        flex-shrink: 0 !important;
        display: inline-block !important;
    }
        

    .form-container::-webkit-scrollbar {
        width: 6px;
    }

    .form-container::-webkit-scrollbar-thumb {
        background-color: #ccc;
    }
    .form-header-text {
        margin-left: -20px;
    }

    .form-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
    }

    .form-group {
        display: block !important;
        width: 100% !important;
        flex: none !important;
        min-width: 0 !important; /* ← esta línea es la clave */
        margin-bottom: 12px;
        box-sizing: border-box;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        display: block;
        font-size: 14px;
        padding: 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .form-container h1 {
        font-size: 1.4rem;
        margin-top: 30px;
        text-align: center;
    }

    .modal-content {
        width: 95%;
        font-size: 0.8em;
    }

    .hidden {
        display: none !important;
    }
}

/* ============================
   UTILIDADES
============================ */
.hidden {
    display: none !important;
}
.custom-separator {
    width: 100%;
    height: 6px;
    background-color: #D4DD67; /* color verde pastel */
    border-radius: 15px;
    margin: 40px 0; /* puedes ajustar la separación arriba/abajo */
}

@media (max-width: 768px) {
    .form-header-text {
        margin-left: -9px;
    }
    .form-header-logo {
        margin-right: -15px; /* menos margen para móviles */
    }
}

@media (min-width: 769px) {
    .form-header-text {
        margin-left: -22px;
    }
    
    .form-header-logo {
        margin-right: -33px; /* mueve el logo hacia la derecha */
    }
}

@media (max-width: 768px) {
    /* Asegurando que 'occupation-other' y 'income-other' ocupen todo el ancho */
    #occupation-other,
    #income-other {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Asegura que los campos del formulario se comporten como los demás (ancho completo) */
    .form-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
    }

    .form-group {
        display: block !important;
        width: 100% !important;
        flex: none !important;
        min-width: 0 !important;
        margin-bottom: 12px !important;
        box-sizing: border-box !important;
    }

    /* Asegura que los inputs, selects y textareas ocupen todo el ancho */
    .form-group input,
    .form-group select,
    .form-group textarea {
        display: block !important;
        font-size: 14px !important;
        padding: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mantener los campos ocultos con la clase hidden */
    .hidden {
        display: none !important;
    }
}


/* Haz que los .half-width ocupen solo el 50% del row */
.form-row .half-width {
  flex: 0 0 50%;
  max-width: 49%;
}

/* Asegura que el input siga llenando todo el ancho del grupo */
.form-row .half-width input {
  width: 100%;
}

@media (max-width: 768px) {
  .form-row .half-width {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

