/**
 * GCF Contact Form — theme-adaptive styling.
 *
 * Inherits the active theme's fonts and pulls a single accent color from the
 * theme (set at runtime via an inline style). Everything else is neutral so the
 * card looks native on any theme. The values below are fallbacks.
 */
.gcf-contact-shell {
  --gcf-accent: #0e7490;
  --gcf-accent-contrast: #ffffff;
  --gcf-accent-soft: rgba(14, 116, 144, .08);
  --gcf-accent-ring: rgba(14, 116, 144, .22);
  --gcf-ink: #1f2933;
  --gcf-muted: #6b7280;
  --gcf-border: #e3e8ec;
  --gcf-soft: #f6f8f9;
  position: relative;
  max-width: 980px;
  margin: clamp(1.5rem, 4vw, 4rem) auto;
  padding: clamp(1.25rem, 4vw, 3rem);
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--gcf-border);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .07);
  color: var(--gcf-ink);
  font-family: inherit;
}

.gcf-contact-intro { max-width: 720px; margin-bottom: 2rem; }
.gcf-eyebrow {
  display: inline-flex;
  margin: 0 0 0.8rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--gcf-accent);
  background: var(--gcf-accent-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.gcf-contact-intro h2 {
  margin: 0;
  color: var(--gcf-ink);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.gcf-contact-intro p:last-child {
  max-width: 650px;
  margin: 1rem 0 0;
  color: var(--gcf-muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.gcf-contact-card {
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: 16px;
  background: var(--gcf-soft);
  border: 1px solid var(--gcf-border);
}

.gcf-contact-form { color: var(--gcf-ink); font-family: inherit; }

.gcf-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.gcf-field { margin-bottom: 1rem; }
.gcf-field label { display: block; margin-bottom: 0.35rem; color: var(--gcf-ink); font-weight: 800; font-size: 0.95rem; }
.gcf-field label span { color: var(--gcf-accent); }

.gcf-field input,
.gcf-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.9rem 1rem;
  border: 1px solid var(--gcf-border);
  border-radius: 12px;
  background: #fff;
  color: var(--gcf-ink);
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.gcf-field textarea { min-height: 140px; resize: vertical; }
.gcf-field input:focus,
.gcf-field textarea:focus { border-color: var(--gcf-accent); box-shadow: 0 0 0 3px var(--gcf-accent-ring); }
.gcf-field-note { margin: 0.45rem 0 0; color: var(--gcf-muted); font-size: 0.88rem; }

.gcf-recaptcha-wrap { margin: 1rem 0; }

.gcf-setup-warning,
.gcf-form-alert { margin-bottom: 1rem; padding: 1rem; border-radius: 12px; font-weight: 700; }
.gcf-setup-warning { color: #92400e; border: 1px solid rgba(146, 64, 14, 0.22); background: rgba(255, 251, 235, 0.95); }
.gcf-form-alert { display: none; }
.gcf-form-alert.is-error { display: block; color: #9f1239; border: 1px solid rgba(159, 18, 57, 0.25); background: rgba(255, 241, 242, 0.95); }
.gcf-form-alert.is-success { display: block; color: #065f46; border: 1px solid rgba(6, 95, 70, 0.22); background: rgba(236, 253, 245, 0.95); }

.gcf-submit-button {
  width: 100%;
  min-height: 56px;
  padding: 1rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: var(--gcf-accent);
  color: var(--gcf-accent-contrast);
  font: inherit;
  font-weight: 900;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.gcf-submit-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(15, 23, 42, .22); }
.gcf-submit-button:disabled { opacity: 0.55; cursor: not-allowed; }

@media (max-width: 760px) {
  .gcf-contact-shell { border-radius: 16px; }
  .gcf-contact-card { padding: 1rem; border-radius: 12px; }
  .gcf-field-row { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .gcf-contact-shell *, .gcf-contact-card * { transition: none !important; animation: none !important; }
}

.gcf-contact-success {
  text-align: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 16px;
  background: var(--gcf-soft);
  border: 1px solid var(--gcf-border);
  outline: none;
}
.gcf-contact-success-icon {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--gcf-accent);
  color: var(--gcf-accent-contrast);
  font-size: 2rem;
  font-weight: 900;
}
.gcf-contact-success h3 { margin: 0; color: var(--gcf-ink); font-size: clamp(1.8rem, 4vw, 2.75rem); line-height: 1.05; letter-spacing: -0.03em; }
.gcf-contact-success p:not(.gcf-eyebrow) { max-width: 640px; margin: 1rem auto 0; color: var(--gcf-muted); font-size: 1.05rem; line-height: 1.7; }
.gcf-contact-success-note { padding: 0.9rem 1rem; border-radius: 12px; background: var(--gcf-accent-soft); color: var(--gcf-ink) !important; }

.gcf-secondary-button {
  margin-top: 1.5rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--gcf-border);
  border-radius: 999px;
  background: #fff;
  color: var(--gcf-ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gcf-secondary-button:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(15, 23, 42, .1); }

.gcf-contact-shell-success { max-width: 980px; }
.gcf-contact-card-success { padding: clamp(1rem, 3vw, 2rem); }
