/**
 * BMD forms — Practice consultation + Free SEO Analysis styling.
 */

.bmd-form-wrap {
  --bmd-form-ink: #141711;
  --bmd-form-muted: rgba(20, 23, 17, 0.62);
  --bmd-form-line: rgba(20, 23, 17, 0.12);
  --bmd-form-bg: rgba(255, 255, 255, 0.55);
  width: min(100%, 42rem);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.bmd-form-wrap--practice {
  width: 100%;
  max-width: none;
}

.bmd-page .bmd-form-wrap,
.bmd-cta-band .bmd-form-wrap {
  width: 100%;
}

.bmd-form-banner {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  font-size: 0.92rem;
}
.bmd-form-banner--success {
  background: rgba(120, 140, 88, 0.16);
  color: #2f3d1f;
}
.bmd-form-banner--error {
  background: rgba(180, 70, 60, 0.12);
  color: #6b2a24;
}

.bmd-form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.bmd-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}
.bmd-form-field { margin: 0; }
.bmd-form-field--full { grid-column: 1 / -1; }

.bmd-form-field label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bmd-form-ink);
}
.bmd-form-optional {
  font-weight: 400;
  color: var(--bmd-form-muted);
}

.bmd-form-field input,
.bmd-form-field textarea,
.bmd-form-field select {
  width: 100%;
  margin: 0;
  padding: 0.95rem 1.05rem;
  border-radius: 1.1rem;
  border: 1px solid var(--bmd-form-line);
  background: var(--bmd-form-bg);
  color: var(--bmd-form-ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.bmd-form-field textarea { min-height: 8rem; resize: vertical; }
.bmd-form-field input:focus,
.bmd-form-field textarea:focus,
.bmd-form-field select:focus {
  outline: none;
  border-color: rgba(20, 23, 17, 0.35);
  background: rgba(255, 255, 255, 0.82);
}
.bmd-form-field input::placeholder,
.bmd-form-field textarea::placeholder {
  color: rgba(20, 23, 17, 0.38);
}

.bmd-form-consent label {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 400;
  color: var(--bmd-form-ink);
}
.bmd-form-consent input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  flex: 0 0 auto;
  accent-color: #141711;
}

.bmd-form-actions { margin: 1.15rem 0 0; }
.bmd-form-submit {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 3.15rem;
  padding: 0.9rem 1.55rem;
  background: #141711;
  color: #fbf6ee;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  width: auto;
}
.bmd-form-submit:hover { background: #000; }
.bmd-form-submit:focus-visible {
  outline: 2px solid #141711;
  outline-offset: 3px;
}

.bmd-form-footnote {
  margin: 0.9rem 0 0;
  font-size: 0.84rem;
  color: var(--bmd-form-muted);
  max-width: 42ch;
}

.bmd-form-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.bmd-form-section .bmd-wrap {
  width: min(100% - 2.5rem, 1100px);
  margin-inline: auto;
}
.bmd-form-section h2 { margin: 0 0 0.75rem; }
.bmd-form-section > .bmd-wrap > p {
  margin: 0 0 1.5rem;
  max-width: 52ch;
}

/* ---------- Free SEO Analysis — compact professional panel ---------- */
.bmd-page .bmd-seo-form-band {
  padding-top: clamp(2.25rem, 4vw, 3.5rem) !important;
  padding-bottom: clamp(2.25rem, 4vw, 3.5rem) !important;
  background:
    radial-gradient(560px 220px at 12% 0%, rgba(226, 230, 166, 0.28), transparent 55%),
    linear-gradient(180deg, #f4f1ea 0%, #ebe6dc 100%);
}
.bmd-page .bmd-seo-form-band > .bmd-wrap {
  display: block !important;
  width: min(100% - 2rem, 44rem) !important;
  margin-inline: auto !important;
  max-width: 44rem !important;
}
.bmd-page .bmd-seo-form-band .bmd-seo-form-card {
  margin: 0;
  padding: clamp(1.1rem, 2.4vw, 1.5rem);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 23, 17, 0.08);
  box-shadow: 0 16px 36px rgba(20, 23, 17, 0.06);
}
.bmd-page .bmd-seo-form-band .bmd-seo-form-card > .bmd-chip {
  margin: 0 0 0.4rem;
}
.bmd-page .bmd-seo-form-band .bmd-seo-form-card > h2 {
  margin: 0 0 0.3rem !important;
  max-width: none !important;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem) !important;
  line-height: 1.2;
  letter-spacing: -0.03em;
  grid-column: auto !important;
  grid-row: auto !important;
}
.bmd-page .bmd-seo-form-band .bmd-seo-form-card > p:not(.bmd-chip):not(.bmd-form-footnote) {
  margin: 0 0 0.95rem !important;
  max-width: 46ch !important;
  color: rgba(20, 23, 17, 0.62);
  font-size: 0.92rem;
  line-height: 1.45;
  grid-column: auto !important;
}

.bmd-form-wrap--seo {
  width: 100%;
  max-width: none;
}

.bmd-form--seo .bmd-form-grid {
  gap: 0.4rem 0.7rem;
  align-items: start;
}

.bmd-form--seo .bmd-form-field,
.bmd-form--seo .bmd-form-actions,
.bmd-form--seo .bmd-form-footnote {
  margin: 0 !important;
  max-width: none !important;
}

.bmd-form--seo .bmd-form-field label {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: rgba(20, 23, 17, 0.78);
}

.bmd-form--seo .bmd-form-field input,
.bmd-form--seo .bmd-form-field textarea,
.bmd-form--seo .bmd-form-field select,
.bmd-page .bmd-form--seo input[type="text"],
.bmd-page .bmd-form--seo input[type="email"],
.bmd-page .bmd-form--seo input[type="url"],
.bmd-page .bmd-form--seo input[type="tel"],
.bmd-page .bmd-form--seo textarea,
.bmd-page .bmd-form--seo select {
  margin: 0 !important;
  padding: 0.5rem 0.7rem !important;
  min-height: 2.35rem;
  border-radius: 0.55rem !important;
  border: 1px solid rgba(20, 23, 17, 0.14) !important;
  background: #fff !important;
  font-size: 0.92rem !important;
  line-height: 1.25;
  box-shadow: none;
}

.bmd-form--seo .bmd-form-field input:focus,
.bmd-page .bmd-form--seo input:focus {
  border-color: rgba(20, 23, 17, 0.4) !important;
  background: #fff !important;
}

.bmd-form--seo .bmd-form-consent {
  grid-column: 1 / -1;
  padding-top: 0.15rem;
}
.bmd-form--seo .bmd-form-consent label {
  gap: 0.55rem;
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 0;
}
.bmd-form--seo .bmd-form-consent input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0.12rem 0 0 !important;
  padding: 0 !important;
  min-height: 0;
  border: 0 !important;
  background: transparent !important;
}

.bmd-form--seo .bmd-form-actions {
  margin-top: 0.85rem !important;
}
.bmd-form--seo .bmd-form-submit,
.bmd-page .bmd-form--seo .bmd-form-submit {
  min-height: 2.75rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-size: 0.95rem;
  width: auto;
}
.bmd-form--seo .bmd-form-footnote {
  margin-top: 0.65rem !important;
  font-size: 0.78rem;
  max-width: none;
}

@media (max-width: 700px) {
  .bmd-form-grid,
  .bmd-form--seo .bmd-form-grid {
    grid-template-columns: 1fr;
  }
  .bmd-form-submit,
  .bmd-form--seo .bmd-form-submit {
    width: 100%;
  }
}
