/* ================================================================
   House of Deer — Contact page
   Builds on styles.css for header / menu / footer / type / colours.
   ================================================================ */

.contact { padding-top: clamp(120px, 14vh, 170px); }

/* ---------- HEAD ---------- */
.ct-head { max-width: 720px; margin: 0 auto clamp(48px, 6vw, 76px); text-align: center; }
.ct-eyebrow {
  display: block;
  color: var(--rose);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.ct-title {
  font-weight: 500;
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: clamp(18px, 2.4vw, 26px);
}
.ct-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: rgba(var(--ink), 0.68);
}

/* ---------- LAYOUT ---------- */
.ct-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: clamp(30px, 4vw, 60px);
  align-items: start;
  max-width: 1060px;
  margin: 0 auto;
}

/* ---------- FORM ---------- */
.ct-form-wrap {
  padding: clamp(26px, 3vw, 40px);
  border-radius: 24px;
  background: rgba(var(--ink), 0.035);
  box-shadow: inset 0 0 0 1px rgba(var(--ink), 0.08);
}
.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ct-span { grid-column: 1 / -1; }
.ct-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ct-label { font-size: 0.82rem; color: rgba(var(--ink), 0.62); }
.ct-optional { color: rgba(var(--ink), 0.34); font-size: 0.74rem; margin-left: 4px; }

.ct-field input,
.ct-field select,
.ct-field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid rgba(var(--ink), 0.13);
  background: rgba(var(--ink), 0.045);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.ct-field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.ct-field input::placeholder,
.ct-field textarea::placeholder { color: rgba(var(--ink), 0.3); }
.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  outline: none;
  border-color: rgba(111, 151, 174, 0.85);
  background: rgba(var(--ink), 0.06);
  box-shadow: 0 0 0 3px rgba(111, 151, 174, 0.18);
}
.ct-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='.55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}
.ct-field select option { background: #12162a; color: var(--text); }

/* only flag invalid fields once they've tried to send */
.ct-touched .ct-field input:invalid,
.ct-touched .ct-field textarea:invalid { border-color: rgba(234, 120, 120, 0.75); }

/* honeypot — off-screen, never shown to people */
.ct-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ct-submit { width: 100%; height: 48px; margin-top: 22px; font-size: 15px; position: relative; }
.ct-btn-label { transition: opacity 0.2s var(--ease); }
.ct-submit.is-busy .ct-btn-label { opacity: 0; }
.ct-spinner {
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2px solid rgba(22, 22, 29, 0.25);
  border-top-color: var(--btn-ink);
  opacity: 0;
  animation: ct-spin 0.7s linear infinite;
}
.ct-submit.is-busy .ct-spinner { opacity: 1; }
@keyframes ct-spin { to { transform: rotate(360deg); } }

.ct-error {
  margin-top: 16px;
  padding: 12px 15px;
  border-radius: 11px;
  background: rgba(234, 120, 120, 0.1);
  box-shadow: inset 0 0 0 1px rgba(234, 120, 120, 0.35);
  color: #f0b4b4;
  font-size: 0.9rem;
  line-height: 1.5;
}
.ct-privacy {
  margin-top: 16px;
  color: rgba(var(--ink), 0.45);
  font-size: 0.85rem;
  line-height: 1.5;
}
.ct-privacy a { color: rgba(var(--ink), 0.75); border-bottom: 1px solid rgba(var(--ink), 0.25); }
.ct-privacy a:hover { color: var(--text); }

/* ---------- SUCCESS ---------- */
.ct-done { text-align: center; padding: clamp(20px, 3vw, 36px) 0; }
.ct-done-mark {
  display: grid; place-items: center;
  width: 62px; height: 62px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(111, 151, 174, 0.16);
  box-shadow: inset 0 0 0 1px rgba(111, 151, 174, 0.5);
  color: var(--teal);
}
.ct-done-mark svg {
  width: 27px; height: 27px;
  fill: none; stroke: currentColor;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.ct-done-title {
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.ct-done-copy {
  color: rgba(var(--ink), 0.68);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto 28px;
}

/* ---------- SIDE CARDS ---------- */
.ct-side { display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 20px); }
.ct-card {
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: 20px;
  background: rgba(var(--ink), 0.03);
  box-shadow: inset 0 0 0 1px rgba(var(--ink), 0.07);
  transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}
.ct-card:hover {
  background: rgba(var(--ink), 0.05);
  box-shadow: inset 0 0 0 1px rgba(111, 151, 174, 0.4);
}
.ct-card-quiet { background: none; box-shadow: inset 0 0 0 1px rgba(var(--ink), 0.06); }
.ct-card-quiet:hover { background: none; box-shadow: inset 0 0 0 1px rgba(var(--ink), 0.12); }

.ct-icon {
  display: block;
  width: 24px; height: 24px;
  margin-bottom: 14px;
  color: var(--teal);
}
.ct-icon svg {
  width: 100%; height: 100%;
  fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.ct-card-title {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.ct-card-copy {
  color: rgba(var(--ink), 0.62);
  font-size: 0.92rem;
  line-height: 1.6;
}
.ct-card-copy strong { color: var(--text); font-weight: 500; }
.ct-card-copy + .ct-card-copy { margin-top: 12px; }

.ct-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--text);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(var(--ink), 0.3);
  padding-bottom: 2px;
  transition: border-color 0.25s var(--ease);
}
.ct-link:hover { border-bottom-color: var(--teal); }

.ct-socials { margin-top: 14px; display: flex; gap: 8px; align-items: center; font-size: 0.92rem; }
.ct-socials a { color: rgba(var(--ink), 0.78); border-bottom: 1px solid transparent; transition: color 0.25s, border-color 0.25s; }
.ct-socials a:hover { color: var(--text); border-bottom-color: var(--teal); }
.ct-socials span { color: rgba(var(--ink), 0.25); }

.ct-faq-nudge a { color: var(--text); border-bottom: 1px solid rgba(var(--ink), 0.3); }
.ct-faq-nudge a:hover { border-bottom-color: var(--teal); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .ct-layout { grid-template-columns: 1fr; }
  .ct-side { order: -1; }              /* lead with how to reach us */
}
@media (max-width: 560px) {
  .ct-grid { grid-template-columns: 1fr; }
}
