/* ===================================================================
 * Contact page (contact.html)
 * Light hero + two-column form/aside layout. Reuses .form-group,
 * .form-hint, .container from main.css; adds page-specific framing.
 * =================================================================== */

.contact-main { background: #f8fafc; min-height: 60vh; }

.contact-hero {
  padding: 88px 0 36px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.contact-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0a2540;
  margin: 0 0 14px;
}
.contact-sub {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.6;
  color: #475569;
}

.contact-section { padding: 16px 0 88px; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.contact-form-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}

.contact-form-card label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
.contact-optional { font-weight: 400; color: #94a3b8; }

.contact-form-card input,
.contact-form-card textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  font-size: 0.98rem;
  font-family: inherit;
  color: #0a2540;
  background: #fff;
  border: 1px solid #d7dee8;
  border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.contact-form-card input:focus,
.contact-form-card textarea:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}
.contact-form-card textarea { resize: vertical; min-height: 120px; }

.contact-submit {
  width: 100%;
  margin-top: 6px;
  padding: 13px 20px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: #16a34a;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.contact-submit:hover:not(:disabled) { background: #15803d; }
.contact-submit:disabled { opacity: 0.7; cursor: default; }

.contact-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.contact-privacy {
  margin: 16px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #94a3b8;
  text-align: center;
}
.contact-privacy a { color: #16a34a; }

/* Honeypot — visually hidden, off-screen, not display:none (some bots
   skip display:none fields). aria-hidden in markup keeps it from AT. */
.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Success state */
.contact-success { text-align: center; padding: 24px 8px; }
.contact-success-ico {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  color: #16a34a;
}
.contact-success-ico svg { width: 100%; height: 100%; }
.contact-success h2 { font-size: 1.4rem; color: #0a2540; margin: 0 0 10px; }
.contact-success p { color: #475569; max-width: 380px; margin: 0 auto; line-height: 1.6; }

/* Aside */
.contact-aside { display: flex; flex-direction: column; gap: 20px; }
.contact-info-block {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px;
}
.contact-info-block h3 { font-size: 1.05rem; color: #0a2540; margin: 0 0 8px; }
.contact-info-block p { font-size: 0.92rem; line-height: 1.55; color: #475569; margin: 0 0 12px; }
.contact-info-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: #16a34a;
  text-decoration: none;
}
.contact-info-link:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-hero { padding: 64px 0 28px; }
  .contact-form-card { padding: 24px; }
}
