/* CGM Contact Form — matches CGM Advertise Inquiry (Cedar navy / gold / white) */
.cgm-contact {
  --navy: #0b1f3a;
  --navy-2: #122b4d;
  --gold: #c9a227;
  --gold-soft: #e6c86a;
  --ink: #1a1f2c;
  --muted: #5b6577;
  --line: rgba(11, 31, 58, 0.12);
  --bg: #f7f5ef;
  --white: #fff;
  color: var(--ink);
  font-family: Merriweather, Georgia, "Times New Roman", serif;
  max-width: 920px;
  margin: 8px 0 32px;
  padding: 0;
  box-sizing: border-box;
}
.cgm-contact * { box-sizing: border-box; }
.cgm-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.cgm-contact-span2 { grid-column: 1 / -1; }
.cgm-contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: var(--navy);
}
.cgm-contact-field span em { font-style: normal; }
.cgm-contact-field em { color: var(--gold); font-style: normal; }
.cgm-contact-field input,
.cgm-contact-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.cgm-contact-field input:focus,
.cgm-contact-field textarea:focus {
  outline: 2px solid rgba(201, 162, 39, 0.45);
  border-color: var(--gold);
}
.cgm-contact-submit {
  margin-top: 18px;
  appearance: none;
  border: 0;
  background: var(--navy);
  color: var(--white);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 3px;
  cursor: pointer;
}
.cgm-contact-submit:hover { background: var(--navy-2); }
.cgm-contact-confirm {
  background: #e8f6ee;
  border: 1px solid #9fd5b3;
  color: #145a32;
  padding: 12px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
}
.cgm-contact-error {
  background: #fdecea;
  border: 1px solid #f5c6cb;
  color: #7b241c;
  padding: 12px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
}
/* Hidden the same way as .cgm-adv-hp */
.cgm-contact-hp {
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  overflow: hidden !important;
}
@media (max-width: 720px) {
  .cgm-contact-grid { grid-template-columns: 1fr; }
  .cgm-contact-span2 { grid-column: auto; }
}

/* 1.0.3: readable labels in light and dark mode (labels only); dark = Cedar html[data-theme="dark"] */
.cgm-contact .cgm-contact-field > span {
  color: #1a1f2c;
  font-weight: 600;
}
html[data-theme="dark"] .cgm-contact .cgm-contact-field > span {
  color: var(--cgm-text, #e8e6e1);
}
html[data-theme="dark"] .cgm-contact .cgm-contact-field > span em { color: var(--cgm-gold-l, #e6c86a); }
.cgm-contact .cgm-contact-field > span em { color: #c9a227; }
