* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #ffffff;
    color: #222;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0px 20px 30px;
    text-align: center;
}

.header {
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 20px 10px;
    border-bottom: 1px solid rgba(19, 40, 75, 0.12);
}

.header img {
    width: min(245px, 72vw);
    height: auto;
    display: block;
}



.footer {
    display: none;
}

.content {
    background-color: #fff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 3px 18px rgba(19, 40, 75, 0.08);
}

p {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

h2 {
    color: #13284b;
    font-size: 20px;
}

/* Options */
.options {
    margin-top: 20px;
}

.options button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid #e0e0e0;
    color: #333;
    outline: none;
}

.option-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #f0f4fa;
    color: #13284b;
    font-weight: 700;
    font-size: 14px;
    margin-right: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.options button:hover {
    border-color: #13284b;
    background-color: #f0f4fa;
    transform: translateY(-1px);
}

.options button.correct-selected {
    background-color: #d4efdf;
    color: #1a6b3c;
    border-color: #27ae60;
    font-weight: 600;
}

.options button.correct-selected .option-letter {
    background-color: #27ae60;
    color: white;
}

.options button.incorrect-selected {
    background-color: #fadbd8;
    color: #922b21;
    border-color: #c0392b;
    font-weight: 600;
}

.options button.incorrect-selected .option-letter {
    background-color: #c0392b;
    color: white;
}

/* Buttons */
.btn {
    background-color: #13284b;
    color: #fff;
    border: none;
    padding: 14px 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
    width: 100%;
    letter-spacing: 0.5px;
}

.btn:hover:not(:disabled) {
    background-color: #1a3560;
}

.btn:active:not(:disabled) {
    transform: scale(0.98);
}

.btn:disabled {
    background-color: #cccccc;
    color: #888888;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-resgate {
    text-decoration: none;
    display: block;
    text-align: center;
    background: #17345f;
    font-size: 20px;
    box-shadow: 0 3px 10px rgba(19, 40, 75, 0.16);
}

.btn-resgate:hover {
    background: #1d4072;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(19, 40, 75, 0.20);
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Transitions for screens */
.quiz-screen {
    animation: fadeIn 0.4s ease-out forwards;
}

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

/* New Elements */
.progress-bar {
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.progress-text {
    font-size: 14px;
    font-weight: 700;
    color: #13284b;
}

.progress-track {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #13284b;
    border-radius: 4px;
    transition: width 0.4s ease;
}


/* Tela final */
body.final-screen-active .container {
    padding-top: clamp(90px, 18vh, 170px);
}

#end-screen {
    max-width: 500px;
    margin: 0 auto;
    padding: 12px 2px 4px;
}

#end-screen h2 {
    margin: 8px 0 12px;
    font-size: 24px;
    line-height: 1.2;
}

.p-resgate {
    max-width: 450px;
    margin: 0 auto 16px;
    color: #2f343c;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 500;
}

.p-resgate strong {
    color: #111827;
    font-weight: 700;
}

.end-product-img {
    width: 110px;
    height: auto;
    border-radius: 10px;
    margin: 0 auto 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.end-timer {
    width: 100%;
    background-color: #fff9e9;
    color: #7b631e;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    margin: 0 auto 18px;
    font-weight: 600;
    border: 1px solid #f1dfaa;
}

.end-timer strong {
    color: #d9363e;
    font-size: 17px;
}

#end-screen .btn-resgate {
    width: 100%;
    margin: 0;
    padding: 15px 18px;
    border-radius: 9px;
    font-size: 18px;
    line-height: 1.2;
}

/* Modals */
.overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 99;
    backdrop-filter: blur(3px);
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    border-top: 4px solid #13284b;
    animation: popModal 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popModal {
    from { opacity: 0; transform: translate(-50%, -45%) scale(0.95); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.modal-title {
    font-weight: 800;
    color: #13284b;
    font-size: 18px;
    margin-bottom: 20px;
}

.dica-p {
    font-weight: 500;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.dica-errado {
    font-weight: 800;
    color: #c0392b;
    margin-bottom: 15px;
    font-size: 18px;
}

.back-btn {
    margin-top: 0;
}

/* Intro refinado */
.start-screen {
    text-align: center;
}

.start-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(19, 40, 75, 0.18);
    border-radius: 999px;
    background: #f5f7fb;
    color: #13284b;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 1.1px;
}

.start-title {
    margin: 2px auto 18px;
    color: #13284b;
    font-size: clamp(27px, 5.5vw, 36px);
    line-height: 1.1;
    letter-spacing: -0.8px;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 26px rgba(19, 40, 75, 0.13);
}

.start-subtitle {
    margin: 22px 0 8px;
    font-size: 21px;
    line-height: 1.25;
}

.start-copy {
    max-width: 500px;
    margin: 0 auto;
    color: #4a4f58;
    font-size: 16px;
    line-height: 1.6;
}

.start-copy strong {
    color: #13284b;
    font-weight: 700;
}

.limited-spots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 9px 12px;
    border-radius: 999px;
    background: #fff8e8;
    border: 1px solid #f0d99a;
    color: #735b19;
    font-size: 13px;
    font-weight: 700;
}

.limited-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c69822;
    box-shadow: 0 0 0 4px rgba(198, 152, 34, 0.12);
}

#start-quiz {
    margin-top: 18px;
    padding-top: 16px;
    padding-bottom: 16px;
}

@media (max-width: 640px) {
    body {
        background-color: #ffffff;
    }

    .container {
        padding: 0 12px 24px;
    }

    .header {
        padding: 10px 16px 8px;
    }

    .header img {
        width: min(220px, 76vw);
    }

    .content {
        padding: 16px;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(19, 40, 75, 0.07);
    }

    #end-screen {
        padding-top: 10px;
    }

    #end-screen h2 {
        font-size: 21px;
    }

    .p-resgate {
        font-size: 15px;
    }

    #end-screen .btn-resgate {
        font-size: 17px;
        padding: 14px 12px;
    }

    .start-title {
        margin-bottom: 14px;
    }

    .start-subtitle {
        font-size: 19px;
    }

    .start-copy {
        font-size: 15px;
    }
}

@media (max-height: 650px) {
    body.final-screen-active .container {
        padding-top: 55px;
    }
}
