/*
 * LP Campanha Maio — Plano PJ Unimed Porto Alegre
 * 20% OFF por 3 meses · layout final maio/2025
 */

:root {
  --green-dark: #004a32;
  --green: #00524d;
  --green-mid: #006b52;
  --lime: #b1d249;
  --lime-bright: #c5d930;
  --lime-bg: #d8eaa0;
  --lime-soft: #eef5d4;
  --white: #fff;
  --text: #1a1a1a;
  --muted: #4a5568;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.campanha-maio {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1100px, 100% - 2.5rem);
  margin: 0 auto;
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}
.navbar__logo {
  height: 48px;
  width: auto;
}
@media (max-width: 520px) {
  .navbar__logo { height: 40px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--transition), filter var(--transition), box-shadow var(--transition);
}
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.btn--dark {
  background: var(--green-dark);
  color: var(--white);
  padding: 0.75rem 1.35rem;
  font-size: 0.72rem;
}
.btn--lime {
  background: var(--lime);
  color: var(--green-dark);
  padding: 0.9rem 1.75rem;
  font-size: 0.8rem;
}
.btn--lime-outline {
  background: var(--lime);
  color: var(--green-dark);
  padding: 1rem 2rem;
  font-size: 0.85rem;
  width: 100%;
  max-width: 420px;
}
.btn--white {
  background: var(--white);
  color: var(--green-dark);
  padding: 0.9rem 1.75rem;
  font-size: 0.8rem;
}

/* ── Hero — banner exportado do mockup (texto já na arte) ── */
.hero {
  margin: 0;
  padding: 0;
  background: #e4ead0;
  line-height: 0;
}
.hero__banner {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Seção PJ (empresa pequena) ── */
.section-pj {
  background: var(--green-dark);
  color: var(--white);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.section-pj h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  max-width: 520px;
}
.pj-box {
  background: var(--lime);
  color: var(--green-dark);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.55;
  margin-bottom: 1.75rem;
  max-width: 720px;
}
.pj-box strong { font-weight: 800; }

/* ── Benefícios ── */
.section-benefits {
  background: var(--white);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.section-benefits h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--green-dark);
  text-transform: uppercase;
}
.section-benefits h2 .hl {
  color: var(--green);
}
.section-benefits__intro {
  color: var(--muted);
  max-width: 680px;
  margin: 0 0 2rem;
  font-size: 1rem;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
@media (max-width: 960px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .benefits-grid { grid-template-columns: 1fr; }
}
.benefit-card {
  background: var(--white);
  border: 2px solid var(--lime-soft);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.benefit-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.85rem;
  color: var(--green-dark);
}
.benefit-card p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-dark);
  line-height: 1.35;
}

/* ── Campanha (20% + período) ── */
.section-campaign {
  background: var(--green-dark);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  text-align: center;
}
.campaign-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--lime);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  text-align: left;
}
@media (max-width: 640px) {
  .campaign-box { grid-template-columns: 1fr; }
}
.campaign-box__offer,
.campaign-box__period {
  padding: clamp(1.25rem, 3vw, 2rem);
  color: var(--green-dark);
}
.campaign-box__offer {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 800;
  line-height: 1.25;
  border-right: 2px solid rgba(0, 74, 50, 0.12);
}
@media (max-width: 640px) {
  .campaign-box__offer {
    border-right: none;
    border-bottom: 2px solid rgba(0, 74, 50, 0.12);
  }
}
.campaign-box__period-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.campaign-box__dates {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  line-height: 1.5;
}

/* ── Consultoria ── */
.section-help {
  background: var(--green-mid);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  text-align: center;
}
.section-help h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.25;
}
.section-help h2 .hl {
  color: var(--lime);
}
.help-box {
  background: var(--green-dark);
  border: 3px solid var(--lime);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  color: var(--white);
  max-width: 720px;
  margin: 0 auto 1.75rem;
  font-size: 1rem;
  line-height: 1.55;
}

/* ── Formulário ── */
.section-form {
  background: var(--lime-bg);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}
.form-card h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 800;
  color: var(--green-dark);
  text-transform: uppercase;
}
.form-card__sub {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-group--full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"] {
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 82, 77, 0.15);
}
.form-group input::placeholder { color: #aaa; }
.form-check {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.45;
}
.form-check a { color: var(--green); font-weight: 600; }
.form-check input { margin-top: 0.2rem; flex-shrink: 0; }
.form-submit { grid-column: 1 / -1; }
.form-submit .btn--lime-outline {
  max-width: none;
  font-size: 1rem;
  padding: 1.1rem;
}
.form-legal {
  margin: 1.25rem 0 0;
  font-size: 0.72rem;
  color: #777;
  line-height: 1.45;
}

.form-feedback {
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.form-feedback--err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.form-group input:user-invalid,
.form-group input.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.form-submit .btn--lime-outline:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

/* ── Footer ── */
.footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: clamp(2rem, 5vw, 3rem) 0;
  text-align: center;
}
.footer__logo {
  height: 52px;
  width: auto;
  margin: 0 auto 1rem;
  display: block;
  filter: none;
  border-radius: 6px;
}
.footer__ans {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
  opacity: 0.92;
}
.footer__legal {
  font-size: 0.72rem;
  line-height: 1.55;
  max-width: 820px;
  margin: 0 auto 0.75rem;
  opacity: 0.9;
}
.footer__copy {
  font-size: 0.72rem;
  opacity: 0.7;
  margin: 0;
}

/* ── Alertas ── */
.alert-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}
.alert-bar--err {
  background: #e53e3e;
  color: #fff;
}

/* ── Modal obrigado ── */
#ty-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: tyFadeIn 0.3s ease both;
}
@keyframes tyFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
#ty-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem 2rem 1.75rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
  animation: tyPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes tyPop {
  from { opacity: 0; transform: scale(0.85) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
#ty-close-x {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #999;
  cursor: pointer;
}
.ty-icon-wrap {
  width: 64px;
  height: 64px;
  background: #e8f8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.ty-title {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--green-dark);
}
.ty-divider {
  width: 48px;
  height: 3px;
  background: var(--lime);
  margin: 0 auto 1rem;
  border-radius: 2px;
}
.ty-sub {
  margin: 0 0 1.5rem;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}
#ty-btn-ok {
  background: var(--green-dark);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 2rem;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.18s;
}
#ty-btn-ok:hover { transform: translateY(-2px); }
