/* Estilos locais para o Quiz, herdando variáveis do styles.css global */

.quiz-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

/* Intro e Cinematic Sequence */
#intro-screen, #cinematic-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    z-index: 9999;
    transition: opacity 1.5s ease;
    user-select: none;
    cursor: default;
}

.cinematic-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 38px;
    line-height: 1.4;
    color: var(--accent-blue);
    text-align: center;
    max-width: 700px;
    padding: 0 24px;
    opacity: 0;
    transform: scale(0.98) translateY(10px);
    transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.cinematic-text.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.cinematic-text.hide {
    opacity: 0;
    transform: scale(1.02) translateY(-10px);
}

.progress-wrapper {
    margin-bottom: 40px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(15, 23, 42, 0.05);
    border-radius: 100px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent-blue);
    border-radius: 100px;
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.quiz-step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.quiz-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.quiz-step h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-main);
    line-height: 1.4;
}

.quiz-step p.subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 16px;
}

.options-grid {
    display: grid;
    gap: 16px;
}

.quiz-option input {
    display: none;
}

.option-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.option-card span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
}

.option-card i {
    color: var(--text-muted);
    opacity: 0.2;
    transition: var(--transition);
}

.option-card:hover {
    border-color: rgba(15, 23, 42, 0.3);
    background: white;
}

.quiz-option input:checked + .option-card {
    border-color: var(--accent-blue);
    background: white;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.quiz-option input:checked + .option-card i {
    color: var(--accent-brand);
    opacity: 1;
}

/* Campos de Texto Form / Explaining */
.input-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 16px;
    padding: 18px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--text-main);
    transition: var(--transition);
    outline: none;
    margin-bottom: 16px;
}

.input-field:focus {
    background: white;
    border-color: var(--accent-blue);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.input-field::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

textarea.input-field {
    resize: vertical;
    min-height: 160px;
}

/* ======================================================
   NOVO FORMULÁRIO FINAL: SUPER ELEGANTE, FINO E COM CLASSE
   ====================================================== */
.premium-form-container {
    padding: 20px 0;
}

.premium-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px 0;
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 300;
    color: var(--text-main);
    outline: none;
    border-radius: 0;
    transition: border-color 0.4s ease;
    margin-bottom: 40px;
}

.premium-input:focus {
    border-bottom-color: var(--accent-blue);
}

.premium-input::placeholder {
    color: var(--text-muted);
    opacity: 0.4;
    font-weight: 300;
}

.premium-toggle {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    justify-content: flex-start;
}

.premium-toggle label {
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
    position: relative;
}

.premium-toggle input {
    display: none;
}

.premium-toggle span {
    padding-bottom: 8px;
    position: relative;
}

.premium-toggle span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--accent-blue);
    transition: width 0.4s ease;
}

.premium-toggle input:checked + span {
    color: var(--accent-blue);
}

.premium-toggle input:checked + span::after {
    width: 100%;
}


/* Custom Option Input */
.custom-option-wrapper .option-card {
    padding: 12px 24px;
    background: rgba(15, 23, 42, 0.02);
    border-style: dashed;
    display: flex;
    gap: 12px;
}

.custom-option-wrapper input {
    display: block !important;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    flex: 1;
    color: var(--text-main);
    padding: 8px 0;
}

.custom-option-wrapper input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.custom-submit-btn {
    background: var(--accent-brand);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

.custom-submit-btn.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.custom-submit-btn:hover {
    background: var(--text-main);
    transform: scale(1.05);
}

/* Spinner Final */
.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(15, 23, 42, 0.1);
    border-top-color: var(--accent-brand);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cinematic-text {
        font-size: 26px !important;
        padding: 0 24px;
        text-align: center;
    }

    .quiz-layout {
        padding: 40px 16px;
    }

    .glass-card {
        padding: 32px 20px !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        min-height: auto !important;
    }

    .options-grid {
        gap: 12px !important;
    }

    .quiz-step h2 {
        font-size: 22px !important;
        margin-bottom: 20px !important;
    }

    .premium-input {
        font-size: 20px;
        padding: 16px 0;
        margin-bottom: 24px;
    }

    .premium-toggle {
        gap: 20px;
        flex-wrap: wrap;
    }

    .premium-toggle label {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .lead-submit-row {
        flex-direction: column !important;
        text-align: center !important;
        gap: 24px !important;
    }

    .lead-submit-text {
        order: 2;
    }

    .lead-submit-btn {
        width: 100% !important;
        order: 1;
    }
}

/* Custom UI Classes */
.lead-submit-row {
    text-align: right;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lead-submit-text {
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.6;
}

.lead-submit-btn {
    padding: 16px 40px;
    font-size: 16px;
}