/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #F8F9FA;
    color: #49275C;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ===========================
   HEADER
=========================== */
.header {
    background-color: #49275C;
    padding: 32px 20px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    border: 3px solid rgba(199, 154, 225, 0.15);
    border-radius: 50%;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -30px;
    width: 140px;
    height: 140px;
    border: 3px solid rgba(199, 154, 225, 0.1);
    border-radius: 50%;
}

.header-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(199, 154, 225, 0.15);
    border: 2px solid rgba(199, 154, 225, 0.4);
    color: #C79AE1;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    margin-bottom: 16px;
}

.header h1 {
    color: white;
    font-size: clamp(22px, 6vw, 28px);
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.header h1 em {
    color: #C79AE1;
    font-style: normal;
    display: block;
}

.header-sub {
    color: rgba(199, 154, 225, 0.75);
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

/* ===========================
   STICKY PROGRESS
=========================== */
.progress-bar-wrapper {
    background: white;
    border-bottom: 3px solid #49275C;
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 200;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
}

.progress-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8749AA;
}

.progress-count {
    font-size: 12px;
    font-weight: 900;
    color: #49275C;
}

.progress-track {
    height: 7px;
    background: #F0E6F8;
    border: 2px solid #49275C;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8749AA, #49275C);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   MAIN CONTAINER
=========================== */
.container {
    max-width: 520px;
    margin: 0 auto;
    padding: 20px 16px 48px;
}

/* ===========================
   QUESTION CARD
=========================== */
.question-card {
    background: white;
    border: 3px solid #49275C;
    box-shadow: 6px 6px 0 #49275C;
    margin-bottom: 20px;
    padding: 20px 18px 18px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.question-card.answered {
    border-color: #8749AA;
    box-shadow: 6px 6px 0 #8749AA;
}

.question-num {
    display: inline-block;
    background: #49275C;
    color: white;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    margin-bottom: 12px;
}

.question-card.answered .question-num {
    background: #8749AA;
}

.question-text {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: #49275C;
    margin-bottom: 14px;
}

/* ===========================
   OPTIONS
=========================== */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.opt-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 12px;
    border: 2.5px solid #49275C;
    background: #F8F9FA;
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.opt-label:active {
    transform: translate(2px, 2px);
}

.opt-label input[type="radio"] {
    display: none;
}

.opt-chip {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: #49275C;
    color: white;
    font-size: 11px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.opt-text {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.45;
    color: #49275C;
    transition: color 0.15s ease;
    padding-top: 2px;
}

.opt-label.selected {
    background: #49275C;
    border-color: #49275C;
    box-shadow: 3px 3px 0 #8749AA;
}

.opt-label.selected .opt-chip {
    background: #C79AE1;
    color: #49275C;
}

.opt-label.selected .opt-text {
    color: white;
}

/* ===========================
   SUBMIT AREA
=========================== */
.submit-area {
    margin-top: 8px;
}

.btn-calcular {
    width: 100%;
    padding: 17px 24px;
    background: #8749AA;
    color: white;
    border: 3px solid #49275C;
    box-shadow: 6px 6px 0 #49275C;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-calcular:disabled {
    background: #D4BAE6;
    border-color: #B89CC8;
    box-shadow: 3px 3px 0 #B89CC8;
    color: rgba(73, 39, 92, 0.5);
    cursor: not-allowed;
}

.btn-calcular:not(:disabled):hover {
    background: #49275C;
}

.btn-calcular:not(:disabled):active {
    transform: translate(4px, 4px);
    box-shadow: 2px 2px 0 #49275C;
}

.status-msg {
    text-align: center;
    font-size: 11.5px;
    font-weight: 700;
    color: #8749AA;
    margin-top: 10px;
    letter-spacing: 0.3px;
}

.status-msg.done {
    color: #49275C;
}

/* ===========================
   RESULTS SCREEN
=========================== */
#tela-resultado {
    display: none;
}

.resultado-hero {
    text-align: center;
    padding: 28px 0 20px;
}

.resultado-hero .pill {
    display: inline-block;
    background: #8749AA;
    color: white;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 16px;
    border: 2px solid #49275C;
    margin-bottom: 12px;
}

.resultado-hero h2 {
    font-size: clamp(22px, 6vw, 28px);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.15;
    color: #49275C;
}

/* ===========================
   DOMINANT PROFILE CARD
=========================== */
.card-dominante {
    background: #C79AE1;
    border: 3px solid #49275C;
    box-shadow: 8px 8px 0 #49275C;
    padding: 24px 20px 22px;
    margin-bottom: 28px;
}

.dominante-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #49275C;
    color: white;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    margin-bottom: 16px;
}

.dominante-nome {
    font-size: clamp(24px, 7vw, 30px);
    font-weight: 900;
    text-transform: uppercase;
    color: #49275C;
    line-height: 1;
    margin-bottom: 4px;
}

.dominante-sub {
    font-size: 13px;
    font-weight: 700;
    color: #49275C;
    opacity: 0.75;
    margin-bottom: 14px;
}

.dominante-pct {
    font-size: 60px;
    font-weight: 900;
    color: #49275C;
    line-height: 1;
}

.dominante-pct sup {
    font-size: 26px;
    vertical-align: super;
    line-height: 0;
}

.divider {
    height: 3px;
    background: #49275C;
    margin: 18px 0;
}

.secao-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #49275C;
    opacity: 0.65;
    margin-bottom: 6px;
}

.secao-texto {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.65;
    color: #49275C;
    margin-bottom: 18px;
}

.secao-texto:last-child {
    margin-bottom: 0;
}

/* ===========================
   PROFILE BARS
=========================== */
.barras-section {
    background: white;
    border: 3px solid #49275C;
    box-shadow: 6px 6px 0 #49275C;
    padding: 20px 18px;
    margin-bottom: 20px;
}

.barras-titulo {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #49275C;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid #F0E6F8;
}

.barra-row {
    margin-bottom: 16px;
}

.barra-row:last-child {
    margin-bottom: 0;
}

.barra-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.barra-label {
    font-size: 12px;
    font-weight: 800;
    color: #49275C;
    text-transform: uppercase;
}

.barra-label span {
    font-weight: 600;
    font-size: 11px;
    opacity: 0.7;
    text-transform: none;
}

.barra-pct {
    font-size: 15px;
    font-weight: 900;
    color: #49275C;
}

.barra-track {
    height: 18px;
    background: #F0E6F8;
    border: 2.5px solid #49275C;
    overflow: hidden;
}

.barra-fill {
    height: 100%;
    background: #8749AA;
    width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.barra-fill.top {
    background: #49275C;
}

/* ===========================
   RESTART BTN
=========================== */
.btn-refazer {
    width: 100%;
    padding: 15px 24px;
    background: white;
    color: #49275C;
    border: 3px solid #49275C;
    box-shadow: 5px 5px 0 #49275C;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-refazer:hover {
    background: #F0E6F8;
}

.btn-refazer:active {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 #49275C;
}

/* ===========================
   FOOTER
=========================== */
.footer {
    text-align: center;
    padding: 20px 16px;
    background: #49275C;
    border-top: 3px solid #8749AA;
}

.footer p {
    color: rgba(199, 154, 225, 0.7);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer strong {
    color: #C79AE1;
}

/* ===========================
   ANIMATIONS
=========================== */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeSlideUp 0.5s ease forwards;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (min-width: 480px) {
    .question-text { font-size: 15px; }
    .opt-text      { font-size: 13px; }
}
