/* ============================================================
   AGENTE.PT BRAND TOKENS (from elementor-kit-13)
   green:    #79B11F  — buttons, accents, icons, tagline
   navy:     #003781  — headings, H1 text
   page-bg:  #E9E9E5  — all section backgrounds
   white:    #FFFFFF  — cards, form
   muted:    #676767  — body text, subtitles
   body:     #333333  — dark text
   ============================================================ */

:root {
  --green:      #79B11F;
  --green-dark: #5d8a17;
  --green-lite: #8ec62a;
  --navy:       #003781;
  --navy-dark:  #002660;
  --page-bg:    #E9E9E5;
  --white:      #FFFFFF;
  --text:       #333333;
  --muted:      #676767;
  --border:     #c8c8c4;
  --shadow:     0 18px 45px rgba(0,55,129,.10);
  --radius:     20px;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--page-bg);
  line-height: 1.5;
}
a { color: var(--green) }
img { max-width: 100%; display: block }
h1,h2,h3 { font-family: 'Montserrat', Arial, sans-serif; margin: 0; color: var(--navy) }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto }

/* ===== HERO — dark navy overlay, light bg image ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 28px 0 28px;
  background:
    linear-gradient(
      to bottom right,
      rgba(0,38,96,0.90) 0%,
      rgba(0,55,129,0.84) 55%,
      rgba(0,38,96,0.90) 100%
    ),
    url('hero_background.webp') center 40% / cover no-repeat;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 62% 50%, rgba(121,177,31,.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 72px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.logo-link { display: inline-block; margin-bottom: 100px; margin-top: 14px }
.hero-logos { display: flex; align-items: center; gap: 18px }
.hero-logo { height: auto }
.hero-logo-1 { width: 160px }

.hero-tagline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 14px;
}
h1 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.12;
  font-weight: 700;
  color: #fff;
  max-width: 560px;
}
.hero-subtitle {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,.82);
  max-width: 560px;
  margin: 16px 0 0;
  font-weight: 300;
}
.trust-list { display: flex; flex-direction: column; gap: 11px; margin-top: 22px }
.trust-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.92);
  margin-top: -1px;
}
.check-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px }

/* ===== FORM CARD ===== */
.form-card {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0,55,129,.10);
  border-radius: var(--radius);
  box-shadow: 0 28px 64px rgba(0,55,129,.18), 0 2px 8px rgba(0,0,0,.06);
  padding: 22px 20px 18px;
}
.form-card h2 {
  text-align: center; font-size: 17px; line-height: 1.25;
  margin-bottom: 36px; margin-top: 6px; font-weight: 700; color: var(--navy);
}
form { display: grid; gap: 4px }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.form-group { display: grid; gap: 4px }
label { font-weight: 600; font-size: 11px; color: var(--navy); letter-spacing: .4px; text-transform: uppercase }
input, select {
  width: 100%; height: 34px;
  border: 1px solid var(--border); border-radius: 8px;
  background: #f9f9f7; padding: 0 12px;
  font: 400 13px 'Montserrat', Arial, sans-serif;
  color: var(--text); outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus, select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(121,177,31,.14);
  background: #fff;
}
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23003781' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-color: #f9f9f7;
  padding-right: 34px; cursor: pointer;
}
#datas-nascimento { display: grid; gap: 10px }
.datas-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px }
.datas-row.cols-1 { grid-template-columns: 1fr }
.datas-row.cols-2,.datas-row.cols-4 { grid-template-columns: repeat(2, minmax(0,1fr)) }
.datas-row.cols-3,.datas-row.cols-3b { grid-template-columns: repeat(3, minmax(0,1fr)) }
input[type="date"] {
  width: 100%; height: 34px;
  border: 1px solid var(--border); border-radius: 8px;
  background: #f9f9f7; padding: 0 12px;
  font: 400 13px 'Montserrat', Arial, sans-serif;
  color: var(--text); outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
input[type="date"]:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(121,177,31,.14); background: #fff }
input[type="date"]::-webkit-calendar-picker-indicator { opacity: .5; cursor: pointer }

.checkbox-group { display: grid; grid-template-columns: 20px 1fr; gap: 6px; align-items: start; margin-top: 0px }
.checkbox-group input { width: 16px; height: 16px; margin: 2px 0 0; padding: 0; accent-color: var(--green) }
.checkbox-group label { font-weight: 400; font-size: 11.5px; line-height: 1.4; color: var(--muted); text-transform: none; letter-spacing: 0 }
.error-message { min-height: 14px; font-size: 11.5px; color: #c0392b; margin-top: -4px }
.form-group.error input,.form-group.error select { border-color: #c0392b }

.submit-btn,.primary-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50px;
  background: var(--green); color: #fff;
  text-decoration: none; font-weight: 700; cursor: pointer;
  transition: .22s ease; font-family: 'Montserrat', Arial, sans-serif; letter-spacing: .2px;
}
.submit-btn { height: 44px; width: 100%; font-size: 14px; margin-top: 8px }
.primary-btn { height: 48px; padding: 0 32px; font-size: 15px }
.submit-btn:hover,.primary-btn:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(121,177,31,.32) }
.submit-btn:disabled { opacity: .7; cursor: not-allowed; transform: none }

/* ===== SECTIONS ===== */
.section { padding: 80px 0 }
.section h2 { font-size: 32px; line-height: 1.15; font-weight: 700; color: var(--navy); margin-bottom: 14px }
.section-intro { font-size: 15px; line-height: 1.65; max-width: 700px; margin: 0 auto 50px; color: var(--muted); font-weight: 300 }

/* ===== COBERTURAS — white bg ===== */
.plans-section { background: var(--white); text-align: center }
.plans-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px }
.plan-card {
  padding: 30px 20px 26px; border-radius: var(--radius);
  background: var(--page-bg); text-align: center;
  transition: transform .22s ease, box-shadow .22s ease;
}
.plan-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,55,129,.10) }
.plan-icon-wrap {
  width: 68px; height: 68px; border-radius: 16px;
  background: rgba(121,177,31,.12); color: var(--green);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.plan-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 10px; font-weight: 700 }
.plan-card p { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0; font-weight: 300 }

/* ===== STEPS — page-bg ===== */
.steps-section { background: var(--page-bg); text-align: center }
.steps-section h2 { margin-bottom: 48px }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; position: relative }
.steps-grid::before {
  content: ''; position: absolute; top: 32px;
  left: calc(16.66% + 18px); right: calc(16.66% + 18px);
  height: 2px; background: linear-gradient(to right, var(--green), rgba(121,177,31,.15)); z-index: 0;
}
.step-card {
  padding: 28px 20px 24px; border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow);
  text-align: center; position: relative; z-index: 1;
}
.step-number {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font: 700 20px 'Montserrat', Arial, sans-serif;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; box-shadow: 0 6px 18px rgba(0,55,129,.22);
}
.step-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px }
.step-card p { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0; font-weight: 300 }

/* ===== TEAM — white ===== */
.team-section { background: var(--white); text-align: center }
.story-label {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--green); background: rgba(121,177,31,.10);
  border-radius: 50px; padding: 5px 14px; margin-bottom: 10px;
}
.team-section h2 { font-size: 28px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 0 }
.team-section .section-intro { margin-top: 16px }
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin: 38px 0 0 }
.team-card {
  background: var(--page-bg); border-radius: var(--radius);
  padding: 26px 16px 22px; text-align: center;
  transition: transform .22s ease, box-shadow .22s ease;
}
.team-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,55,129,.10) }
.team-photo-wrap {
  width: 88px; height: 88px; border-radius: 50%;
  overflow: hidden; margin: 0 auto 14px;
  border: 3px solid rgba(121,177,31,.28);
}
.team-photo { width: 100%; height: 100%; object-fit: cover; display: block }
.team-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin: 0 0 5px }
.team-role { font-size: 12px; color: var(--muted); font-weight: 600; margin: 0; line-height: 1.4 }
.team-quote {
  margin: 40px auto 0; max-width: 720px;
  font-size: 15px; line-height: 1.8;
  color: var(--muted); font-weight: 300; font-style: italic;
  border-left: 3px solid var(--green); padding: 4px 0 4px 20px; text-align: left;
}
.team-cta { margin-top: 34px }

/* ===== REVIEWS — page-bg ===== */
.reviews-section { background: var(--page-bg); text-align: center }
.reviews-section h2 { font-size: 28px; text-transform: uppercase; letter-spacing: .5px }
.reviews-section .section-intro { margin-top: 14px }
.reviews-widget { margin-top: 36px; min-height: 180px }

/* ===== CTA — navy gradient ===== */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 70px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px }
.cta-text h2 { font-size: 27px; color: #fff; font-weight: 700; margin-bottom: 10px }
.cta-text p { font-size: 15px; color: rgba(255,255,255,.72); max-width: 560px; line-height: 1.65; font-weight: 300; margin: 0 }
.cta-btn {
  background: var(--green); color: #fff; flex-shrink: 0;
  font-size: 15px; height: 50px; padding: 0 34px;
  box-shadow: 0 8px 28px rgba(121,177,31,.30);
}
.cta-btn:hover { background: var(--green-dark); transform: translateY(-1px) }

/* ===== FOOTER ===== */
.footer { background: var(--navy-dark); color: rgba(255,255,255,.78); padding: 56px 0 40px; font-size: 13.5px }
.footer-top { display: grid; grid-template-columns: 1fr 1.1fr 1.6fr; gap: 48px; align-items: start }
.footer-top .footer-col:last-child { padding-left: 40px; border-left: 1px solid rgba(255,255,255,.08) }
.footer-col h3 { color: #fff; font-size: 13px; font-weight: 700; margin: 0 0 16px; letter-spacing: .3px; text-transform: uppercase }
.footer-logo { width: 120px; height: auto; margin-bottom: 12px; background: #fff; border-radius: 8px; padding: 5px 8px }
.footer-brand { font-weight: 700; color: #fff; font-size: 14px; margin: 0 0 10px }
.footer-col p { margin: 0 0 6px; color: rgba(255,255,255,.65); line-height: 1.55 }
.footer-col a { color: rgba(255,255,255,.80); text-decoration: none }
.footer-col a:hover { color: #fff; text-decoration: underline }
.footer-col a.footer-email,
.footer-col a.footer-tel { font-weight: 700; color: rgba(255,255,255,.80) }
.footer-col a.footer-email:hover,
.footer-col a.footer-tel:hover { color: #fff; text-decoration: none }
.footer-note { font-size: 11px !important; color: rgba(255,255,255,.38) !important; display: block; line-height: 1.3; margin-top: 1px }
.footer-legal { font-size: 12px !important; line-height: 1.6 !important; color: rgba(255,255,255,.46) !important }
.footer-privacy-link { font-weight: 700; font-size: 13px; color: rgba(255,255,255,.80) !important }
.footer-schedule { display: grid; gap: 5px }
.schedule-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: rgba(255,255,255,.70);
  padding: 5px 10px; border-radius: 6px; background: rgba(255,255,255,.06);
}
.schedule-row span:last-child { font-weight: 600; color: #fff; white-space: nowrap; margin-left: 12px }
.schedule-row.closed { opacity: .38 }
.schedule-row.closed span:last-child { font-weight: 400; color: rgba(255,255,255,.5) }

/* ===== THANK YOU ===== */
.thankyou-body { background: var(--page-bg) }
.thankyou-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px }
.thankyou-card { width: min(700px,100%); background: var(--white); border-radius: 24px; box-shadow: var(--shadow); text-align: center; padding: 48px 36px }
.thankyou-logo-wrap { display: flex; justify-content: center; width: 100%; margin-bottom: 32px }
.thankyou-logo { width: 150px; height: auto; border-radius: 8px }
.thankyou-card h1 {
  font-size: 25px;
  margin: 0 auto 14px;
  color: var(--navy);
  text-align: center;
  max-width: 100%;
}
.thankyou-card p { color: var(--muted); margin: 8px 0; font-size: 15px; font-weight: 300; line-height: 1.6 }
.thankyou-contact { margin: 20px 0 26px; padding: 18px 22px; background: var(--page-bg); border-radius: 14px }
.back-link {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green); color: #fff; text-decoration: none;
  border-radius: 50px; height: 48px; padding: 0 30px;
  font-weight: 700; font-size: 15px;
  font-family: 'Montserrat', Arial, sans-serif; transition: .2s ease;
}
.back-link:hover { background: var(--green-dark); transform: translateY(-1px) }

/* ===== RESPONSIVE ===== */
@media (max-width: 1050px) {
  .hero { min-height: auto; padding: 36px 0 56px }
  .hero-grid { grid-template-columns: 1fr; gap: 36px }
  .logo-link { margin-bottom: 64px }
  .plans-grid { grid-template-columns: 1fr 1fr }
  .steps-grid::before { display: none }
  .team-grid { grid-template-columns: repeat(3,1fr); gap: 16px }
  .cta-inner { flex-direction: column; text-align: center }
  .cta-text p { margin: 0 auto }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px }
}
@media (max-width: 720px) {
  .form-group label { display: none }
  .checkbox-group label { display: inline }
  .container { width: min(100% - 28px, 1120px) }
  .form-row { grid-template-columns: 1fr; gap: 8px }
  #datas-nascimento { gap: 8px }
  .datas-row,.datas-row.cols-1,.datas-row.cols-2,.datas-row.cols-3,.datas-row.cols-4,.datas-row.cols-3b { grid-template-columns: 1fr; gap: 8px }
  .hero { padding-top: 28px }
  h1 { font-size: 24px; line-height: 1.25 }
  .hero-subtitle { font-size: 14.5px }
  .trust-list { display: none }
  .logo-link { margin-bottom: 72px }
  .hero-logo-1 { width: 140px }
  .form-card { padding: 24px 16px; border-radius: 16px }
  .form-card h2 { font-size: 17px; margin-bottom: 20px }
  input,select { text-align: center; font-size: 13.5px; font-weight: 300 }
  input::placeholder { color: #999 }
  select { text-align-last: center }
  .form-group { margin-top: -2px }
  .section { padding: 52px 0 }
  .section h2 { font-size: 22px }
  .plans-grid { grid-template-columns: 1fr }
  .section-intro { font-size: 14px; margin-bottom: 28px }
  .steps-grid { grid-template-columns: 1fr }
  .primary-btn { height: 46px; font-size: 14px; padding: 0 22px }
  .team-grid { grid-template-columns: repeat(2,1fr); gap: 10px }
  .team-quote { font-size: 13.5px; padding-left: 14px }
  .cta-section { padding: 52px 0 }
  .cta-text h2 { font-size: 21px }
  .footer-top { grid-template-columns: 1fr; gap: 26px }
  .footer-logo { margin: 0 }
  .thankyou-card { padding: 32px 16px }
  .thankyou-card h1 {
  font-size: 20px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}
}
/* ── Google Badge ─────────────────────────────── */
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 8px 16px;
  backdrop-filter: blur(4px);
  text-decoration: none;
  cursor: pointer;
}
.google-badge:hover { background: rgba(255,255,255,0.22); }
.google-badge-icon { width: 20px; height: 20px; flex-shrink: 0; }
.google-badge-stars { display: flex; align-items: center; gap: 5px; }
.google-badge-score { color: #fff; font-weight: 700; font-size: 15px; }
.google-badge-stars-icons { color: #FFC107; font-size: 14px; letter-spacing: 1px; }
.google-badge-divider { width: 1px; height: 18px; background: rgba(255,255,255,0.4); }
.google-badge-text { color: rgba(255,255,255,0.9); font-size: 13px; font-weight: 500; }

/* ── Insurers Carousel ────────────────────────── */
.insurers-section {
  background: #1a2340;
  padding: 0;
  overflow: hidden;
}
.logos-track-wrap {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.logos-track {
  display: flex;
  width: max-content;
  animation: scroll-logos 40s linear infinite;
  animation-delay: 0s;
  will-change: transform;
}
.logos-track:hover { animation-play-state: paused; }
.logos-set { display: flex; align-items: center; flex-shrink: 0; }
.logo-slide { display: flex; align-items: center; justify-content: center; padding: 20px 28px; flex-shrink: 0; }
.logo-slide img { height: 44px; width: auto; max-width: 110px; object-fit: contain; opacity: 0.7; transition: opacity 0.2s; }
.logo-slide:hover img { opacity: 1; }
@keyframes scroll-logos {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 767px) {
  .logo-slide { padding: 16px 20px; }
  .logo-slide img { height: 36px; }
}

/* ── FAQ Section ──────────────────────────────── */
.faq-section { background: #fff; padding-top: 0px;}
.faq-section h2 { text-align: center; margin-bottom: 36px; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid #e4e8ed; border-radius: 10px; overflow: hidden; background: #fafbfc; }
.faq-item[open] { background: #fff; }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; font-size: 15px; font-weight: 600; color: #1a2340;
  cursor: pointer; list-style: none; gap: 12px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: ''; display: block; width: 18px; height: 18px; flex-shrink: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2379B11F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: contain; transition: transform 0.2s; }
.faq-item[open] .faq-question::after { transform: rotate(180deg); }
.faq-answer { padding: 0 22px 18px; font-size: 14px; color: #555; line-height: 1.7; }
.faq-answer p { margin: 0; }

/* ── Sticky Mobile CTA ────────────────────────── */
.sticky-cta-mobile {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  padding: 12px 16px; background: rgba(26,35,64,0.97);
  box-shadow: 0 -2px 16px rgba(0,0,0,0.2);
  transform: translateY(100%); transition: transform 0.3s ease;
}
.sticky-cta-mobile.visible { transform: translateY(0); }
.sticky-cta-btn {
  display: block; width: 100%; text-align: center;
  background: #79B11F; color: #fff; font-size: 15px; font-weight: 700;
  padding: 14px 20px; border-radius: 8px; text-decoration: none;
}
@media (max-width: 767px) {
  .sticky-cta-mobile { display: block; }
  .footer { padding-bottom: 80px; }
}
@media (min-width: 768px) { .sticky-cta-mobile { display: none !important; } }