/* vs-contact — reusable contact-form module for Visual Suspect project pages.
 *
 * Aesthetic ported from the Worldgrapher V16 ContactView (Apple-style light
 * form: #F5F5F7 rounded fields, circular social buttons, centred headline),
 * re-skinned with Visual Suspect's red accent. Fully self-contained and
 * scoped to #contact-section / .vs-contact so it overrides the Brooklyn theme
 * + the legacy vs-airside-contact-white stopgap without leaking out.
 *
 * One owner for the contact section's look: this stylesheet sets the section
 * background white itself, so it does not depend on any other layer.
 *
 * To re-brand (e.g. for another site), change --vsc-accent below — that is the
 * only colour the form leans on.
 */

#contact-section.vs-contact-host {
  background-color: #ffffff !important;
  background-image: none !important;
  padding: 96px 24px 120px;
  position: relative;
  overflow: hidden;
}
#contact-section.vs-contact-host .parallax-overlay { background: transparent !important; }

.vs-contact {
  --vsc-accent: #d20000;
  --vsc-accent-hover: #a90000;
  --vsc-accent-ring: rgba(210, 0, 0, 0.18);
  --vsc-text: #1d1d1f;
  --vsc-muted: #86868b;
  --vsc-field: #f5f5f7;
  --vsc-field-hover: #ececf0;
  --vsc-hairline: rgba(0, 0, 0, 0.10);
  --vsc-radius: 14px;

  max-width: 1200px;
  margin: 0 auto;
  color: var(--vsc-text);
  font-family: inherit;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.vs-contact *,
.vs-contact *::before,
.vs-contact *::after { box-sizing: border-box; }
.vs-contact [hidden] { display: none !important; }

/* ── Headline ─────────────────────────────────────────────────────────── */
.vs-c-head { text-align: center; margin-bottom: 72px; }
.vs-c-title {
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--vsc-text);
  margin: 0 0 16px;
}
.vs-c-sub {
  font-size: clamp(18px, 2.4vw, 23px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--vsc-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ── Two-column grid ──────────────────────────────────────────────────── */
.vs-c-grid { display: grid; grid-template-columns: 1fr; gap: 56px; }
@media (min-width: 1024px) {
  .vs-c-grid { grid-template-columns: 5fr 7fr; gap: 96px; align-items: start; }
}

/* ── Left column: connect + studio ────────────────────────────────────── */
.vs-c-left { display: flex; flex-direction: column; gap: 44px; }
.vs-c-h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--vsc-text);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.vs-c-lead {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--vsc-text);
  margin: 0 0 28px;
}
.vs-c-block--divider { padding-top: 36px; border-top: 1px solid var(--vsc-hairline); }

.vs-c-social { display: flex; flex-wrap: wrap; gap: 14px; }
.vs-c-soc {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: var(--vsc-field);
  color: var(--vsc-text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.vs-c-soc:hover {
  background: var(--vsc-field-hover);
  color: var(--vsc-accent);
  transform: translateY(-1px);
}
.vs-c-soc svg { width: 20px; height: 20px; display: block; }

.vs-c-addr {
  font-size: 15px;
  line-height: 1.7;
  color: #54545a;
  margin: 0 0 18px;
}
.vs-c-contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.vs-c-contact-list li { display: flex; align-items: center; gap: 11px; font-size: 15px; color: var(--vsc-text); }
.vs-c-contact-list svg { width: 18px; height: 18px; color: var(--vsc-muted); flex: none; }
.vs-c-contact-list a { color: var(--vsc-text); text-decoration: none; transition: color .2s ease; }
.vs-c-contact-list a:hover { color: var(--vsc-accent); }

/* ── Right column: form ───────────────────────────────────────────────── */
.vs-c-right { width: 100%; }
.vs-c-form-title { margin-bottom: 22px; }
.vs-c-form { display: flex; flex-direction: column; gap: 22px; }
.vs-c-row { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 640px) { .vs-c-row { grid-template-columns: 1fr 1fr; } }

.vs-c-field { display: flex; flex-direction: column; gap: 8px; }

/* Label + field rules carry !important and an extra scope class so they win
 * even if the legacy vs-airside-contact-white block is still present. */
#contact-section .vs-contact .vs-c-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vsc-muted) !important;
  padding-left: 4px;
}

#contact-section .vs-contact .vs-c-input {
  width: 100%;
  background: var(--vsc-field) !important;
  border: 1px solid transparent !important;
  border-radius: var(--vsc-radius);
  padding: 15px 16px;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.4;
  color: var(--vsc-text) !important;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
#contact-section .vs-contact .vs-c-input::placeholder { color: rgba(134, 134, 139, 0.6) !important; opacity: 1; }
#contact-section .vs-contact .vs-c-input:focus {
  outline: none;
  background: #ffffff !important;
  border-color: rgba(210, 0, 0, 0.45) !important;
  box-shadow: 0 0 0 3px var(--vsc-accent-ring) !important;
}

.vs-c-select-wrap { position: relative; }
#contact-section .vs-contact .vs-c-select { padding-right: 46px; cursor: pointer; }
.vs-c-select-wrap .vs-c-chev {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  color: var(--vsc-muted);
}
.vs-c-select-wrap .vs-c-chev svg { width: 20px; height: 20px; display: block; }
/* grey out the placeholder option until a real topic is chosen */
.vs-c-select.is-placeholder { color: var(--vsc-muted) !important; }

#contact-section .vs-contact .vs-c-textarea { min-height: 150px; resize: vertical; line-height: 1.6; }

.vs-c-error {
  padding: 14px 16px;
  border-radius: 12px;
  background: #fdecec;
  color: #c01818;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.vs-c-actions { padding-top: 6px; }
.vs-c-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border: none;
  border-radius: var(--vsc-radius);
  background: var(--vsc-accent);
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: background .2s ease, box-shadow .2s ease, transform .08s ease;
}
.vs-c-submit:hover { background: var(--vsc-accent-hover); box-shadow: 0 6px 18px rgba(210, 0, 0, 0.22); }
.vs-c-submit:active { transform: scale(0.99); }
.vs-c-submit:disabled { opacity: 0.7; cursor: not-allowed; box-shadow: none; }
.vs-c-spinner { display: flex; }
.vs-c-spinner svg { width: 22px; height: 22px; animation: vsc-spin 0.9s linear infinite; }
@keyframes vsc-spin { to { transform: rotate(360deg); } }

/* ── Success state ────────────────────────────────────────────────────── */
.vs-c-success { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 56px 24px; min-height: 360px; justify-content: center; }
.vs-c-success-icon {
  width: 88px; height: 88px;
  border-radius: 9999px;
  background: var(--vsc-field);
  color: var(--vsc-accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 26px;
}
.vs-c-success-icon svg { width: 44px; height: 44px; }
.vs-c-success-title { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--vsc-text); margin: 0 0 12px; }
.vs-c-success-text { font-size: 18px; line-height: 1.5; color: var(--vsc-muted); max-width: 420px; margin: 0 0 26px; }
.vs-c-reset { background: none; border: none; padding: 0; color: var(--vsc-accent); font-size: 16px; font-weight: 600; font-family: inherit; cursor: pointer; }
.vs-c-reset:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 640px) {
  #contact-section.vs-contact-host { padding: 64px 18px 80px; }
  .vs-c-head { margin-bottom: 48px; }
}
