/* =========================================================================
   CONTACT PAGE
   Loaded after style.css. Inherits the site background, header, footer,
   panel and button language; everything below is contact-specific.
   ========================================================================= */

.contact-main { padding-top: 18px; }

.contact-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 26px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #8f9dc0;
  transition: color 0.18s ease;
}

.contact-back:hover { color: #4fb3ff; }

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: start;
}

/* ============ LEFT COLUMN ============ */
.contact-eyebrow {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #4fb3ff;
  margin: 0 0 14px;
}

.contact-title {
  font-family: 'Times New Roman', Times, serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.05;
  color: #ffffff;
  margin: 0 0 18px;
}

.contact-blurb {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15.5px;
  line-height: 1.72;
  color: #b8c3e0;
  margin: 0 0 32px;
}

.contact-direct {
  border-top: 1px solid rgba(120, 160, 255, 0.18);
  padding-top: 24px;
}

.contact-direct-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6f7da3;
  margin: 0 0 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: #d6ddf2;
  word-break: break-word;
  transition: color 0.18s ease;
}

.contact-link svg { color: #4fb3ff; flex-shrink: 0; }
.contact-link:hover { color: #ffffff; }

.contact-note-small {
  margin: 26px 0 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.65;
  color: #8f9dc0;
}

/* ============ FORM ============ */
.contact-panel { padding: 32px 30px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { margin-bottom: 18px; min-width: 0; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #c8d2ec;
}

.field .req { color: #7ea6ff; }

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 9px;
  border: 1px solid rgba(150, 175, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.field textarea { resize: vertical; min-height: 130px; }

.field input::placeholder,
.field textarea::placeholder { color: #6f7da3; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #4fb3ff;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(79, 179, 255, 0.16);
}

.field input.has-error,
.field textarea.has-error {
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.06);
}

.field input.has-error:focus,
.field textarea.has-error:focus {
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18);
}

/* All feedback text is white. The coloured border on the input is what
   signals the state; tinted text on a dark background is harder to read. */
.field-error {
  margin: 6px 0 0;
  min-height: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
  color: #ffffff;
}

.field-error:empty { margin: 0; }

.field-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.char-count {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: #6f7da3;
  white-space: nowrap;
  margin-top: 6px;
}

/* Honeypot: off-screen rather than display:none, since some bots skip
   fields that are explicitly hidden. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.btn-send { padding: 13px 26px; font-size: 15px; }
.btn-send:disabled { opacity: 0.7; cursor: progress; transform: none; }

.form-privacy {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  color: #8f9dc0;
  margin: 0;
}

/* ---- Result banner ---- */
.form-status {
  display: none;
  margin-top: 22px;
  padding: 15px 17px;
  border-radius: 10px;
  border: 1px solid;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.65;
}

.form-status.is-shown { display: block; }
.form-status strong { font-weight: 700; }
.form-status a { text-decoration: underline; text-underline-offset: 3px; }

/* Every banner prints white. The border colour carries the state. */
.form-status,
.form-status a { color: #ffffff; }

.form-status.is-ok {
  border-color: rgba(74, 222, 128, 0.5);
  background: rgba(6, 30, 16, 0.62);
}

.form-status.is-error {
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(38, 10, 10, 0.62);
}

.form-status.is-warn {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(38, 26, 4, 0.62);
}

.form-status.is-pending {
  border-color: rgba(120, 160, 255, 0.4);
  background: rgba(8, 14, 36, 0.72);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .contact-layout { grid-template-columns: 1fr; gap: 34px; }
  .contact-title { font-size: 38px; }
}

@media (max-width: 768px) {
  .contact-title { font-size: 30px; }
  .contact-blurb { font-size: 15px; }
  .contact-panel { padding: 22px 18px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-actions { gap: 12px; }
  .btn-send { width: 100%; justify-content: center; }
  .form-privacy { text-align: center; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .field input,
  .field textarea,
  .contact-link,
  .contact-back { transition: none; }
}
