/* Estilos Complementares (Não-críticos) */

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 12px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cor-lilas), var(--cor-verde));
    width: 0%;
    transition: width 0.4s ease;
}

.step-indicator {
    font-size: 0.85rem;
    color: var(--cor-cinza);
    margin-top: 0;
    margin-bottom: 32px;
    font-weight: 600;
}

body {
    font-family: var(--fonte-principal);
    background: linear-gradient(135deg, #091227 0%, var(--cor-azul) 50%, #151518 100%);
    background-attachment: fixed;
    color: var(--cor-offwhite);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.step-title {
    font-family: var(--fonte-titulo);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.step-subtitle {
    font-size: 1rem;
    color: var(--cor-cinza);
    margin-top: 0;
    margin-bottom: 24px;
}

/* PARALLAX BG REMOVED */
.parallax-bg {
    display: none !important;
}

/* RESPONSIVE FUNNEL LOGO CROP */
.funnel-logo-crop {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 140px;
    margin: 0 auto 20px;
    pointer-events: none;
    user-select: none;
    width: 100%;
}

.funnel-logo-crop img {
    height: 420px;
    max-height: none;
    width: auto;
    object-fit: contain;
    margin-top: -140px;
    margin-bottom: -140px;
    display: block;
}

@media (max-width: 768px) {
    .funnel-logo-crop {
        height: 70px !important;
        margin-bottom: 16px !important;
    }
    .funnel-logo-crop img {
        height: 200px !important;
        margin-top: -65px !important;
        margin-bottom: -65px !important;
        max-width: 85% !important;
    }
}

.p-shape {
    position: absolute;
    box-sizing: border-box;
}

.brand-icon {
    display: block;
    background-image: url("../impulse-landing-page/assets/icone.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.12;
    filter: drop-shadow(0 0 10px rgba(200, 255, 74, 0.2));
}

@media (max-width: 768px) {
    .p-mid, .p-center, .p-blur {
        display: none !important;
    }
    .p-shape {
        opacity: 0.08 !important;
        transform: scale(0.6) !important;
    }
}

.field-group {
    margin-bottom: 24px;
}

.field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--cor-offwhite);
    font-size: 0.95rem;
}

.field-hint {
    font-size: 0.8rem;
    color: var(--cor-cinza);
    margin-bottom: 12px;
    display: block;
}

/* Inputs de Texto */
.input-text {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-family: var(--fonte-texto);
    font-size: 1rem;
    transition: all 0.2s;
}

.input-text:focus {
    outline: none;
    border-color: var(--cor-lilas);
    box-shadow: 0 0 0 3px rgba(178, 156, 255, 0.2);
}

.input-text.has-error {
    border-color: var(--cor-erro);
}

/* Radios Customizados */
.radio-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.radio-label:hover {
    border-color: var(--cor-lilas);
    background: rgba(178, 156, 255, 0.12);
    box-shadow: 0 0 16px rgba(178, 156, 255, 0.2);
}

.radio-input {
    margin-right: 12px;
    accent-color: var(--cor-verde);
    width: 20px;
    height: 20px;
}

.radio-input:checked + span {
    color: var(--cor-verde);
    font-weight: 700;
}

.radio-label:has(.radio-input:checked),
.radio-label.selected {
    border-color: var(--cor-verde);
    background: rgba(200, 255, 74, 0.12);
    box-shadow: 0 0 20px rgba(200, 255, 74, 0.25);
}

/* Ações */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    gap: 16px;
}

.btn-primary, .btn-secondary, .btn-link {
    font-family: var(--fonte-titulo);
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--cor-verde);
    color: var(--cor-azul);
    flex-grow: 1;
}

.btn-primary:hover {
    background-color: #d4ff70;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(200, 255, 74, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--cor-cinza);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
    color: #fff;
    border-color: #fff;
}

.btn-link {
    background: transparent;
    color: var(--cor-verde);
    text-decoration: underline;
    width: 100%;
}

/* Erros */
.error-message {
    color: var(--cor-erro);
    font-size: 0.85rem;
    margin-top: 6px;
    display: block;
}

.error-summary {
    background: rgba(255, 74, 74, 0.1);
    border-left: 4px solid var(--cor-erro);
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 24px;
    color: #fff;
    font-size: 0.9rem;
}

.error-summary:focus {
    outline: 2px solid var(--cor-erro);
    outline-offset: 2px;
}

/* Acessibilidade - Focus visible */
:focus-visible {
    outline: 3px solid var(--cor-lilas);
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .app-container {
        padding: 24px;
        margin: 20px auto;
        border-radius: 0;
        border: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        min-height: 100vh;
    }
    
    .hero {
        padding: 40px 16px;
    }
}

/* Analysis Loader */
.analysis-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    text-align: center;
}

.spinner {
    width: 64px;
    height: 64px;
    border: 4px solid rgba(200, 255, 74, 0.1);
    border-left-color: var(--cor-verde);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 24px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.analysis-text {
    font-size: 1.25rem;
    color: var(--cor-verde);
    font-weight: 700;
    min-height: 32px;
}

/* Diagnostic Box */
.diagnostic-box {
    background: rgba(178, 156, 255, 0.05);
    border: 1px solid rgba(178, 156, 255, 0.3);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
    color: #fff;
    font-size: 0.95rem;
    animation: fadeIn 0.6s ease-out;
}
.diagnostic-box strong {
    color: var(--cor-lilas);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.f.btn.rv { opacity: 0; transform: translateY(16px); transition: all 0.5s var(--ease); }
.btn.rv.v { opacity: 1; transform: translateY(0); }

/* PARALLAX BG */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.brand-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23C8FF4A' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 50 L35 50 L45 20 L60 80 L70 50 L90 50' /%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.15;
}

.p-shape {
    position: absolute;
    color: var(--cor-verde);
    opacity: 0.12;
    transition: transform 0.1s cubic-bezier(0.1, 0, 0.9, 1);
}

.p-blur {
    filter: blur(6px);
    opacity: 0.08;
}
