/* Comunidade Tax Transformation | Julie Anie */
.community-header {
  background: rgba(13,32,56,.97);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.community-hero {
  padding: 96px 0 84px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(206,169,70,.22), transparent 26%),
    linear-gradient(135deg, #091a30, #173451);
  overflow: hidden;
}

.community-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .65fr);
  gap: 72px;
  align-items: center;
}

.community-hero-copy h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 4.8vw, 4.3rem);
  line-height: .98;
}

.community-lead {
  max-width: 760px;
  color: rgba(255,255,255,.75);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
}

.community-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 38px;
}

.community-points span {
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.06);
  font-size: .9rem;
}

.community-hero-card {
  position: relative;
  padding: 42px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 30px;
  background: rgba(255,255,255,.07);
  box-shadow: 0 28px 80px rgba(0,0,0,.22);
  backdrop-filter: blur(14px);
}

.community-count {
  display: block;
  color: #d8ad33;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.2rem, 5.5vw, 5rem);
  font-weight: 600;
  line-height: .8;
}

.community-hero-card strong {
  display: block;
  margin: 16px 0 18px;
  font-size: 1.08rem;
}

.community-hero-card p {
  color: rgba(255,255,255,.68);
}

.community-mini-note {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.13);
  color: #f4e7b6;
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.community-form-section {
  padding: 88px 0;
  background: #f5f1e8;
}

.community-form-layout {
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr);
  gap: 64px;
  align-items: start;
}

.community-form-intro {
  position: sticky;
  top: 120px;
}

.community-form-intro h2 {
  margin-bottom: 22px;
  font-size: clamp(1.95rem, 3.1vw, 3rem);
}

.privacy-note {
  display: grid;
  gap: 6px;
  margin-top: 34px;
  padding: 22px;
  border-left: 3px solid #d8ad33;
  background: rgba(255,255,255,.72);
}

.privacy-note span {
  color: #667085;
  font-size: .92rem;
}

.community-form-card {
  min-height: 560px;
  padding: 18px;
  border: 1px solid #e3ded2;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(18,39,64,.11);
}

#formStage {
  position: relative;
}

#communityForm {
  width: 100%;
  min-height: 860px;
  border: 0;
  border-radius: 18px;
  opacity: 0;
  transition: opacity .25s ease;
}

#communityForm.is-loaded {
  opacity: 1;
}

.form-loading {
  position: absolute;
  inset: 28px 28px auto;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  color: #445268;
  background: #f5f1e8;
}

.form-loading span {
  width: 18px;
  height: 18px;
  border: 2px solid #d6cfbf;
  border-top-color: #d8ad33;
  border-radius: 50%;
  animation: community-spin .8s linear infinite;
}

@keyframes community-spin {
  to { transform: rotate(360deg); }
}

.form-fallback {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 12px 4px;
  color: #667085;
  font-size: .86rem;
  text-align: center;
}

.form-fallback a {
  color: #173451;
  font-weight: 700;
}

.form-completed-fallback {
  display: block;
  margin: 12px auto 6px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: #667085;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.community-success {
  padding: 58px 34px;
  text-align: center;
}

.success-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #2d8c5c;
  font-size: 2rem;
  font-weight: 800;
}

.community-success h2 {
  max-width: 650px;
  margin: 0 auto 20px;
}

.community-success p:not(.eyebrow) {
  max-width: 650px;
  margin: 0 auto 28px;
}

.button-whatsapp {
  color: #fff;
  background: #217b4d;
}

.community-success small {
  display: block;
  margin-top: 18px;
  color: #788294;
}

.community-how-section {
  padding: 84px 0;
  background: #fff;
}

.community-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.community-steps article {
  min-height: 220px;
  padding: 30px;
  border: 1px solid #e5e1d9;
  border-radius: 24px;
}

.community-steps article > span {
  display: inline-block;
  margin-bottom: 34px;
  color: #c49727;
  font-weight: 800;
}

@media (max-width: 900px) {
  .community-hero-grid,
  .community-form-layout {
    grid-template-columns: 1fr;
  }

  .community-form-intro {
    position: static;
  }

  .community-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .community-hero {
    padding: 72px 0 58px;
  }

  .community-hero-grid {
    gap: 38px;
  }

  .community-hero-card,
  .community-form-card {
    padding: 16px;
  }

  .community-form-section,
  .community-how-section {
    padding: 62px 0;
  }

  #communityForm {
    min-height: 980px;
  }

  .community-success {
    padding: 46px 18px;
  }
}


/* Ajustes finos V8 | tipografia mais suave */
.community-hero-copy .eyebrow,
.community-form-intro .eyebrow,
.community-success .eyebrow,
.section-heading .eyebrow {
  font-size: .72rem;
  letter-spacing: .14em;
}

.community-hero-copy h1 {
  max-width: 760px;
}

.community-hero-card {
  padding: 34px;
}

.community-hero-card p,
.community-form-intro p,
.community-success p,
.community-steps article p {
  font-size: .98rem;
  line-height: 1.65;
}

.community-points span {
  font-size: .84rem;
  padding: 9px 14px;
}

.community-form-intro {
  max-width: 420px;
}

.community-form-intro h2,
.community-success h2,
.section-heading h2 {
  line-height: 1.08;
}

.community-success h2 {
  font-size: clamp(1.85rem, 2.8vw, 2.7rem);
}

.section-heading h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.community-steps article h3 {
  font-size: 1.2rem;
}

@media (max-width: 620px) {
  .community-hero-copy h1 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .community-form-intro h2,
  .community-success h2,
  .section-heading h2 {
    font-size: clamp(1.7rem, 7vw, 2.25rem);
  }

  .community-hero-card {
    padding: 26px;
  }
}
