:root {
  --ink: #0f172a; /* primary text */
  --muted: #64748b; /* secondary text */
  --bg: #ffffff; /* page background */
  --card: #ffffff; /* card background */
  --line: #e5e7eb; /* subtle borders (unified) */
  --shadow: 0 8px 22px rgba(2, 8, 23, 0.1);
  --accent: #d20a1b; /* page accent */
  --brand-accent: #f97316; /* orange accent for icons/links */
  --hero-image: url(../images/nicol-JrMzz7jUD5s-unsplash.jpg);
}

/* Contact page scope (match support-page approach) */
.contact-page {
  background: var(--bg);
  color: var(--ink);
}

/* ================= HERO (support-style layering) ================= */
.contact-page .hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0b1220; /* fallback color */
}
.contact-page .hero__bg {
  position: absolute;
  inset: 0;
  background: var(--hero-image) center/cover no-repeat;
  filter: brightness(0.9);
}
.contact-page .hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.35),
    rgba(15, 23, 42, 0.65)
  );
}
.contact-page .hero__content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  padding: 48px 20px;
  max-width: 1100px;
}
.contact-page .hero h1 {
  font-size: clamp(30px, 5vw, 48px);
  margin: 0 0 0.25rem;
}
.contact-page .hero p {
  margin: 0.25rem 0 1.25rem;
  opacity: 0.95;
}

/* ---------- Base page styling ---------- */
body {
  background: var(--bg);
  color: var(--ink);
}

/* Limit link styling to the contact main content */
.contact-container a {
  color: var(--accent);
}
.contact-container a:hover,
.contact-container a:focus {
  text-decoration: underline;
}

/* Images */
.contact-container img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Focus visibility for accessibility */
.contact-container :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Wrapper */
.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px;
}

/* ---------- Hero heading (no background image; just text) ---------- */
.hero-section {
  background: var(--bg);
}
.hero-section .hero-content {
  text-align: center;
  padding: 8px 0px;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-section .hero-content h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  margin: 0;
  color: var(--ink);
}

/* ---------- Form + right info column ---------- */
.form-section {
  background: var(--bg);
  border: none;
  padding: 0;
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(560px, 2fr) minmax(280px, 1fr);
  gap: 40px;
  align-items: start;
}
@media (max-width: 980px) {
  .form-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.form-container {
  max-width: 900px;
  border-right: 1px solid var(--line);
  padding-right: 24px;
  background: transparent;
  box-shadow: none;
}
.form-container h2 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  margin: 0 0 12px;
}
.form-intro {
  color: var(--muted);
  margin: 6px 0 18px;
}

/* rows & fields */
.form-container form {
  display: grid;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: grid;
  gap: 8px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #344054;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid #d9dee7;
  border-radius: 0;
  padding: 12px 0 10px;
  background: transparent;
  font-size: 16px;
  color: var(--ink);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #98a2b3;
}

.form-group textarea {
  resize: vertical;
  min-height: 180px;
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: none;
}

/* Single input wrapper (Last Name field variant) */
.single-field-wrap {
  display: block;
}
.single-field-wrap input {
  width: 100%;
  border: none;
  border-bottom: 2px solid #e5e7eb;
  border-radius: 0;
  padding: 12px 0;
  background: transparent;
  font-size: 16px;
  color: var(--ink);
}
.single-field-wrap input::placeholder {
  color: #98a2b3;
}
.single-field-wrap input:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: none;
}

/* actions */
.form-actions {
  display: flex;
  justify-content: flex-end;
}
.submit-btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.submit-btn:hover,
.submit-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* ---------- Right column info list ---------- */
.info-box {
  background: transparent;
  border: none;
  box-shadow: none;
  padding-left: 5px;
}
.info-item {
  padding: 0 0 18px;
  margin: 0 0 18px;
  border-bottom: 1px solid #f1f5f9;
}
.info-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.info-item h4 {
  margin: 0 0 6px;
  font-size: 16px;
}
.info-copy {
  color: var(--muted);
  margin: 6px 0 0;
}

.info-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.info-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f1f5f9;
  border: none;
}
.info-icon.accent {
  background: #fff7ed;
  color: var(--brand-accent);
  border: 1px solid #ffedd5;
}

.info-box a.info-link {
  color: var(--brand-accent);
  font-weight: 600;
  text-decoration: none;
}
.info-box a.info-link:hover,
.info-box a.info-link:focus-visible {
  text-decoration: underline;
}

/* Alerts for contact form */
.contact-alert {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
}
.contact-alert.success {
  background: #e8f7ee;
  color: #135d2c;
  border: 1px solid #b7e2c4;
}
.contact-alert.error {
  background: #fdeceb;
  color: #7a1e1a;
  border: 1px solid #f5c2be;
}
.contact-alert.fade-out {
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* Hide honeypot field if present */
.hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
}
