/* ═══════════════════════════════════════════════════════════════
   chancela-mec.css — overrides para chancela-mec-0001.html
   Carregado JUNTO de carousel-factory.css (que provê componentes
   compartilhados: section-wrap, section-h2, btn-primary, offer-card,
   faq-item, pain-card, etc.).
   ─────────────────────────────────────────────────────────────── */

/* Body — light por padrão, mesma paleta do CF mas sem tag `.cf-body` */
.cm-body {
  background: #fbfaf7;
  color: #0e1a2e;
  min-height: 100vh;
  position: relative;
}

/* ─── HERO DARK ─── */
#hero[data-theme="dark"] {
  background: #010E22;
  color: #F6F6F6;
  position: relative;
  overflow: hidden;
}
#hero[data-theme="dark"] h1 { color: #F6F6F6; }
#hero[data-theme="dark"] .hero-sub {
  color: rgba(246,246,246,0.65);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 560px;
}
@media (min-width:640px) { #hero[data-theme="dark"] .hero-sub { font-size: 1.125rem; } }

#hero[data-theme="dark"] .check-item span { color: rgba(246,246,246,0.82); }
#hero[data-theme="dark"] .check-icon {
  background: linear-gradient(135deg,#EDB852 0%,#C29B42 100%);
}

/* Hero ambient glow (dark variant) */
.ambient-light--cm {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 30%, rgba(237,184,82,0.14) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(194,155,66,0.10) 0%, transparent 50%);
  filter: blur(2px);
}

/* Hero — selo institucional */
.cm-seal {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.875rem 0.5rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(237,184,82,0.35);
  background: rgba(237,184,82,0.08);
  backdrop-filter: blur(10px);
}
.cm-seal-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 9999px;
  background: linear-gradient(135deg,#EDB852,#C29B42);
  color: #010E22;
  font-weight: 800;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
}
.cm-seal-text {
  color: rgba(246,246,246,0.85);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Hero — mockup-card "diploma chancelado" (substitui imagem) */
.cm-cred-card {
  position: relative;
  border-radius: 22px;
  padding: 1.75rem;
  background: linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(237,184,82,0.06) 100%);
  border: 1px solid rgba(237,184,82,0.22);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(237,184,82,0.08) inset;
}
.cm-cred-card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(237,184,82,0.35), transparent 50%, rgba(237,184,82,0.18));
  z-index: -1;
  filter: blur(14px);
  opacity: 0.45;
}
.cm-cred-header {
  display: flex; align-items: center; gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(237,184,82,0.18);
}
.cm-cred-header .label {
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246,246,246,0.5);
  font-weight: 700;
}
.cm-cred-header .title {
  font-size: 0.9375rem;
  color: #F6F6F6;
  font-weight: 700;
}
.cm-cred-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px dashed rgba(246,246,246,0.08);
  font-size: 0.8125rem;
}
.cm-cred-row:last-child { border-bottom: 0; }
.cm-cred-row .k {
  color: rgba(246,246,246,0.5);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.cm-cred-row .v {
  color: rgba(246,246,246,0.92);
  font-weight: 600;
}
.cm-cred-stamp {
  display: flex; align-items: center; gap: 0.625rem;
  margin-top: 1rem;
  padding: 0.625rem 0.875rem;
  border-radius: 12px;
  background: rgba(237,184,82,0.10);
  border: 1px dashed rgba(237,184,82,0.4);
}
.cm-cred-stamp-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#EDB852,#C29B42);
  color: #010E22;
  flex-shrink: 0;
}
.cm-cred-stamp-text {
  font-size: 0.75rem;
  color: rgba(246,246,246,0.78);
  line-height: 1.4;
}
.cm-cred-stamp-text strong { color: #F6F6F6; }

/* Navbar — variante OVER-DARK no topo (antes do scroll) */
#lp-nav-cm:not(.scrolled) .cm-nav-link { color: rgba(246,246,246,0.75); }
#lp-nav-cm:not(.scrolled) .cm-nav-link:hover { color: #F6F6F6; }
#lp-nav-cm:not(.scrolled) .cm-nav-cta {
  border-color: rgba(237,184,82,0.55);
  background: rgba(237,184,82,0.10);
  color: #F6F6F6;
}
#lp-nav-cm:not(.scrolled) .cm-logo-text { color: #F6F6F6; }

/* ─── DOBRA "Por que Anhanguera/Cogna" (DARK strip) ─── */
.cm-strip-dark {
  background: #010E22;
  color: #F6F6F6;
  position: relative;
  overflow: hidden;
}
.cm-strip-dark::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 20% 50%, rgba(237,184,82,0.08), transparent 70%),
    radial-gradient(ellipse 50% 60% at 85% 60%, rgba(194,155,66,0.06), transparent 70%);
  pointer-events: none;
}
.cm-strip-dark .section-h2 { color: #F6F6F6; }
.cm-strip-dark .section-sub { color: rgba(246,246,246,0.62); }
.cm-strip-dark .section-tag {
  background: rgba(237,184,82,0.10);
  border-color: rgba(237,184,82,0.32);
  color: #F2CA7E;
}

.cm-stat {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(237,184,82,0.16);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), background 0.3s;
}
.cm-stat:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.06);
}
.cm-stat-num {
  font-size: clamp(1.75rem, 1.5vw + 1rem, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg,#F2CA7E 0%,#EDB852 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.cm-stat-label {
  font-size: 0.8125rem;
  color: rgba(246,246,246,0.65);
  line-height: 1.4;
}

/* ─── Para quem é — lista de critérios ─── */
.cm-criteria {
  display: grid;
  gap: 0.875rem;
}
.cm-criteria-item {
  display: flex; gap: 0.875rem; align-items: flex-start;
  padding: 1rem 1.125rem;
  background: #fff;
  border: 1px solid rgba(14,26,46,0.10);
  border-radius: 14px;
  transition: border-color 0.2s, transform 0.2s;
}
.cm-criteria-item:hover {
  border-color: rgba(237,184,82,0.4);
  transform: translateX(2px);
}
.cm-criteria-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(237,184,82,0.14);
  color: #C29B42;
}
.cm-criteria-text {
  font-size: 0.9375rem;
  color: rgba(14,26,46,0.78);
  line-height: 1.5;
}
.cm-criteria-text strong { color: #0e1a2e; font-weight: 600; }

/* ─── Form aplicação (dark) — adapta classes form-* do bstart ─── */
#aplicacao { background: #010E22; color: #F6F6F6; position: relative; overflow: hidden; }
#aplicacao .section-h2 { color: #F6F6F6; }
#aplicacao .section-sub { color: rgba(246,246,246,0.62); }
#aplicacao .section-tag {
  background: rgba(237,184,82,0.10);
  border-color: rgba(237,184,82,0.32);
  color: #F2CA7E;
}

.cm-form-card {
  border-radius: 22px;
  background: #07182f;
  border: 1px solid rgba(237,184,82,0.22);
  padding: 2rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
@media (min-width: 640px) { .cm-form-card { padding: 2.5rem; } }

.cm-form-card .form-grid { display: grid; gap: 0 1.25rem; }
@media (min-width: 640px) { .cm-form-card .form-grid { grid-template-columns: 1fr 1fr; } }
.cm-form-card .form-group { margin-bottom: 1.25rem; }
.cm-form-card .form-group.full { grid-column: 1 / -1; }
.cm-form-card .form-label {
  display: block; margin-bottom: 0.5rem;
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: rgba(246,246,246,0.55);
}
.cm-form-card .form-input-wrap { position: relative; }
.cm-form-card .form-input-icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%); pointer-events: none;
  color: rgba(246,246,246,0.4);
}
.cm-form-card .form-input,
.cm-form-card select.form-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  font-size: 0.9375rem; font-family: inherit;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(246,246,246,0.12);
  border-radius: 12px;
  color: #F6F6F6;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none; appearance: none;
  box-sizing: border-box;
}
.cm-form-card .form-input::placeholder { color: rgba(246,246,246,0.32); }
.cm-form-card .form-input:focus {
  border-color: rgba(237,184,82,0.55);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(237,184,82,0.15);
}
.cm-form-card .form-input.error {
  border-color: rgba(239,68,68,0.6) !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.10) !important;
}
.cm-form-card select.form-input {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F6F6F6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px;
  padding-right: 2.5rem;
}
.cm-form-card select.form-input option { background: #07182f; color: #F6F6F6; }

.cm-form-card .form-error-msg {
  font-size: 0.6875rem;
  color: rgba(239,68,68,0.92);
  margin-top: 0.35rem;
  display: none;
}
.cm-form-card .form-error-msg.show { display: block; }

/* Phone combo */
.cm-form-card .phone-wrap { display: flex; gap: 0; }
.cm-form-card .phone-country-btn {
  display: flex; align-items: center; gap: 0.375rem;
  padding: 0.85rem 0.75rem;
  border: 1px solid rgba(246,246,246,0.12);
  border-right: none;
  border-radius: 12px 0 0 12px;
  background: rgba(255,255,255,0.04);
  color: #F6F6F6;
  font-family: inherit; font-size: 0.875rem;
  cursor: pointer; white-space: nowrap;
  position: relative; user-select: none;
}
.cm-form-card .phone-country-btn .dial { font-weight: 600; font-size: 0.8125rem; }
.cm-form-card .phone-country-btn .chevron { display: inline-flex; }
.cm-form-card .phone-country-btn .chevron svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; fill: none; }
.cm-form-card .phone-number-input {
  flex: 1; width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.9375rem; font-family: inherit;
  border: 1px solid rgba(246,246,246,0.12);
  border-left: none;
  border-radius: 0 12px 12px 0;
  background: rgba(255,255,255,0.04);
  color: #F6F6F6;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none; appearance: none; box-sizing: border-box;
}
.cm-form-card .phone-number-input:focus {
  border-color: rgba(237,184,82,0.55);
  background: rgba(255,255,255,0.06);
}
.cm-form-card .phone-number-input.error { border-color: rgba(239,68,68,0.6) !important; }
.cm-form-card .phone-wrap:has(.phone-number-input.error) .phone-country-btn { border-color: rgba(239,68,68,0.6) !important; }
.cm-form-card .phone-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0;
  z-index: 200;
  min-width: 260px; max-height: 320px;
  overflow: hidden; display: none;
  flex-direction: column;
  background: #07182f;
  border: 1px solid rgba(237,184,82,0.22);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.cm-form-card .phone-dropdown.open { display: flex; }
.cm-form-card .phone-dropdown-search { padding: 0.625rem 0.75rem; flex-shrink: 0; }
.cm-form-card .phone-dropdown-search input {
  width: 100%; padding: 0.4rem 0.625rem;
  font-size: 0.75rem; font-family: inherit;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(246,246,246,0.10);
  border-radius: 6px;
  color: #F6F6F6;
  outline: none; box-sizing: border-box;
}
.cm-form-card .phone-dropdown-list { overflow-y: auto; flex: 1; }
.cm-form-card .phone-dropdown-item {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.55rem 0.875rem;
  font-size: 0.8125rem; cursor: pointer;
  color: rgba(246,246,246,0.85);
}
.cm-form-card .phone-dropdown-item:hover { background: rgba(237,184,82,0.10); }
.cm-form-card .phone-dropdown-item.selected { background: rgba(237,184,82,0.16); color: #F2CA7E; }
.cm-form-card .phone-dropdown-item .item-flag { font-size: 1rem; }
.cm-form-card .phone-dropdown-item .item-name { flex: 1; }
.cm-form-card .phone-dropdown-item .item-code { font-size: 0.6875rem; opacity: 0.6; }

/* Submit */
.cm-form-card .btn-submit {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.625rem;
  padding: 1rem 1.5rem;
  margin-top: 0.5rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  font-family: inherit; font-size: 1rem; font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg,#EDB852 0%,#C29B42 100%);
  color: #010E22;
  box-shadow: 0 0 0 1px rgba(194,155,66,0.5), 0 6px 20px rgba(237,184,82,0.35), 0 12px 60px rgba(237,184,82,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cm-form-card .btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(194,155,66,0.6), 0 8px 28px rgba(237,184,82,0.45), 0 16px 80px rgba(237,184,82,0.22);
}

.cm-form-card .form-sub-note {
  text-align: center;
  font-size: 0.6875rem;
  color: rgba(246,246,246,0.42);
  margin-top: 0.875rem;
  line-height: 1.5;
}

/* Success state */
.cm-form-success { display: none; text-align: center; padding: 1rem 0 0.5rem; }
.cm-form-success .icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(237,184,82,0.12);
  border: 2px solid rgba(237,184,82,0.4);
  margin-bottom: 1rem;
}
.cm-form-success h3 { color: #F6F6F6; font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.cm-form-success p { color: rgba(246,246,246,0.55); font-size: 0.875rem; line-height: 1.55; max-width: 360px; margin: 0 auto; }

/* Honeypot */
.cm-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer override (mesma estética do CF, mas sem citar produto) */
.cm-footer {
  background: #010E22;
  color: rgba(246,246,246,0.6);
  padding: 2.5rem 1rem;
  text-align: center;
}
.cm-footer .footer-disclaimer {
  font-size: 0.6875rem;
  color: rgba(246,246,246,0.35);
  line-height: 1.5;
  max-width: 520px;
  margin: 0 auto 1rem;
}
.cm-footer p { font-size: 0.6875rem; }
.cm-footer a { color: rgba(246,246,246,0.55); text-decoration: underline; text-underline-offset: 3px; }
.cm-footer a:hover { color: #F6F6F6; }
