:root {
    /* colors */
    --color-primary: #202c54;
    --color-secondary: #b0c41c;

    /* neutrals */
    --color-white: #ffffff;
    --color-black: #1A1A1A;
    --color-gray: #666666;
    --color-light-gray: #f5f5f5;

    /* accents */
    --color-success: #4CAF50;
    --color-error: #F44336;
}


.form-container {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 28px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 35px auto;
}

h1 {
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-primary);
    font-weight: 600;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 2px rgba(176, 196, 28, 0.2);
}

.btn-submit {
    background-color: var(--color-secondary);
    color: var(--color-white);
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #2a3a6e;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--color-gray);
    font-size: 14px;
}

.required:after {
    content: " *";
    color: var(--color-error);
}

textarea{
    font-family: sans-serif;
}



.phone-input-container {
    display: flex;
    flex-direction: row; /* Dirección explícita de fila */
    align-items: flex-start; /* Alinea los elementos en la parte superior */
    gap: 8px; /* Espacio entre el dropdown y el input */
}

/* 2. Configurar el contenedor del dropdown */
.custom-select-container {
    position: relative;
    flex-shrink: 0; /* Evita que este contenedor se encoja */
}

/* 3. Darle un ancho fijo al elemento visible del dropdown */
.select-selected {
    width: 190px; /* Ancho para que quepa "Bandera + Prefijo + Nombre" */
    background-color: #fff;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 44px; /* Misma altura que el input de teléfono */
    box-sizing: border-box;
}

.select-selected:after { content: ""; width: 0; height: 0; border: 6px solid transparent; border-color: #333 transparent transparent transparent; margin-left: 8px; align-self: center; }
.select-selected.select-arrow-active:after { border-color: transparent transparent #333 transparent; }

/* 4. El input del teléfono tomará el espacio restante */
#telefono {
    flex-grow: 1; /* Permite que este campo crezca para llenar el espacio */
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    width: 100%; /* Ocupa el espacio que flex-grow le asigna */
}

/* Estilos del dropdown que no cambian */
.select-items { display: none; position: absolute; background-color: white; top: 100%; left: 0; right: 0; z-index: 99; border: 1px solid #ddd; border-top: none; border-radius: 0 0 4px 4px; width: 100%; box-sizing: border-box;}
.select-items.show { display: block; }
#country-search-input { width: 100%; padding: 12px; border: none; border-bottom: 1px solid #eee; outline: none; box-sizing: border-box; }
#country-list-wrapper { max-height: 200px; overflow-y: auto; }
.country-option { padding: 10px 16px; cursor: pointer; display: flex; align-items: center; }
.country-option:hover { background-color: #f1f1f1; }
.country-flag { width: 24px; min-width: 24px; height: auto; margin-right: 10px; border: 1px solid #eee; }