/* =========================================================
   CONTACT — page styles (no inline hardcodings)
   - Blue buttons (scoped)
   - Light/Dark aware
   - Mobile safe (no overflow)
   ========================================================= */

/* Tokens / fallbacks */
:root{
  --page-max: 760px;
  --radius: 12px;
  --gap: 14px;
  --primary: #1a237e;
  --card: #fff;
  --text: #333;
  --border: #e0e0e0;
  --shadow: 0 2px 6px rgba(0,0,0,.06);
  --muted: #666;
}

[data-theme="dark"]{
  --card: #0f172a;
  --text: #e5e7eb;
  --border: #243143;
  --shadow: 0 2px 10px rgba(0,0,0,.35);
  --muted: #9aa6b2;
}

/* Page wrap */
.contact-wrap{
  max-width: var(--page-max);
  margin: 2rem auto;
  padding: 0 clamp(12px, 3vw, 20px);
  color: var(--text);
}

/* Title + lead */
.contact-title{
  text-align: center;
  color: var(--primary);
  margin: 0 0 .6rem;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
}
.contact-lead{
  text-align: center;
  margin: 0 auto 1.6rem;
  max-width: 640px;
  color: var(--text);
  font-size: .98rem;
}

/* Status message */
.contact-status{
  text-align: center;
  font-weight: 700;
  margin: .6rem 0 1rem;
}
.contact-status.ok{ color: #1b5e20; }
.contact-status.err{ color: #c62828; }

/* Card (form & note) */
.contact-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(16px, 3vw, 24px);
}
.contact-form{ max-width: 640px; margin: 0 auto; display: grid; gap: var(--gap); }

.contact-form label{ font-weight: 600; }
.contact-form .form-control{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  box-sizing: border-box;
}
.contact-form textarea.form-control{
  min-height: 120px;
  resize: vertical;
}

/* reCAPTCHA block */
.recaptcha-box{ margin: .2rem 0 .6rem; }

/* Buttons — force BLUE on this page */
.contact-wrap .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1rem;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: var(--shadow);
}
.contact-wrap .btn:hover{ filter: brightness(.98); }
.contact-wrap .btn:active{ transform: translateY(1px); }
.contact-wrap .btn[disabled]{ opacity: .6; cursor: not-allowed; background: #9fa8da !important; }

/* Separator + note */
.contact-sep{
  height: 1px; border: 0;
  background: var(--border);
  margin: 2rem auto;
  max-width: 640px;
}
.contact-note{
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-size: .95rem;
  color: var(--muted);
}
.contact-note strong{ color: var(--text); }

/* Mobile */
@media (max-width: 480px){
  .contact-wrap .btn{ width: 100%; }
}
