/* Base Resets and Variables */
:root {
    --primary-color: #0b2545; /* Navy Blue for trust */
    --secondary-color: #d4af37; /* Gold for elegance/law */
    --accent-color: #133c55;
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #f7f9fc;
    --bg-white: #ffffff;
    --error-color: #d9534f;
    --success-color: #5cb85c;
    --border-color: #e0e0e0;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Enhancements for Elderly */
h1, h2, h3 {
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 20px;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
p { font-size: 1.1rem; margin-bottom: 15px; }

/* Header */
.header {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 20px 0;
    text-align: center;
    border-bottom: 4px solid var(--secondary-color);
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 30px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover, .btn-submit:hover {
    background-color: #c5a028;
    transform: translateY(-2px);
}

.ethical-warning {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 15px;
    font-style: italic;
}

/* General Sections */
.info-section, .sinais, .faq {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Grid Cards (Sinais) */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-color);
    text-align: center;
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.card p {
    font-size: 1.1rem;
    margin: 0;
}

/* Highlight Box */
.highlight-box {
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
    color: #856404;
    font-size: 1.1rem;
}

/* Raio-X Section */
.raiox-section {
    padding: 0 0 60px 0;
    background-color: var(--bg-light);
}

.raiox-box {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: -40px auto 0; /* Sobe um pouco por cima do hero */
    position: relative;
    border-top: 5px solid var(--secondary-color);
}

.raiox-box h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
}

.raiox-box > p {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Drop Zone (Scanner) */
.drop-zone {
    border: 3px dashed var(--primary-color);
    border-radius: 12px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    background-color: #f0f4f8;
    transition: background-color 0.3s, border-color 0.3s;
}

.drop-zone:hover, .drop-zone.dragover {
    background-color: #e2eaf1;
    border-color: var(--secondary-color);
}

.drop-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.drop-text {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

.scanner-loading {
    margin-top: 30px;
    text-align: center;
    position: relative;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color);
    animation: scan 2s infinite linear;
}

@keyframes scan {
    0% { top: 0; }
    50% { top: 100%; }
    100% { top: 0; }
}

.scanner-loading p {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
    position: relative;
    z-index: 2;
}

.scanner-resultado {
    margin-top: 30px;
    animation: fadeIn 0.5s;
}

.scanner-resultado ul {
    list-style: none;
    margin-top: 15px;
}

.scanner-resultado li {
    background: white;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.scanner-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.scanner-action-primary {
    background-color: #25D366;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.btn-secondary {
    background-color: #eef2f6;
    color: var(--primary-color);
    padding: 15px 24px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
}

.btn-secondary:hover {
    background-color: #e2eaf1;
}

.scanner-note {
    background: #f8f9fa;
    border-left: 4px solid var(--secondary-color);
    border-radius: 6px;
    color: var(--text-light);
    font-size: 0.98rem;
    margin-top: 16px;
    padding: 12px 14px;
}

/* Grids */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }
}

/* Lists */
.check-list, .doc-list {
    list-style: none;
}

.check-list li, .doc-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.doc-list li::before {
    content: "📄";
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.step {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
}

.step-num {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    margin: 0 auto 15px;
    font-size: 1.2rem;
    font-weight: bold;
}

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.faq-question.active::after {
    content: '-';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--text-light);
}

/* Multi-step Form */
.form-section {
    padding: 60px 0;
}

.form-wrapper {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    max-width: 800px;
    margin: 0 auto;
}

.form-step {
    display: none;
    animation: fadeIn 0.4s;
}

.form-step.active {
    display: block;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
}

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="month"],
select {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 37, 69, 0.1);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-group label, .consent-group label {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    font-size: 1.05rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"],
.consent-group input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 4px;
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn-next, .btn-prev, .btn-submit {
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-next {
    background-color: var(--primary-color);
    color: white;
    margin-left: auto;
}

.btn-next:hover {
    background-color: var(--accent-color);
}

.btn-prev {
    background-color: #e0e0e0;
    color: var(--text-main);
}

.btn-prev:hover {
    background-color: #cccccc;
}

.btn-submit {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* WhatsApp Float and alternative button */
.float-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
}

.float-wa:hover {
    transform: scale(1.1);
}

.btn-whatsapp:hover {
    transform: scale(1.05);
    background-color: #20bd59 !important;
}

.consent-group {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.consent-group label {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 40px 0;
}

.footer-ethical-notice {
    font-size: 0.85rem;
    color: #cccccc;
    margin-top: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mb-4 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }

/* Responsive Adjustments */
@media (max-width: 600px) {
    h1 { font-size: 1.8rem; }
    .hero { padding: 40px 0; }
    .btn-primary { width: 100%; padding: 15px 20px; }
    .form-actions { flex-direction: column-reverse; gap: 15px; }
    .btn-next, .btn-prev, .btn-submit { width: 100%; margin: 0; }
    .scanner-actions { flex-direction: column; }
    .scanner-action-primary, .btn-secondary { width: 100%; }
}
