/* ============================================
   ENCUESTA PAGE — SPECIFIC STYLES
   ============================================ */
.survey-body {
    background: #f7f9fb;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.survey-wrapper {
    width: min(900px, 100%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.survey-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.survey-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Sen', Helvetica, sans-serif;
    font-size: 2rem;
    color: var(--base-dark);
}

.survey-title h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.survey-title p {
    color: #5e6670;
    max-width: 540px;
}

/* Progress */
.survey-progress {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.progress-track {
    height: 6px;
    background: #e6ebf0;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    border-radius: 999px;
    transition: width 0.35s ease;
}

.progress-steps {
    display: flex;
    gap: 0.6rem;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d2dae2;
    transition: background 0.3s ease, transform 0.3s ease;
}

.progress-dot.active {
    background: var(--accent-green);
    transform: scale(1.15);
}

/* Survey Card */
.survey-card {
    background: #ffffff;
    border-radius: 20px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 25px 60px rgba(33, 53, 75, 0.08);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

/* Steps */
.survey-step {
    display: none;
    flex-direction: column;
    gap: 1.25rem;
}

.survey-step.active {
    display: flex;
}

.survey-step.animate-in {
    animation: fadeSlide 0.45s ease;
}

.survey-step.shake {
    animation: shake 0.45s ease;
}

.survey-hint {
    color: #6c7480;
}

/* Fields */
.field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-weight: 600;
    color: #394554;
}

.field input {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid #dbe2ea;
    background: #fdfdff;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field select {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid #dbe2ea;
    background: #fdfdff;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #7b8794 50%),
        linear-gradient(135deg, #7b8794 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(50% - 2px),
        calc(100% - 14px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.field select:disabled {
    background-color: #f3f5f8;
    color: #9aa3ad;
    cursor: not-allowed;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(94, 229, 153, 0.2);
}

/* Choices */
.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.choice-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.choice,
.choice-inline {
    border: 1px solid #e0e6ed;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    background: #fbfcfe;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: #394554;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.choice input,
.choice-inline input {
    accent-color: var(--accent-green);
    width: 18px;
    height: 18px;
}

.choice:hover,
.choice-inline:hover {
    transform: translateY(-2px);
    border-color: var(--accent-green);
    box-shadow: 0 12px 24px rgba(33, 53, 75, 0.08);
}

/* File Upload */
.file-field {
    border: 1px dashed #cfd8e3;
    border-radius: 16px;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.file-field.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.file-field input {
    display: none;
}

.file-label {
    font-weight: 700;
    color: #394554;
}

.file-hint {
    font-size: 0.9rem;
    color: #6c7480;
}

.file-field.has-file {
    border-color: var(--accent-green);
    background: rgba(94, 229, 153, 0.08);
}

/* Summary */
.summary-card {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 1.2rem;
    background: #f7fafc;
    border-radius: 14px;
    border: 1px solid #e6edf5;
}

.summary-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6c7480;
}

.summary-card strong {
    color: #2f3944;
    font-size: 1.05rem;
}

/* Final Step */
.survey-final {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.final-note {
    color: #6c7480;
    font-size: 0.95rem;
}

/* Actions */
.survey-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.survey-actions .btn {
    min-width: 140px;
    justify-content: center;
}

.survey-actions .ghost {
    background: transparent;
    color: var(--base-darker);
    border: 1px solid #d4dbe3;
}

.survey-actions .ghost:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* ---- Animations ---- */
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-6px);
    }
    50% {
        transform: translateX(6px);
    }
    75% {
        transform: translateX(-4px);
    }
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
    .survey-body {
        padding: 2rem 1rem;
    }

    .survey-actions {
        flex-direction: column-reverse;
    }
}
