/* Form-Component */

.form-component {
    /* Auto layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    gap: 12px;
    width: 100%;
    max-width: 1366px;
    height: 100%;
    border-radius: 24px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.25);
}

.form-header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 24px 24px 0px;
    gap: 88px;
    width: 100%;
    flex: none;
}

.form-step {
    display: none;
    flex-direction: column;
    gap: 32px;
    max-width: 1100px;
    width: 100%;
    padding: 0px 24px;
}

.form-step.active {
    display: flex;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-section-content {
    display: grid;
    /* Usar grid para las columnas internas */
    grid-template-columns: 1fr 1fr;
    /* Dos columnas iguales */
    gap: 20px;
    /* Espaciado entre los campos */
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .form-section-content {
        grid-template-columns: 1fr;
        /* Una sola columna en dispositivos móviles */
    }
}

.form-fields-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-section-header-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 24px;
    width: 100%;
}

.form-section-header-title span {
    font-style: normal;
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
    color: var(--paleta-complementaria-azul-profundo, #0033A0);
}

.form-buttons {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    /* Align buttons to the right by default */
    align-items: center;
    padding: 16px 24px;
    gap: 16px;
    width: 100%;
    background: #FFFFFF;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .form-buttons {
        justify-content: space-between;
        flex-wrap: wrap-reverse;
    }
    .form-buttons .button {
        flex: 0 1 auto;
    }

    .form-buttons:has(.button:nth-child(n + 2)) .button {
        flex: 1 1 100%; /* Ocupar toda la fila si hay wrap */
    }
}

.form-section-header-description {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Changed from center to flex-start for left alignment */
    gap: 8px;
}

.form-section-header-description span,
.form-section-header-description p,
.form-section-header-description ul,
.form-section-header-description ul li {
    font-size: var(--desktop-body-regular-font-size);
    font-family: var(--desktop-body-regular-font-family);
    font-style: var(--desktop-body-regular-font-style);
    font-weight: var(--desktop-body-regular-font-weight);
    line-height: var(--desktop-body-regular-line-height);
    color: var(--escala-grises-gris-500, #3F3F41);
}

/* Sección Lista */

.form-section-list {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--paleta-complementaria-azul-profundo);
    display: flex;
    flex-direction: column;
}

.form-section-list-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 24px 16px;
    gap: 24px;
    width: 100%;
    min-height: 32px;
    flex: none;
    flex-grow: 0;
    border-bottom: 1px solid var(--fondos-digitales-fondo-4, #DFEAFF);
    justify-content: space-between;
}

.form-section-list-header .title {
    font-family: var(--desktop-h6-font-family);
    font-style: var(--desktop-h6-font-style);
    font-weight: var(--desktop-h6-font-weight);
    font-size: var(--desktop-h6-font-size);
    line-height: var(--desktop-h6-line-height);
    color: var(--paleta-complementaria-azul-profundo, #0033A0);
}

.form-section-list-content {
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.form-section-list-row {

    display: flex;
    width: 100%;
    min-height: 80px;
    gap: 24px;
    align-items: center;
    justify-content: flex-start;

}

.form-section-list-content .form-section-list-row:not(:last-child) {
    border-bottom: 1px solid var(--fondos-digitales-fondo-4, #DFEAFF);
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.form-section-list-row-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    width: 100%;
    justify-content: space-between;
}

.form-section-list-row-title-text {
    font-size: var(--desktop-body-regular-font-size);
    font-family: var(--desktop-body-regular-font-family);
    font-style: var(--desktop-body-regular-font-style);
    font-weight: var(--desktop-body-regular-font-weight);
    line-height: var(--desktop-body-regular-line-height);
    color: var(--escala-grises-gris-500, #3F3F41);
    width: 100%;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .form-section-list-row {
        flex-direction: column;
        gap: 8px;
    }
}