/* ==========================================================
   Contact Page — TracPrac (Email-Only Layout)
   Uses global tokens from styles.css (colors, fonts, btns)
   ========================================================== */



/* Hero */
.contact-hero {
  position: relative;
  overflow: hidden;
  padding: 9rem 0 4rem;
  background: linear-gradient(135deg, #0d2a4d 0%, #1d4a7a 50%, #2e6aa6 100%);
  color: #fff;
  text-align: center;
}
.contact-hero .container { position: relative; z-index: 1; max-width: 820px; }
.contact-hero .eyebrow {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
}
.contact-hero h1 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
}
.contact-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}
.contact-hero .email-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s ease;
}
.contact-hero .email-cta:hover {
  background: rgba(255, 255, 255, 0.2);
}
.contact-hero .email-cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.contact-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}
.contact-hero-orb.orb-a {
  width: 380px; height: 380px;
  top: -120px; left: -120px;
  background: rgba(255, 165, 0, 0.25);
}
.contact-hero-orb.orb-b {
  width: 480px; height: 480px;
  bottom: -160px; right: -100px;
  background: rgba(30, 144, 255, 0.35);
}

/* Section wrapper */
.contact-section {
  padding: 4rem 0 6rem;
  background: #f4f7fb;
}
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
  align-items: start;
}

/* ---------- Left: Info ---------- */
.contact-info .connect-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1976ee;
  margin-bottom: 0.75rem;
}
.contact-info .connect-label svg {
  width: 14px;
  height: 14px;
}
.contact-info h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0d2a4d;
  margin: 0 0 0.75rem;
  line-height: 1.25;
}
.contact-info .lead {
  color: #4a5b75;
  line-height: 1.65;
  margin: 0;
}

/* Featured email card */
.email-card {
  position: relative;
  display: block;
  overflow: hidden;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #e3e9f2;
  box-shadow: 0 4px 24px -8px rgba(13, 42, 77, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.email-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -10px rgba(13, 42, 77, 0.18);
}
.email-card::before {
  content: "";
  position: absolute;
  top: -48px; right: -48px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(25, 118, 238, 0.15);
  filter: blur(32px);
}
.email-card-inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.email-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1976ee, #4ea0ff);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(25, 118, 238, 0.5);
}
.email-icon svg { width: 24px; height: 24px; }
.email-card-text { min-width: 0; }
.email-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7a91;
  margin: 0 0 0.25rem;
}
.email-card-address {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0d2a4d;
  word-break: break-word;
  transition: color 0.2s;
  margin: 0;
}
.email-card:hover .email-card-address { color: #1976ee; }
.email-card-desc {
  font-size: 0.875rem;
  color: #4a5b75;
  margin: 0.5rem 0 0;
  line-height: 1.5;
}

/* Trust signals */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.trust-card {
  padding: 1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e3e9f2;
}
.trust-card svg {
  width: 20px;
  height: 20px;
  color: #1976ee;
}
.trust-card-title {
  margin: 0.5rem 0 0.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0d2a4d;
}
.trust-card-desc {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7a91;
}

/* Support callout */
.support-callout {
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #0d2a4d 0%, #1d4a7a 50%, #2e6aa6 100%);
  color: #fff;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.support-callout::after {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255, 165, 0, 0.25);
  filter: blur(40px);
}
.support-icon {
  position: relative;
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.support-icon svg { width: 20px; height: 20px; }
.support-title { position: relative; margin: 0 0 0.25rem; font-weight: 600; }
.support-body { position: relative; margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 0.9rem; line-height: 1.5; }

/* ---------- Right: Form Card ---------- */
.form-card {
  background: #fff;
  border: 1px solid #e3e9f2;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 12px 40px -16px rgba(13, 42, 77, 0.15);
}
.form-head {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1.75rem;
}
.form-head-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(25, 118, 238, 0.1);
  color: #1976ee;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.form-head-icon svg { width: 20px; height: 20px; }
.form-head h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  margin: 0;
  color: #0d2a4d;
  font-weight: 700;
}
.form-head p {
  margin: 0.15rem 0 0;
  font-size: 0.875rem;
  color: #6b7a91;
}

#contactForm { display: grid; gap: 1.1rem; }
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f3357;
}
.input-wrap input,
.input-wrap textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #d6deec;
  border-radius: 10px;
  padding: 0.7rem 0.9rem !important;
  font: inherit;
  color: #0d2a4d;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 2px rgba(13, 42, 77, 0.04);
}
.input-wrap textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.input-wrap input:focus,
.input-wrap textarea:focus {
  outline: none;
  border-color: #1976ee;
  box-shadow: 0 0 0 3px rgba(25, 118, 238, 0.18);
}
.input-wrap input::placeholder,
.input-wrap textarea::placeholder { color: #95a3bb; }

/* reCAPTCHA-style box */
.recaptcha-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #d6deec;
  border-radius: 10px;
  background: #f7faff;
}
.recaptcha-box .checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: #1f3357;
}
.recaptcha-box .checkbox input { width: 18px; height: 18px; accent-color: #1976ee; }
.recaptcha-label {
  font-size: 0.65rem;
  text-align: right;
  color: #6b7a91;
  line-height: 1.3;
}
.recaptcha-label small { font-size: 0.6rem; }

.form-submit {
  width: 100%;
  margin-top: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.form-submit svg { width: 18px; height: 18px; }

.form-status {
  margin: 0;
  font-size: 0.875rem;
  text-align: center;
  min-height: 1.25rem;
}
.form-status.success { color: #198754; }
.form-status.error { color: #c0392b; }

/* Validation styles */
label.error {
  color: #c0392b;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: block;
}
.input-wrap input.error,
.input-wrap textarea.error {
  border-color: #c0392b;
}
.input-wrap input.error:focus,
.input-wrap textarea.error:focus {
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.18);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-card { padding: 1.75rem; }
}
@media (max-width: 560px) {
  .contact-hero { padding: 6rem 0 3rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-card { padding: 1.25rem; border-radius: 18px; }
  .trust-grid { grid-template-columns: 1fr; }
  .email-card { border-radius: 18px; padding: 1.25rem; }
}
