:root {
    --bg-color: #0B0B0D;
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --border-color: #555454;
    --highlight: #F5AD0B;
    --highlight-hover: #e09d08;
    --card-bg: rgba(255, 255, 255, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

h1, h2, h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 700;
}

p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.highlight {
    color: var(--highlight);
}

.quiz-container {
    width: 100%;
    max-width: 600px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Progress Bar */
#progress-container {
    margin-bottom: 30px;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-align: right;
    font-weight: 500;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--highlight);
    width: 0%;
    transition: width 0.4s ease;
}

/* Screens */
.screen {
    display: none;
    animation: fadeIn 0.4s ease;
}

.screen.active {
    display: block;
}

.hidden {
    display: none !important;
}

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

/* Options */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.option-btn:hover {
    border-color: var(--highlight);
    background: rgba(245, 173, 11, 0.1);
}

/* Form */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 14px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.input-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23A1A1AA%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 16px top 50%;
    background-size: 12px auto;
}

.input-group select option {
    background-color: var(--bg-color);
    color: var(--text-primary);
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--highlight);
}

/* Buttons */
.btn-primary {
    width: 100%;
    background-color: var(--highlight);
    color: #000;
    border: none;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--highlight-hover);
    transform: translateY(-2px);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 173, 11, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(245, 173, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 173, 11, 0); }
}

/* Loader */
.loader {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--highlight);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Result Screens */
.result-screen {
    text-align: center;
}

.cta-box {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.security-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 8px;
    margin-bottom: 0;
    text-align: center;
}

/* Container responsivo para o vídeo vertical do quiz */
.quiz-video-wrapper {
    position: relative;
    padding-bottom: 177.78%; /* Proporção 9:16 vertical */
    height: 0;
    overflow: hidden;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin: 20px 0;
}

.quiz-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 11px;
}

/* Estilização da lista de entregáveis */
.benefits-list {
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: 0 auto 24px auto;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.benefits-list li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefits-list li:last-child {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .quiz-container {
        padding: 24px 16px;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
}
