:root {
    --primary-color: var(--brand-primary);
    --secondary-color: var(--brand-success);
    --accent-color: var(--brand-primary);
    --background-color: var(--ui-background);
    --text-color: var(--ui-text-main);
    --neutral-bg: var(--ui-surface);
    --card-bg: var(--white);
    --border-color: var(--ui-border);
}

body {
    font-family: var(--font-main);
    background-color: var(--ui-background);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.05"><path d="M20,20 Q30,10 40,20 T60,20 T80,20" stroke="%231e40af" stroke-width="1" fill="none"/></svg>' );
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--theme-font-weight-heading);
}

.main-header {
    background-color: var(--theme-primary);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--theme-shadow-md);
}

.main-header h1 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: var(--theme-font-weight-heading);
    margin: 0;
    text-align: center;
}

.navbar-custom {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.navbar-custom .nav-link {
    font-weight: 500;
    color: var(--ui-text-muted);
    transition: var(--transition-fast);
    padding: 0.5rem 1rem;
    border-radius: calc(var(--theme-border-radius) / 2);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.navbar-custom .navbar-brand,
.navbar-custom .navbar-toggler {
    min-height: 44px;
}

.navbar-custom .nav-link:hover {
    color: var(--brand-primary);
    background-color: rgba(30, 64, 175, 0.05);
}

.navbar-custom .nav-link.active {
    color: var(--brand-primary);
}

.btn-question {
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 15px 20px;
    margin: 8px 0;
    border-radius: calc(var(--theme-border-radius) * 0.75);
    text-align: left;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-question:hover {
    background-color: var(--secondary-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.card {
    border: 1px solid var(--ui-border);
    border-radius: var(--theme-border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.stats-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--theme-border-radius);
    padding: 25px;
    margin-bottom: 20px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-left: 5px solid var(--primary-color);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stats-card.vaccine-stats {
    border-left-color: var(--accent-color);
}

.stats-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(47, 93, 98, 0.1);
    border-radius: var(--theme-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.stats-card:hover .stats-icon-wrapper {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.stats-card.vaccine-stats .stats-icon-wrapper {
    background-color: rgba(121, 184, 209, 0.1);
    color: var(--accent-color);
}

.stats-card.vaccine-stats:hover .stats-icon-wrapper {
    background-color: var(--accent-color);
    color: white;
}

.stats-content {
    flex-grow: 1;
}

.stats-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color);
    display: block;
    line-height: 1;
}

.stats-label {
    color: var(--gray-500);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

.stats-subtext {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.auth-container {
    max-width: 500px;
    margin: 50px auto;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: calc(var(--theme-border-radius) * 0.75);
    padding: 40px;
}

.form-control {
    border: 1px solid var(--border-color);
    border-radius: calc(var(--theme-border-radius) / 3);
    padding: 10px 12px;
}

.btn-primary-custom {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
    padding: 10px 20px;
    border-radius: calc(var(--theme-border-radius) * 0.75);
    font-weight: 500;
    transition: var(--transition-fast);
}

.btn-primary-custom:hover {
    background-color: var(--blue-700);
    border-color: var(--blue-700);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--elevation-md);
}

.main-content {
    min-height: calc(100vh - 250px);
}

.main-content.p-0 {
    padding-top: 0 !important;
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--neutral-bg) 0%, var(--blue-50) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    opacity: 0.1;
    transform: translate(150px, -150px);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 20px;
}

.text-accent {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 40px;
    max-width: 600px;
}

/* Feature Cards */
.feature-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: calc(var(--theme-border-radius) * 1.33);
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(47, 93, 98, 0.1);
    color: var(--primary-color);
    border-radius: var(--theme-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

/* Section Titles */
.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    margin-bottom: 3rem;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* SBIm Highlight */
.sbim-highlight {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    border-radius: calc(var(--theme-border-radius) * 2);
}

.sbim-logo-placeholder {
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: 2px;
    opacity: 0.9;
}

/* Footer Custom */
.footer-custom {
    background-color: var(--neutral-bg);
    border-top: 1px solid var(--border-color);
    padding: 15px 0;
    margin-top: 50px;
}

/* ── Checkboxes e Radios de Alto Contraste e Acessibilidade ─────────── */
.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem;
    min-height: 1.25rem;
    border: 2px solid #475569;
    background-color: #ffffff;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 0.15rem;
    vertical-align: middle;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-input:hover {
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.18);
}

.form-check-input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.28);
    outline: none;
}

.form-check-input:checked {
    background-color: #0284c7;
    border-color: #0284c7;
}

.form-check-label {
    cursor: pointer;
    vertical-align: middle;
    padding-left: 0.25rem;
    user-select: none;
}

[data-bs-theme="dark"] .form-check-input {
    border-color: #94a3b8;
    background-color: #1e293b;
}

[data-bs-theme="dark"] .form-check-input:hover {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

[data-bs-theme="dark"] .form-check-input:checked {
    background-color: #0284c7;
    border-color: #38bdf8;
}

/* Avaliação assistida — compartilhada por Web Desktop e Web Mobile. */
.feedback-assisted {
    border: 0;
    margin: 0 0 var(--space-6);
    padding: 0;
}

.feedback-assisted-group {
    display: grid;
    gap: var(--space-2);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feedback-assisted-option {
    align-items: flex-start;
    background: var(--theme-surface);
    border: 1px solid var(--ui-border);
    border-radius: var(--theme-border-radius);
    cursor: pointer;
    display: flex;
    gap: var(--space-2);
    min-height: 44px;
    padding: var(--space-3);
    transition: border-color var(--motion-fast), background-color var(--motion-fast);
}

.feedback-assisted-option:has(input:checked) {
    background: var(--blue-50);
    border-color: var(--theme-primary);
}

.feedback-assisted-option:focus-within {
    box-shadow: var(--focus-ring);
}

@media (max-width: 767.98px) {
    .feedback-assisted-group {
        grid-template-columns: 1fr;
    }
}

