/* Contact page – pro layout, full-width form, light/dark theme aware */

.contact-section {
  padding-top: 4rem;
  padding-bottom: 4.2rem;
}

.contact-section .container {
  max-width: 1180px;
}

/* Errors + callouts */
.contact-errors {
  margin-bottom: 1rem;
}

.contact-callout {
  margin-bottom: 1rem;
}

/* Form card */
.contact-form-card {
  width: 100%;
  max-width: 880px;
  margin: 2.25rem auto 2.75rem;
  padding: 2rem 2.15rem 2.15rem;
  border-radius: 1.45rem;
  background:
    radial-gradient(circle at 100% 0, rgba(56, 189, 248, 0.10), transparent 34%),
    rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(125, 211, 252, 0.18);
  box-shadow: 0 24px 64px rgba(2, 6, 23, 0.28);
}

body.theme-light .contact-form-card,
html[data-theme="light"] .contact-form-card {
  background:
    radial-gradient(circle at 100% 0, rgba(14, 165, 233, 0.08), transparent 34%),
    #ffffff;
  border-color: rgba(14, 165, 233, 0.15);
  box-shadow: 0 20px 50px rgba(15,23,42,0.10);
}

/* Form header personality line */
.contact-form-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.7rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.contact-form-step {
  display: inline-grid;
  place-items: center;
  flex: 0 0 2.8rem;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(94, 234, 212, 0.24);
  border-radius: 0.9rem;
  background: rgba(45, 212, 191, 0.10);
  color: #5eead4;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 900;
}

.contact-form-header > div {
  display: grid;
  gap: 0.12rem;
}

.contact-form-kicker {
  color: #5eead4;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contact-form-header h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.48rem);
}

.contact-personality {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-soft);
}

body.theme-light .contact-form-step,
html[data-theme="light"] .contact-form-step {
  border-color: rgba(13, 148, 136, 0.18);
  background: rgba(20, 184, 166, 0.09);
  color: #0f766e;
}

body.theme-light .contact-form-kicker,
html[data-theme="light"] .contact-form-kicker {
  color: #0f766e;
}

/* Grid + fields */
.contact-form-grid {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.contact-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
}

.contact-field-row-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-field-row-compact {
  max-width: 340px;
}

@media (max-width: 720px) {
  .contact-form-card {
    padding: 1.6rem 1.4rem 1.8rem;
    margin-top: 1.8rem;
  }

  .contact-field-row-two {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.contact-field label {
  font-size: 0.79rem;
  font-weight: 750;
  letter-spacing: 0.025em;
  text-transform: none;
  color: var(--text-soft);
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  min-height: 48px;
  font-size: 0.92rem;
  border-radius: 0.78rem;
  border: 1px solid rgba(148,163,184,0.48);
  padding: 0.72rem 0.88rem;
  background: rgba(2, 6, 23, 0.52);
  color: var(--text-main);
  outline: none;
  transition:
    border-color 0.16s ease-out,
    box-shadow 0.16s ease-out,
    background 0.16s ease-out,
    transform 0.08s ease-out;
}

/* Textarea gets a less pill-ish radius */
.contact-field textarea {
  border-radius: 0.9rem;
  min-height: 170px;
  resize: vertical;
}

/* Light theme / explicit light mode – force white fields with dark text */
body.theme-light .contact-field input,
body.theme-light .contact-field select,
body.theme-light .contact-field textarea,
html[data-theme="light"] .contact-field input,
html[data-theme="light"] .contact-field select,
html[data-theme="light"] .contact-field textarea {
  background-color: #ffffff;
  color: #0f172a;
  border-color: rgba(148,163,184,0.8);
}

/* Focus states */
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.13);
  transform: none;
}

body.theme-light .contact-field input:focus,
body.theme-light .contact-field select:focus,
body.theme-light .contact-field textarea:focus,
html[data-theme="light"] .contact-field input:focus,
html[data-theme="light"] .contact-field select:focus,
html[data-theme="light"] .contact-field textarea:focus {
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

/* Select dropdown, make sure contrast is fine in both themes */
.contact-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(148,163,184,0.95) 50%),
    linear-gradient(135deg, rgba(148,163,184,0.95) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
}

/* Light theme arrow: softer + more in line with accent, NOT big grey wedges */
body.theme-light .contact-field select,
html[data-theme="light"] .contact-field select {
  background-color: #ffffff;
  background-image:
    linear-gradient(45deg, transparent 50%, #22c55e 50%),
    linear-gradient(135deg, #22c55e 50%, transparent 50%);
}

/* Hint + privacy note */
.contact-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contact-privacy-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Footer row: privacy line + button side-by-side on desktop */
.contact-footer-row {
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.contact-footer-row .btn {
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .contact-footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-footer-row .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Honeypot */
.honeypot-field {
  display: none;
}

/* Secondary blocks under the form */

.contact-secondary {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 1.8rem;
  max-width: 1180px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .contact-secondary {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contact-card {
  border-radius: 20px;
  padding: 1.9rem 2rem 1.8rem;
  background: var(--card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

body.theme-light .contact-card,
html[data-theme="light"] .contact-card {
  background: #ffffff;
  border-color: rgba(148,163,184,0.35);
  box-shadow: 0 18px 36px rgba(15,23,42,0.12);
}

.contact-eyebrow {
  margin-bottom: 0.5rem;
}

.contact-card h2,
.contact-secondary-title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.contact-card p {
  margin: 0 0 0.75rem;
  font-size: 0.94rem;
  color: var(--text-soft);
}

/* Band points chips under "Why talk to us?" */
.contact-band-points {
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--text-soft);
  background: rgba(15,23,42,0.85);
  border: 1px solid rgba(148,163,184,0.55);
  box-shadow: 0 10px 24px rgba(15,23,42,0.75);
}

body.theme-light .contact-chip,
html[data-theme="light"] .contact-chip {
  background: rgba(255,255,255,0.96);
  border-color: rgba(148,163,184,0.6);
  box-shadow: 0 10px 24px rgba(15,23,42,0.16);
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #3b82f6);
  flex-shrink: 0;
}

/* FAQ list on the right */
.contact-faq-list {
  list-style: none;
  margin: 0 0 0.6rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.contact-faq-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-faq-list strong {
  font-size: 0.88rem;
  color: var(--text-main);
}

.contact-faq-list span {
  color: var(--text-soft);
}

.contact-mini-clarity {
  margin: 0.3rem 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Tiny tweak for the main hero container so the contact page doesn’t feel cramped */
.contact-section .container.narrow {
  max-width: 980px;
}

/* Ensure callouts span the same width as the form */
.contact-callout {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

/* Make sure generic .btn-primary still looks right here */
.contact-form-card .btn-primary {
  box-shadow: 0 18px 40px rgba(15,23,42,0.95);
}

body.theme-light .contact-form-card .btn-primary,
html[data-theme="light"] .contact-form-card .btn-primary {
  box-shadow: 0 16px 30px rgba(15,23,42,0.18);
}

/* Apply posh bullets to card lists too */
.card ul,
.persona-card ul,
.feature-card ul {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}

.card ul li,
.persona-card ul li,
.feature-card ul li {
  position: relative;
  padding-left: 1.65rem;
  margin: 0.55rem 0;
}

.card ul li:before,
.persona-card ul li:before,
.feature-card ul li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.05rem;
  height: 1.05rem;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2322c55e' d='M10 17l5-5-5-5v10z'/%3E%3C/svg%3E");
  opacity: 0.95;
}
/* === SM360 iPhone form hardening pass: 2026-05-09 === */
@media (max-width: 720px) {
  .contact-form-card {
    padding: 1.35rem 1rem 1.55rem;
  }

  .contact-field input,
  .contact-field select,
  .contact-field textarea,
  .contact-form-card input,
  .contact-form-card select,
  .contact-form-card textarea {
    font-size: 16px;
  }

  .contact-field input,
  .contact-field select {
    min-height: 44px;
  }
}
