/**
 * ASEACAM | SureForms (Seguros 32145 + Absentismo 32146)
 * Estilo visual únicamente, sin modificar el HTML de los formularios.
 */

/* Variables compartidas solo por estos dos formularios. */
:where(.srfm-form-container-32145, .srfm-form-container-32146) {
    --srfm-color-scheme-primary: #ee8b00 !important;
    --srfm-color-scheme-text-on-primary: #ffffff !important;
    --srfm-color-scheme-text: #122b23 !important;
    --srfm-color-input-text: #152d25 !important;
    --srfm-body-input-color: #152d25 !important;
    --srfm-color-input-label: #142920 !important;
    --srfm-color-input-placeholder: #79877f !important;
    --srfm-color-input-background: #ffffff !important;
    --srfm-color-input-background-hover: #ffffff !important;
    --srfm-color-input-border: #d9e1dd !important;
    --srfm-color-input-border-hover: #ed9209 !important;
    --srfm-color-input-border-focus-glow: rgba(240, 140, 0, .12) !important;
    --srfm-color-input-selected: #fff6e7 !important;
    --srfm-label-font-size: 15px !important;
    --srfm-label-font-weight: 650 !important;
    --srfm-input-field-font-size: 15px !important;
    --srfm-input-field-border-radius: 12px !important;
    --srfm-input-height: 52px !important;
    --srfm-row-gap-between-blocks: 22px !important;
    --srfm-column-gap-between-blocks: 16px !important;
    --srfm-btn-font-weight: 750 !important;
    --srfm-btn-font-size: 15px !important;
    --srfm-btn-border-radius: 999px !important;
    --srfm-btn-color-hover: #d87d00 !important;
    color: #142a22 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* No añadir una segunda caja sobre la tarjeta/sección creada por el plugin de la página. */
:where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-form {
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
}

:where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-block-label,
:where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-block-legend {
    color: #142a22 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    margin-bottom: 9px !important;
}

:where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-input-common,
:where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-dropdown-common {
    box-sizing: border-box !important;
    max-width: 100% !important;
    border: 1px solid #d9e1dd !important;
    background-color: #ffffff !important;
    border-radius: 12px !important;
    color: #142a22 !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    transition: border-color .15s ease, box-shadow .15s ease !important;
}

:where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-input-common:hover,
:where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-dropdown-common:hover {
    border-color: #b7c8bf !important;
}

:where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-input-common:focus,
:where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-dropdown-common:focus {
    border-color: #ee8b00 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(238, 139, 0, .13) !important;
}

:where(.srfm-form-container-32145, .srfm-form-container-32146) textarea.srfm-input-common,
:where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-input-textarea {
    min-height: 130px !important;
    padding: 15px 17px !important;
    resize: vertical !important;
}

/* Opciones de respuesta: una tarjeta por línea (no tres columnas apretadas). */
:where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-multi-choice-block .srfm-block-wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    gap: 11px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

:where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-multi-choice-block .srfm-multi-choice-single,
:where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-multi-choice-block .srfm-choice-width-33-33 .srfm-multi-choice-single,
:where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-multi-choice-block .srfm-choice-width-50 .srfm-multi-choice-single {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

:where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-multi-choice-block .srfm-multi-choice-single .srfm-block-content-wrap {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    min-height: 62px !important;
    height: auto !important;
    width: 100% !important;
    padding: 13px 17px !important;
    border: 1px solid #dae4dc !important;
    border-radius: 13px !important;
    background: #ffffff !important;
    color: #142a22 !important;
    box-shadow: 0 2px 9px rgba(18, 44, 32, .025) !important;
    box-sizing: border-box !important;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease !important;
}

:where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-multi-choice-block .srfm-multi-choice-single:hover .srfm-block-content-wrap {
    background: #fffaf2 !important;
    border-color: #ee8b00 !important;
}

:where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-multi-choice-block .srfm-multi-choice-single input:checked + .srfm-block-content-wrap,
:where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-multi-choice-block .srfm-multi-choice-single:has(input:checked) .srfm-block-content-wrap {
    border-color: #ed8f00 !important;
    background: #fff4e2 !important;
    box-shadow: 0 0 0 2px rgba(238, 139, 0, .12) !important;
}

:where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-multi-choice-block .srfm-option-container {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    white-space: normal !important;
}

:where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-multi-choice-block .srfm-option-container label,
:where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-multi-choice-block .srfm-option-container span {
    color: #142a22 !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    font-weight: 550 !important;
}

:where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-multi-choice-block .srfm-icon-container {
    flex: 0 0 auto !important;
    margin-left: auto !important;
}

/* Casilla legal legible, sin agrandar el checkbox. */
:where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-gdpr-block,
:where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-checkbox-block {
    color: #53645b !important;
    line-height: 1.6 !important;
}

:where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-gdpr-block a,
:where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-checkbox-block a {
    color: #e78600 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

/* Enviar: botón ASEACAM, mantiene el submit y la validación originales. */
:where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-submit-button button,
:where(.srfm-form-container-32145, .srfm-form-container-32146) button#srfm-submit-btn {
    min-height: 49px !important;
    padding: 12px 31px !important;
    border-radius: 999px !important;
    border: 0 !important;
    background-color: #ee8b00 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 750 !important;
    letter-spacing: 0 !important;
    box-shadow: 0 8px 22px rgba(238, 139, 0, .18) !important;
    transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease !important;
}

:where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-submit-button button:hover,
:where(.srfm-form-container-32145, .srfm-form-container-32146) button#srfm-submit-btn:hover {
    background-color: #d87e00 !important;
    box-shadow: 0 11px 27px rgba(238, 139, 0, .25) !important;
    transform: translateY(-1px) !important;
}

:where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-submit-button button:focus-visible,
:where(.srfm-form-container-32145, .srfm-form-container-32146) button#srfm-submit-btn:focus-visible {
    outline: 3px solid rgba(238, 139, 0, .3) !important;
    outline-offset: 3px !important;
}

@media (max-width: 767px) {
    :where(.srfm-form-container-32145, .srfm-form-container-32146) {
        --srfm-row-gap-between-blocks: 17px !important;
        --srfm-column-gap-between-blocks: 12px !important;
    }
    :where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-multi-choice-block .srfm-multi-choice-single .srfm-block-content-wrap {
        padding: 13px 14px !important;
        min-height: 58px !important;
    }
    :where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-block {
        max-width: 100% !important;
    }
    :where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-submit-button button,
    :where(.srfm-form-container-32145, .srfm-form-container-32146) button#srfm-submit-btn {
        width: 100% !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    :where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-multi-choice-single .srfm-block-content-wrap,
    :where(.srfm-form-container-32145, .srfm-form-container-32146) .srfm-submit-button button {
        transition: none !important;
        transform: none !important;
    }
}
