/* css/raiox.css - Foco Estrito no Formulário Interativo */

/* Background minimalista */
.raiox-body {
    background-color: var(--ebony-black, #0f1115);
    color: var(--platinum-bright, #f8f9fa);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Header (Logo + Progresso) */
.raiox-header {
    width: 100%;
    background: rgba(15, 17, 21, 0.9);
    padding: 1.5rem 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

/* Progress bar global */
.progress-bar-container {
    height: 6px;
    background: var(--ebony-darker, #16181d);
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
}
.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--gold-gradient, linear-gradient(135deg, #d4af37, #fdf6ba, #d4af37));
    transition: width 0.6s cubic-bezier(0.87, 0, 0.13, 1);
    border-radius: 0 4px 4px 0;
}

/* Centro Principal do Formulário */
.raiox-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.raiox-container {
    max-width: 768px;
    position: relative;
    padding: 2rem;
    width: 100%;
    margin: auto;
}

.question-tracker {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* Slides do JS */
#quiz-slides-container {
    position: relative;
    min-height: 400px;
    overflow: visible;
}

.slide-question {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide-question.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.slide-question h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    line-height: 1.4;
    color: var(--platinum-bright, #fff);
}

/* Animação quando uma pergunta sai */
.slide-question.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

/* Botões do Quiz */
.quiz-options-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--platinum-dim, #ccc);
    text-align: left;
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-family: inherit;
}

.btn-option:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.5);
    color: var(--gold-primary, #d4af37);
    transform: translateX(5px);
}

.btn-option.selected {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold-primary, #d4af37);
    color: #fff;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.btn-option .option-letter {
    font-weight: 700;
    color: var(--gold-primary);
    margin-right: 1.5rem;
    background: rgba(255,255,255,0.05);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

/* Inputs de Texto/Email/Whatsapp */
.raiox-input-group {
    margin-bottom: 2rem;
}
.raiox-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gold-primary);
    font-weight: 600;
    letter-spacing: 1px;
}
.raiox-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.1rem;
    padding: 0.8rem 0;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
}
.raiox-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}
.raiox-input:focus {
    outline: none;
    border-bottom-color: var(--gold-primary);
}

/* Campos de Texto com Legenda Lateral */
.input-with-legend {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.input-with-legend .raiox-input {
    flex: 1;
    width: auto;
}

.input-legend {
    flex: 1;
    color: var(--platinum-dim, #ccc);
    font-size: 0.85rem;
    line-height: 1.4;
    opacity: 0.9;
    font-weight: 300;
}

/* Responsivo Mobile */
@media (max-width: 768px) {
    .input-with-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .input-with-legend .raiox-input {
        width: 100%;
    }
    .input-legend {
        font-size: 0.75rem;
        margin-top: 0.2rem;
    }
}

/* Bottom Navigation */
.raiox-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold-primary, #d4af37);
    color: var(--gold-primary, #d4af37);
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}
.btn-outline:hover {
    background: rgba(212, 175, 55, 0.15);
    color: #fff;
}

.btn-cta {
    background: var(--gold-primary, #d4af37);
    background: var(--gold-gradient, linear-gradient(135deg, #d4af37, #fdf6ba, #d4af37));
    border: none;
    color: #111;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.hidden {
    display: none !important;
}

/* Responsivo Mobile */
@media (max-width: 768px) {
    .raiox-body { overflow: auto; height: auto; min-height: 100vh; }
    .slide-question h2 { font-size: 1.4rem; }
    .btn-option { padding: 1rem; font-size: 0.95rem; }
    .btn-option:hover { transform: none; }
    .raiox-input { font-size: 1.4rem; }
}
