:root {
    --bs-primary: #243782;
    --bs-secondary: #243782;
    --bs-success: #1f8f5b;
    --color-page-bg: #d3d3d3;
    --color-card: #ffffff;
    --color-heading: #243782;
    --color-text: #243782;
    --color-muted: #3d475f;
    --color-line: #e7e9ee;
    --color-footer: #ffffff;
    --card-shadow: 0 24px 56px rgba(0, 0, 0, 0.12);
    --soft-shadow: 0 10px 22px rgba(36, 55, 130, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', Arial, sans-serif;
    background-color: var(--color-page-bg);
    color: var(--color-text);
    line-height: 1.45;
}

a {
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--color-heading);
    font-weight: 700;
    letter-spacing: 0;
}

#splashScreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: var(--color-footer);
    color: var(--bs-secondary);
    text-align: center;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.45s ease-out, visibility 0.45s ease-out;
}

.spinner-border {
    color: var(--bs-primary) !important;
}

.site-main,
.site-footer {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.45s ease-in 0.2s;
}

body.loaded #splashScreen {
    visibility: hidden;
    opacity: 0;
}

body.loaded .site-main,
body.loaded .site-footer {
    visibility: visible;
    opacity: 1;
}

.site-main {
    flex: 1;
    display: grid;
    place-items: center;
    min-height: 0;
    padding: 32px 20px;
}

.quiz-container {
    width: 100%;
    max-width: 600px;
    padding: 40px;
    background-color: var(--color-card);
    border-radius: 14px;
    box-shadow: var(--card-shadow);
}

.progress {
    height: 9px;
    margin-bottom: 33px;
    background-color: #e8ebef;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--bs-primary);
    border-radius: inherit;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.progress-bar.is-complete {
    background-color: var(--bs-success);
}

.quiz-title {
    margin-bottom: 24px;
    text-align: center;
    font-size: 34px;
    line-height: 1.15;
}

#step2 .quiz-title {
    margin-bottom: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.service-card {
    width: 100%;
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 22px 18px;
    border: 2px solid #eeeeee;
    border-radius: 10px;
    background-color: #ffffff;
    color: var(--bs-primary);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.service-card:hover,
.service-card:focus-visible {
    transform: translateY(-3px);
    border-color: #dfe4ef;
    box-shadow: var(--soft-shadow);
}

.service-card:focus-visible {
    outline: 3px solid rgba(36, 55, 130, 0.18);
    outline-offset: 2px;
}

.service-icon {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--bs-primary);
    font-size: 30px;
    line-height: 1;
}

.service-label {
    margin: 0;
    color: var(--bs-primary);
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.15;
}

.selected-service-box {
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 17px;
    padding: 16px 24px;
    border: 1px solid #e0e5ec;
    border-radius: 5px;
    background-color: #fbfcfe;
    text-align: center;
}

.selected-service-box p {
    margin: 0;
    color: #2f3748;
    font-size: 16px;
}

.selected-service-box strong {
    display: block;
    margin-top: 7px;
    color: #2f3748;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 20px;
    line-height: 1.2;
}

.cta-note {
    margin: 0 0 17px;
    color: var(--color-muted);
    text-align: center;
    font-size: 14px;
}

.btn-whatsapp {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 18px;
    border: 0;
    border-radius: 7px;
    background-color: var(--bs-success);
    color: #ffffff;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
    transform: translateY(-1px);
    background-color: #198754;
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(25, 135, 84, 0.18);
}

.btn-whatsapp:focus-visible {
    outline: 3px solid rgba(31, 143, 91, 0.22);
    outline-offset: 3px;
}

.site-footer {
    background-color: var(--color-footer);
    color: #0b2b83;
    padding: 20px 0 21px;
    font-size: 12px;
}

.footer-inner {
    width: min(100% - 40px, 1140px);
    margin: 0 auto;
}

.footer-company {
    margin: 0;
}

.footer-company p {
    margin: 0 0 2px;
}

.site-footer a {
    color: #0b2b83;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    text-decoration: underline;
}

.footer-links {
    margin-top: 3px;
}

.footer-separator {
    height: 1px;
    margin: 10px -12px 8px;
    background-color: #c7d1e1;
}

.footer-copy {
    margin: 0;
    font-size: 14px;
}

.legal-main {
    flex: 1;
    padding: 48px 20px;
    background-color: var(--color-page-bg);
}

.legal-panel {
    width: min(100%, 920px);
    margin: 0 auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: var(--card-shadow);
}

.legal-panel h1 {
    margin-bottom: 24px;
    font-size: 34px;
    line-height: 1.15;
    text-align: center;
}

.legal-panel h2 {
    margin: 28px 0 10px;
    font-size: 22px;
}

.legal-panel h3 {
    margin: 24px 0 10px;
    font-size: 18px;
}

.legal-panel p,
.legal-panel li {
    color: #26304a;
    font-size: 15px;
}

.legal-panel a {
    color: var(--bs-primary);
    font-weight: 500;
    text-decoration: none;
}

.legal-panel a:hover,
.legal-panel a:focus-visible {
    text-decoration: underline;
}

.legal-panel ul {
    padding-left: 20px;
}

@media (max-width: 767px) {
    .site-main {
        min-height: auto;
        padding: 24px 16px 32px;
    }

    .quiz-container {
        padding: 30px 20px;
        border-radius: 13px;
    }

    .progress {
        margin-bottom: 28px;
    }

    .quiz-title {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .service-card {
        min-height: 112px;
    }

    .btn-whatsapp {
        font-size: 17px;
    }

    .footer-inner {
        width: min(100% - 32px, 1140px);
    }

    .footer-separator {
        margin-right: 0;
        margin-left: 0;
    }

    .footer-copy {
        font-size: 13px;
    }

    .legal-main {
        padding: 24px 16px 32px;
    }

    .legal-panel {
        padding: 28px 20px;
        border-radius: 13px;
    }

    .legal-panel h1 {
        font-size: 28px;
    }
}
