/*
 * Cromo del wizard de AgencySurvey (MDX + NTIC).
 *
 * NO va en un .razor.css: el aislamiento de CSS de Blazor no cruza componentes, así que las
 * reglas se perderían en cuanto el markup viviera en el envoltorio de la marca en vez de en el
 * componente compartido. Con el honeypot del login eso dejó el campo trampa VISIBLE en
 * pantalla; aquí pasaría lo mismo con .agency-survey-honeypot.
 */

.agency-survey {
    max-width: 62rem;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.agency-survey-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-align: center;
}

.agency-survey-subtitle {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.75rem 0 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.agency-survey-fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.agency-survey-fieldset[disabled] {
    opacity: 0.6;
}

.agency-survey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 0.85rem 1rem;
}

.agency-survey-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.6rem;
}

.agency-survey-field-wide {
    grid-column: 1 / -1;
}

.agency-survey-field label {
    font-size: 0.85rem;
    font-weight: 600;
}

.agency-survey-field input,
.agency-survey-field select,
.agency-survey-input {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 0.25rem;
    font-size: 0.9rem;
    background-color: #fff;
}

.agency-survey-field input[type="checkbox"] {
    width: auto;
    margin-right: 0.4rem;
}

.agency-survey-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.agency-survey-btn,
.agency-survey-btn-secondary {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border: 0;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.agency-survey-btn {
    background-color: #033159;
    color: #fff;
}

.agency-survey-btn-secondary {
    background-color: #e9ecef;
    color: #033159;
}

.agency-survey-btn[disabled],
.agency-survey-btn-secondary[disabled] {
    cursor: not-allowed;
    opacity: 0.65;
}

.agency-survey-alert {
    padding: 0.65rem 0.9rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
    border: 1px solid #f5c2c7;
    background-color: #f8d7da;
    color: #842029;
    font-size: 0.9rem;
}

.agency-survey-alert-success {
    border-color: #badbcc;
    background-color: #d1e7dd;
    color: #0f5132;
}

.agency-survey-empty {
    font-size: 0.9rem;
    opacity: 0.75;
    margin: 0.35rem 0;
}

/* ---------- filas del borrador ---------- */

.agency-survey-rows {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
}

.agency-survey-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.25rem;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.agency-survey-row-remove {
    border: 0;
    background: transparent;
    color: #b02a37;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.agency-survey-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.agency-survey-inline-form .agency-survey-input {
    flex: 1 1 11rem;
    width: auto;
}

/* ---------- tabla de licencias ---------- */

.agency-survey-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.agency-survey-table th,
.agency-survey-table td {
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    text-align: left;
}

.agency-survey-table th {
    font-weight: 600;
    background-color: rgba(3, 49, 89, 0.06);
}

/* ---------- trampa anti-bot ----------
 * Fuera de pantalla en vez de display:none: algunos bots omiten los campos ocultos con
 * display, y entonces la trampa no atrapa nada. Un humano tampoco puede enfocarlo por
 * tabindex="-1".
 */
.agency-survey-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
