/* --- Reset e base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #0d9488;
  --color-primary-dark: #0f766e;
  --color-primary-light: #14b8a6;
  --color-accent: #f59e0b;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-bg: #f8fafc;
  --color-bg-white: #ffffff;
  --color-border: #e2e8f0;
  --font-sans: 'Outfit', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --touch-min: 44px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }
}

/* --- Top bar --- */
.top-bar {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  padding: 0.6rem 0;
  text-align: center;
}

.top-bar .badge {
  display: inline-block;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* --- Navegação / Abas --- */
.main-nav {
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  position: relative;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.9375rem, 2.5vw, 1.125rem);
  color: var(--color-primary-dark);
  text-decoration: none;
  line-height: 1.3;
  min-width: 0;
}

.nav-logo:hover {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: background 0.28s cubic-bezier(0.22, 1, 0.36, 1), color 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:hover {
  background: var(--color-bg);
  color: var(--color-primary-dark);
}

.nav-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%) !important;
  color: #fff !important;
  margin-left: 0.5rem;
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%) !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  width: var(--touch-min);
  height: var(--touch-min);
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-white);
    flex-direction: column;
    padding: 0.75rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    z-index: 101;
    max-height: min(80dvh, 80vh);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
    min-height: var(--touch-min);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-cta {
    margin-left: 0;
  }

  .nav-toggle {
    display: flex;
  }
}

/* --- Hero --- */
.hero {
  background: linear-gradient(180deg, #f0fdfa 0%, var(--color-bg-white) 60%);
  padding: 3rem 0 4rem;
  border-bottom: 1px solid var(--color-border);
}

.hero-content {
  text-align: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: clamp(0.9375rem, 2.5vw, 1.125rem);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

.hero-subtitle strong {
  color: var(--color-primary-dark);
}

.hero-features {
  list-style: none;
  text-align: left;
  max-width: min(480px, 100%);
  margin: 0 auto 2rem;
  padding: 0 0.25rem 0 0;
}

.hero-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  font-size: clamp(0.875rem, 2.2vw, 1rem);
  word-wrap: break-word;
}

.hero-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* --- Botões --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.28s ease, color 0.28s ease, border-color 0.28s ease;
  cursor: pointer;
  border: none;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
}

.btn-secondary {
  background: var(--color-bg-white);
  color: var(--color-primary-dark);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: #f0fdfa;
}

.btn-lg {
  padding: 1rem 1.5rem;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
}

/* --- Seções genéricas --- */
.section {
  padding: 4rem 0;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--color-text-muted);
  max-width: min(600px, 100%);
  margin-bottom: 2rem;
  font-size: clamp(0.9375rem, 2vw, 1rem);
}

/* --- Como Funciona --- */
.how-it-works {
  background: var(--color-bg-white);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
  }
}

.step {
  background: var(--color-bg);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  position: relative;
  min-width: 0;
}

@media (min-width: 480px) {
  .step {
    padding: 1.75rem;
  }
}

.step-number {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.5;
  margin-bottom: 0.5rem;
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* --- Diferenciais (cards) --- */
.differentials {
  background: var(--color-bg);
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 480px) {
  .cards-grid {
    gap: 1.25rem;
  }
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

.card {
  background: var(--color-bg-white);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 0;
}

@media (min-width: 480px) {
  .card {
    padding: 1.75rem;
  }
}

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

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  line-height: 1.3;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* --- Depoimentos --- */
.testimonials {
  background: var(--color-bg);
}

.testimonials-wrap {
  max-width: 1120px;
}

.testimonials .section-label,
.testimonials h2,
.testimonials-desc {
  text-align: center;
}

.testimonials .section-label {
  margin-bottom: 0.5rem;
}

.testimonials h2 {
  margin-bottom: 0.5rem;
}

.testimonials-desc {
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.testimonials-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(13, 148, 136, 0.4) transparent;
  padding-bottom: 1rem;
  margin: 0 -1rem 0.25rem -1rem;
  cursor: grab;
}

.testimonials-scroll:active {
  cursor: grabbing;
}

/* Scrollbar mais discreta e moderna */
.testimonials-scroll::-webkit-scrollbar {
  height: 8px;
}

.testimonials-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 999px;
}

.testimonials-scroll::-webkit-scrollbar-thumb {
  background: rgba(13, 148, 136, 0.35);
  border-radius: 999px;
}

.testimonials-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(13, 148, 136, 0.55);
}

.testimonials-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1.25rem;
  width: max-content;
  padding: 0.5rem 1rem 0 1rem;
  scroll-snap-type: x mandatory;
  touch-action: pan-x;
}

.testimonial {
  flex: 0 0 auto;
  width: min(320px, 85vw);
  min-height: 100%;
  background: var(--color-bg-white);
  padding: 1.35rem 1.35rem 1.35rem 1.5rem;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-primary);
  scroll-snap-align: start;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonial:hover {
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.1);
}

@media (min-width: 480px) {
  .testimonial {
    padding: 1.5rem 1.5rem 1.5rem 1.65rem;
  }
}

.testimonial p {
  color: var(--color-text);
  margin-bottom: 1rem;
  font-style: italic;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.testimonial-stars {
  display: block;
  margin-bottom: 0.625rem;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: #eab308;
}

.testimonial footer {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* --- Parceiros --- */
#parceiros {
  scroll-margin-top: 6rem;
}

.partners-section {
  background: var(--color-bg-white);
}

.partners-section .section-label,
.partners-section h2,
.partners-section .section-desc {
  text-align: center;
}

.partners-section .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .partners-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
}

.partner-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  transition: box-shadow 0.2s, opacity 0.2s;
}

.partner-card:hover {
  box-shadow: var(--shadow);
  opacity: 0.95;
}

.partner-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.partner-card img {
  display: block;
  max-width: 140px;
  max-height: 64px;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

/* --- Floating Widget (médicos online) --- */
.floating-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-primary);
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.06);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  transform: translateX(100%) scale(0.88);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.5s, padding 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-tap-highlight-color: transparent;
}

.floating-widget.is-visible {
  transform: translateX(0) scale(1);
  opacity: 1;
  visibility: visible;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s, padding 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.floating-widget:hover {
  padding: 0.625rem 1.25rem;
  box-shadow: 0 14px 20px -4px rgb(0 0 0 / 0.12);
}

.floating-widget-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: floating-widget-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes floating-widget-ping {
  75%, 100% {
    box-shadow: 0 0 0 12px rgba(34, 197, 94, 0);
  }
}

.floating-widget-text {
  white-space: nowrap;
}

.floating-widget-tooltip {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  margin-left: 0;
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  transition: max-width 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), margin-left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.floating-widget:hover .floating-widget-tooltip {
  max-width: 12.5em;
  opacity: 1;
  margin-left: 0.25rem;
}

@media (max-width: 480px) {
  .floating-widget {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    justify-content: center;
    transform: translateY(90%) scale(0.9);
  }
  .floating-widget.is-visible {
    transform: translateY(0) scale(1);
  }
}

/* --- FAQ --- */
.faq-section {
  background: var(--color-bg);
}

.faq-section .section-label,
.faq-section h2,
.faq-section .section-desc {
  text-align: center;
}

.faq-section .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.faq-list {
  max-width: min(720px, 100%);
  margin-top: 2rem;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  min-height: var(--touch-min);
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 2vw, 1rem);
  font-weight: 600;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.faq-item[data-open] .faq-question::after {
  content: "−";
}

.faq-question:hover {
  background: var(--color-bg);
}

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

.faq-answer p {
  padding: 0 1.25rem 1rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
  margin: 0 1.25rem 1rem;
}

/* --- CTA final --- */
.cta-final {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  padding: 2rem 0;
  text-align: center;
}

@media (min-width: 480px) {
  .cta-final {
    padding: 3rem 0;
  }
}

.cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.cta-final p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.cta-final .btn-primary {
  background: #fff;
  color: var(--color-primary-dark);
}

.cta-final .btn-primary:hover {
  background: #f0fdfa;
  color: var(--color-primary-dark);
}

/* --- Página Consultar --- */
.page-consultar {
  padding: 1.5rem 0 3rem;
  min-height: 60vh;
  min-height: 60dvh;
}

@media (min-width: 480px) {
  .page-consultar {
    padding: 2rem 0 4rem;
  }
}

.consultar-back {
  display: inline-block;
  color: var(--color-primary-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.consultar-back:hover {
  color: var(--color-primary);
}

.consultar-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.consultar-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.consultar-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.consultar-header p {
  color: var(--color-text-muted);
  font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
  max-width: min(420px, 100%);
  margin: 0 auto;
}

.consultar-card {
  max-width: min(440px, 100%);
  margin: 0 auto;
  background: var(--color-bg-white);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

@media (min-width: 480px) {
  .consultar-card {
    padding: 2rem;
  }
}

/* Modal popup Consultar (sucesso / erro CPF) */
.consultar-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.4);
  -webkit-tap-highlight-color: transparent;
}

.consultar-modal-overlay[hidden] {
  display: none;
}

.consultar-modal-box {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  max-width: 360px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.consultar-modal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.consultar-modal-box.consultar-modal--erro .consultar-modal-title {
  color: #b91c1c;
}

.consultar-modal-box.consultar-modal--sucesso .consultar-modal-title {
  color: var(--color-primary-dark);
}

.consultar-modal-message {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.consultar-modal-btn {
  width: 100%;
}

.form-consultar .form-group {
  margin-bottom: 1.25rem;
}

.form-consultar .form-group:last-of-type {
  margin-bottom: 1.5rem;
}

.btn-block {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon svg {
  flex-shrink: 0;
}

.consultar-resultado {
  max-width: min(640px, 100%);
  margin: 2rem auto 0;
  padding: 1rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

@media (min-width: 480px) {
  .consultar-resultado {
    padding: 1.5rem;
  }
}

/* --- Página Solicitar --- */
.page-solicitar {
  padding: 1.5rem 0 3rem;
  min-height: 60vh;
  min-height: 60dvh;
}

@media (min-width: 480px) {
  .page-solicitar {
    padding: 2rem 0 4rem;
  }
}

.solicitar-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.solicitar-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.solicitar-header p {
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.solicitar-preco {
  margin-top: 0.5rem;
  font-size: 1.125rem;
}

.solicitar-preco strong {
  color: var(--color-primary-dark);
}

.form-solicitar {
  max-width: min(640px, 100%);
  margin: 0 auto;
  background: var(--color-bg-white);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

@media (min-width: 480px) {
  .form-solicitar {
    padding: 2rem;
  }
}

.form-section {
  margin-bottom: 2rem;
}

.form-section h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

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

@media (min-width: 480px) {
  .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

.form-group {
  margin-bottom: 1rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: var(--touch-min);
  padding: 0.75rem 0.875rem;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.form-group input,
.form-group textarea {
  -webkit-appearance: none;
  appearance: none;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group input.invalid,
.form-group input:invalid.form-touched {
  border-color: #dc2626;
}

.form-error {
  display: block;
  font-size: 0.8125rem;
  color: #dc2626;
  margin-top: 0.25rem;
  min-height: 1.25rem;
}


.form-resumo {
  background: #f0fdfa;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(13, 148, 136, 0.25);
}

.form-resumo h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.resumo-valor {
  font-size: 1.25rem;
  color: var(--color-primary-dark);
  margin: 0 0 0.25rem;
}

.resumo-valor strong {
  font-weight: 700;
}

.resumo-obs {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

.form-legal {
  background: #f0fdfa;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.form-legal p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.form-actions .btn {
  flex: 1 1 auto;
}

@media (max-width: 479px) {
  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }
}

.solicitar-sucesso {
  width: 100%;
  padding: 1rem 1.25rem;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius);
  color: #166534;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.solicitar-sucesso p {
  margin: 0;
}

.solicitar-pagamento-aviso {
  width: 100%;
  padding: 1rem 1.25rem;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  color: #92400e;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.solicitar-pagamento-aviso p {
  margin: 0;
}

/* --- Modal PIX (pop-up sobre a página) --- */
.pix-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  animation: pixModalFadeIn 0.2s ease-out;
}
.pix-modal-backdrop[hidden] {
  display: none !important;
}
@keyframes pixModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.pix-modal-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: auto;
  padding: 1.5rem;
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 25px 50px -12px rgb(0 0 0 / 0.25);
  animation: pixModalSlideIn 0.25s ease-out;
}
@keyframes pixModalSlideIn {
  from { opacity: 0; transform: scale(0.96) translateY(-8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.pix-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.pix-modal-close:hover {
  color: var(--color-text);
  background: var(--color-border);
}
.pix-modal-box .pix-payment-title { margin-top: 0; }

/* --- Bloco PIX (conteúdo dentro do modal) --- */
.pix-payment-box,
.pix-modal-box .pix-payment-desc,
.pix-modal-box .pix-payment-qr-wrap,
.pix-modal-box .pix-payment-copy-wrap,
.pix-modal-box .pix-payment-obs {
  margin-bottom: 1rem;
}
.pix-modal-box .pix-payment-obs { margin-bottom: 0; }

.pix-payment-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.pix-payment-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.pix-payment-qr-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}
.pix-qr-image {
  width: 200px;
  height: 200px;
  object-fit: contain;
}
.pix-qr-image[hidden] { display: none !important; }
.pix-qr-canvas {
  display: flex;
  justify-content: center;
  align-items: center;
}
.pix-qr-canvas canvas,
.pix-qr-canvas img,
.pix-qr-canvas table {
  max-width: 200px;
  max-height: 200px;
  margin: 0 auto;
}
.pix-qr-canvas table { border-collapse: collapse; display: block; margin-left: auto; margin-right: auto; }

.pix-payment-copy-wrap {
  margin-bottom: 1rem;
}

.pix-copy-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.pix-copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pix-copia-cola {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  font-size: 0.8125rem;
  font-family: monospace;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}

.pix-payment-obs {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* --- Footer --- */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.875rem;
}

/* --- Responsivo mobile-first --- */
@media (max-width: 479px) {
  .hero {
    padding: 1.5rem 0 2.5rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .section {
    padding: 2.5rem 0;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .section {
    padding: 3rem 0;
  }
}
