/* --- FEEDBACK FORM STYLES (MODERN REDESIGN - FINAL) --- */

.feedback-section {
    padding: 100px 20px;
    background: #f4f6f9;
    position: relative;
    overflow: hidden;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.feedback-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
    /* FLEXBOX PARA ESTRUCTURA */
    display: flex;
    flex-direction: column;
}

.feedback-container .titulo {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #1565c0;
    text-align: center;
    font-weight: 800;
}

.feedback-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: #555;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
    /* Menos margen abajo porque el área de comentario tiene flex */
}

/* === FORMULARIO FLEXIBLE === */
.feedback-form {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.feedback-form .form-group {
    display: flex;
    flex-direction: column;
}

/* === ÁREA DE COMENTARIO === */
.feedback-form .comentario-area {
    margin-top: 15px;
    margin-bottom: auto;
    /* CRÍTICO: Empuja el botón hacia abajo si sobra espacio */
}

/* Labels */
.feedback-form label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    display: block;
}

/* Inputs */
.feedback-form input,
.feedback-form select,
.feedback-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
    background: #fff;
    color: #333;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
    font-family: inherit;
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
    border-color: #1565c0;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
    outline: none;
}

.feedback-form textarea {
    resize: vertical;
    min-height: 180px;
    /* TEXTAREA GRANDE */
    line-height: 1.6;
}

/* === BOTÓN (DERECHA Y MÁS PEQUEÑO) === */
.feedback-form .btn-container {
    text-align: right;
    /* CRÍTICO: ALINEA EL BOTÓN A LA DERECHA */
    margin-top: 30px;
    /* Asegura separación */
}

.feedback-form .btn-cta {
    background: #1565c0;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 30px;
    /* BOTÓN MÁS COMPACTO */
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-block;
    width: auto;
    min-width: 180px;
    max-width: 250px;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.2);
}

.feedback-form .btn-cta:hover {
    background: #0d47a1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(21, 101, 192, 0.3);
}

.feedback-form .btn-cta:active {
    transform: translateY(0);
}

#feedbackResponse {
    margin-top: 20px;
    text-align: right;
    font-weight: 500;
    font-size: 1rem;
    min-height: 24px;
}

/* === RESPONSIVE (MÓVIL) === */
@media (max-width: 768px) {
    .feedback-section {
        padding: 60px 15px;
    }

    .feedback-container {
        padding: 30px 20px;
    }

    .feedback-container .titulo {
        font-size: 1.8rem;
    }

    /* CRÍTICO: STACK COLUMNS (Uno encima de otro) */
    .form-grid {
        grid-template-columns: 1fr;
        /* Una sola columna: todos apilados */
        gap: 20px;
        margin-bottom: 20px;
    }

    /* El botón toma todo el ancho y se centra en móvil para mejor UX */
    .feedback-form .btn-container {
        text-align: center;
        /* Vuelve a centrar el botón en móvil */
        margin-top: 30px;
    }

    .feedback-form .btn-cta {
        width: 100%;
        max-width: none;
        padding: 14px 0;
        min-width: unset;
    }

    #feedbackResponse {
        text-align: center;
        /* Centrar respuesta en móvil */
    }
}