:root {
    --primary-blue: #0A2540;
    --secondary-blue: #1E3A8A;
    --primary-green: #00A86B;
    --primary-green-hover: #008f5a;
    --light-green: #E6F4EA;
    --highlight-green: #4ADE80;
    --text-dark: #1F2937;
    --text-muted: #64748B;
    --text-footer: #94A3B8;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --header-height: 76px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

input, select, button, textarea {
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* Compensa o header fixo ao navegar pelas âncoras */
section[id],
#formulario {
    scroll-margin-top: var(--header-height);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-blue);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    padding: 8px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.top-bar-info span {
    margin-right: 20px;
}

.top-bar i {
    color: var(--primary-green);
    margin-right: 6px;
}

/* Main Header */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 46px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
    line-height: 1;
    white-space: nowrap;
}

.logo-accent {
    font-weight: 600;
    color: var(--primary-green);
}

.logo-sub {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-green);
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    font-size: 20px;
    color: var(--primary-blue);
    cursor: pointer;
}

.btn-header {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 168, 107, 0.2);
    transition: background-color 0.3s, transform 0.3s;
}

.btn-header:hover {
    background-color: var(--primary-green-hover);
    transform: translateY(-2px);
}

/* Hero Banner */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 60px 20px 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-badge {
    background-color: rgba(0, 168, 107, 0.2);
    color: var(--highlight-green);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--highlight-green);
}

.hero-subtitle {
    font-size: 17px;
    color: #CBD5E1;
    margin-bottom: 30px;
    font-family: 'Open Sans', sans-serif;
}

.hero-benefits-list {
    list-style: none;
    margin-bottom: 30px;
}

.hero-benefits-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    margin-bottom: 12px;
    color: #E2E8F0;
}

.hero-benefits-list i {
    color: var(--highlight-green);
    font-size: 18px;
}

/* Form Card */
.form-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    color: var(--text-dark);
}

.form-header {
    text-align: center;
    margin-bottom: 25px;
}

.form-title {
    font-size: 22px;
    color: var(--primary-blue);
    font-weight: 800;
}

.form-header p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 5px;
}

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

.form-group label,
.plan-fieldset legend {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-fieldset {
    border: none;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    pointer-events: none;
}

.form-control {
    width: 100%;
    padding: 14px 14px 14px 42px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.form-control:focus {
    border-color: var(--primary-green);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.15);
}

.form-control.is-invalid {
    border-color: #DC2626;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.plan-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.form-group .btn-plan-type {
    position: relative;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
}

.btn-plan-type input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.btn-plan-type span {
    display: block;
    padding: 12px 5px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    color: var(--text-dark);
    text-align: center;
    user-select: none;
}

.btn-plan-type input:checked + span {
    background-color: var(--light-green);
    border-color: var(--primary-green);
    color: var(--primary-green);
    font-weight: 700;
}

.btn-plan-type input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.35);
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-error {
    color: #DC2626;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.btn-submit {
    width: 100%;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 18px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 15px rgba(0, 168, 107, 0.3);
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: var(--primary-green-hover);
    transform: translateY(-2px);
}

.form-footer-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Confirmação do formulário */
.form-success {
    text-align: center;
    padding: 10px 0;
    outline: none;
}

.form-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background-color: var(--light-green);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.form-success p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 10px;
    font-family: 'Open Sans', sans-serif;
}

.form-success .form-success-hint {
    font-size: 13px;
    margin-bottom: 10px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 16px;
}

.btn-link:hover {
    color: var(--primary-blue);
}

/* Section Global */
section {
    padding: 80px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-subtitle {
    color: var(--primary-green);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 32px;
    color: var(--primary-blue);
    font-weight: 800;
    line-height: 1.3;
}

.section-desc {
    color: var(--text-muted);
    font-size: 16px;
    margin-top: 10px;
    font-family: 'Open Sans', sans-serif;
}

/* Hospitals Section */
.hospitals {
    background-color: var(--bg-light);
}

.hospital-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.hospital-card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s, box-shadow 0.3s;
}

.hospital-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.hospital-img {
    height: 180px;
    background-color: #CBD5E1;
    position: relative;
}

.hospital-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hospital-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--primary-green);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.hospital-body {
    padding: 20px;
}

.hospital-name {
    font-size: 18px;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.hospital-body p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.hospital-features {
    list-style: none;
    font-size: 13px;
    color: var(--text-dark);
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.hospital-features li {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hospital-features i {
    color: var(--primary-green);
}

/* Plans Pricing Section */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.plan-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 35px 30px;
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan-card.featured {
    border: 2px solid var(--primary-green);
    box-shadow: var(--shadow);
    transform: scale(1.02);
}

.plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-green);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.plan-name {
    font-size: 22px;
    color: var(--primary-blue);
    font-weight: 800;
    text-align: center;
}

.plan-desc {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.plan-features {
    list-style: none;
    margin: 25px 0;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid #F1F5F9;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features i {
    color: var(--primary-green);
}

/* FAQ Section */
.faq {
    background-color: var(--white);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-header {
    padding: 18px 22px;
    background-color: var(--bg-light);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    color: var(--primary-blue);
    list-style: none;
}

.accordion-header::-webkit-details-marker {
    display: none;
}

.accordion-header i {
    transition: transform 0.3s, color 0.3s;
}

.accordion-item[open] .accordion-header i {
    transform: rotate(180deg);
    color: var(--primary-green);
}

.accordion-body {
    padding: 18px 22px;
    background-color: var(--white);
    color: var(--text-muted);
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
}

/* Chamada final */
.cta-final {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 60px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-final-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-final-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
}

.cta-final-desc {
    color: #CBD5E1;
    font-size: 16px;
    margin-top: 10px;
    max-width: 600px;
    font-family: 'Open Sans', sans-serif;
}

.cta-final-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.btn-whatsapp,
.btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s, border-color 0.3s;
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #1EBE5A;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
}

.btn-outline:hover {
    border-color: var(--white);
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--highlight-green);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.footer-brand-icon {
    width: 30px;
    height: 35px;
    flex-shrink: 0;
}

.footer-brand-accent {
    font-weight: 600;
    color: var(--highlight-green);
}

.footer-col ul {
    list-style: none;
}

.footer-col p,
.footer-col li {
    font-size: 13px;
    color: var(--text-footer);
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-footer);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 12px;
    color: var(--text-footer);
}

.footer-bottom p + p {
    margin-top: 6px;
}

/* WhatsApp Floating */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s;
}

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

/* Responsivo */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
    }

    /* No celular o formulário vem logo após o título; os benefícios descem para baixo dele */
    .hero-container {
        gap: 0;
    }

    .hero-text {
        display: contents;
    }

    .hero-badge {
        justify-self: start;
    }

    .form-card {
        margin-bottom: 30px;
    }

    .hero-benefits-list {
        order: 1;
        margin-bottom: 0;
    }

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

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .cta-final-container {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 28px;
    }

    .cta-final-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .plan-card.featured {
        transform: none;
    }

    .top-bar-hours {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 20px;
    }

    .main-nav a {
        display: block;
        padding: 12px 0;
        font-size: 15px;
    }

    .main-nav li + li {
        border-top: 1px solid #F1F5F9;
    }
}

@media (max-width: 600px) {
    :root {
        --header-height: 70px;
    }

    .top-bar-container {
        justify-content: center;
    }

    .top-bar-secure {
        display: none;
    }

    .top-bar-info span {
        margin-right: 0;
    }

    .logo {
        gap: 8px;
    }

    .logo-icon {
        width: 30px;
        height: 35px;
    }

    .logo-main {
        font-size: 19px;
    }

    /* A barra do topo já mostra "Corretora Autorizada Prevent Senior" */
    .logo-sub {
        display: none;
    }

    .btn-header {
        padding: 10px 14px;
    }

    .btn-header span {
        display: none;
    }

    .hero {
        padding: 40px 16px 60px;
    }

    section {
        padding: 60px 16px;
    }

    .form-card {
        padding: 28px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .section-title,
    .cta-final-title {
        font-size: 24px;
    }

    .cta-final {
        padding: 50px 16px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .plan-card {
        padding: 30px 20px;
    }

    /* Espaço para o botão flutuante do WhatsApp não cobrir o texto do rodapé */
    .footer-bottom {
        padding-bottom: 70px;
    }

    .whatsapp-float {
        bottom: 18px;
        right: 18px;
        width: 54px;
        height: 54px;
        font-size: 28px;
    }
}
