/* ============================================
   DIAGNÓSTICO START - Formulário Styles
   ============================================ */

/* ---- Hero Header ---- */
.form-hero {
    text-align: center;
    padding: var(--space-3xl) 0 var(--space-2xl);
}

.form-hero__logo {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: var(--space-md);
}

.form-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.form-hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Progress Bar ---- */
.progress-container {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-primary);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    max-width: 700px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.progress-step {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex: 1;
}

.progress-step__circle {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-muted);
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.progress-step__line {
    flex: 1;
    height: 2px;
    background: var(--border-color);
    transition: background var(--transition-normal);
}

.progress-step.active .progress-step__circle {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
}

.progress-step.completed .progress-step__circle {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg-primary);
}

.progress-step.completed .progress-step__line {
    background: var(--accent);
}

.progress-step__label {
    display: none;
}

/* ---- Form Steps ---- */
.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
    min-height: 60vh;
}

.form-step {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.form-step.active {
    display: block;
}

.form-step__header {
    margin-bottom: var(--space-2xl);
}

.form-step__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.form-step__number {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-sm);
}

.form-step__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.form-step__description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ---- Rating Scale Legend ---- */
.rating-legend {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-xs);
    padding: var(--space-md);
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-xl);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.rating-legend span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.rating-legend strong {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ---- Section Divider ---- */
.section-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-2xl) 0 var(--space-lg);
}

.section-divider__line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.section-divider__text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

/* ---- Navigation Buttons ---- */
.form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
}

.form-nav__info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-nav__buttons {
    display: flex;
    gap: var(--space-md);
}

/* ---- Priority Pillar Selection ---- */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.pillar-option {
    position: relative;
}

.pillar-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pillar-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
    padding: var(--space-xl);
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.pillar-option label:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.pillar-option input[type="radio"]:checked+label {
    border-color: var(--primary);
    background: rgba(108, 60, 225, 0.1);
    box-shadow: 0 0 20px var(--primary-glow);
}

.pillar-option__icon {
    font-size: 2rem;
}

.pillar-option__name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* ---- Submit Button Area ---- */
.submit-area {
    text-align: center;
    padding: var(--space-2xl) 0;
}

.submit-area p {
    margin-top: var(--space-md);
    font-size: 0.85rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .form-hero {
        padding: var(--space-2xl) 0 var(--space-xl);
    }

    .progress-step__circle {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .pillar-grid {
        grid-template-columns: 1fr;
    }

    .form-nav {
        flex-direction: column;
        gap: var(--space-md);
    }

    .form-nav__buttons {
        width: 100%;
    }

    .form-nav__buttons .btn {
        flex: 1;
    }

    .rating-legend {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .form-step__title {
        font-size: 1.4rem;
    }

    .progress-step__circle {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }
}