/* ===================================
   ESTILOS PARA VISTAS DE ENCUESTAS
   =================================== */

/* SECCIÓN: Index.cshtml - Página de acceso */

.hero-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 3rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-section h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.hero-section p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

.form-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 0.5rem;
    border-left: 4px solid #007bff;
    margin-bottom: 1.5rem;
}

.form-section fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.form-section legend {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1.5rem;
    border: none;
    padding: 0;
    width: 100%;
}

.input-group-dni {
    position: relative;
}

.input-group-dni .form-control-lg {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.help-text {
    display: block;
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.help-text i {
    margin-right: 0.25rem;
}

/* Estilos para la vista de Encuestas
   Gestión de formularios y alertas */

/* ===== ALERTAS - VISIBILIDAD ===== */
#errorDni,
#loadingIndicator {
    display: none;
    margin-bottom: 20px;
}

/* Mostrar alertas con la clase 'show' */
#errorDni.show,
#loadingIndicator.show {
    display: block !important;
}

/* ===== TEXTO DE AYUDA ===== */
.help-text {
    word-break: break-word;
    line-height: 1.5;
}

/* ===== ANIMACIÓN DEL SPINNER ===== */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    #errorDni,
    #loadingIndicator {
        margin-bottom: 15px;
        font-size: 14px;
    }
}

/* ===== ACCESIBILIDAD ===== */
#errorDni:focus,
#loadingIndicator:focus {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}

/* RESPONSIVE DESIGN */

@media (max-width: 1199px) {
    .hero-section h1 {
        font-size: 2.25rem;
    }
}

@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .form-section {
        padding: 1.5rem;
    }

    .section-header {
        margin-top: 1.5rem;
        font-size: 1rem;
    }

    .radio-option {
        margin-right: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 1rem;
        border-radius: 0.25rem;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section p {
        font-size: 0.95rem;
    }

    .form-section {
        padding: 1.25rem;
        border-radius: 0.25rem;
    }

    .form-section legend {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .radio-option {
        display: block;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .section-header {
        margin-top: 1.5rem;
        font-size: 0.95rem;
        padding-left: 0.75rem;
    }

    .btn-lg-custom {
        width: 100%;
        min-width: auto;
        padding: 0.625rem 1.5rem;
        font-size: 1rem;
    }

    .privacy-notice {
        padding: 1rem;
        margin-top: 1.5rem;
    }

    .privacy-notice p {
        font-size: 0.8125rem;
    }

    .input-group-dni .form-control-lg {
        font-size: 1rem;
    }
}

/* ACCESSIBILITY */

.form-control:focus,
.form-control-lg:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

input[type="radio"]:focus + label {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* ANIMATIONS */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-message,
.loading-indicator {
    animation: fadeIn 0.3s ease-in-out;
}

/* UTILITIES */

.text-muted {
    color: #6c757d !important;
}

.text-dark {
    color: #212529 !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.border-bottom {
    border-bottom: 1px solid #dee2e6 !important;
}