/* ============================================================
   Contact Page Styles — matches landing page aesthetic
   ============================================================ */

/* ── Hero ── */
.contact-hero {
  position: relative;
  padding: 90px 32px 64px;
  overflow: hidden;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.contact-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,70,229,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,70,229,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center top, black 30%, transparent 70%);
}

.contact-hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float-blob 14s ease-in-out infinite;
}

.contact-hero-blob-1 {
  width: 480px;
  height: 480px;
  background: rgba(79,70,229,0.16);
  top: -120px;
  left: -100px;
}

.contact-hero-blob-2 {
  width: 520px;
  height: 520px;
  background: rgba(168,85,247,0.14);
  bottom: -200px;
  right: -100px;
  animation-delay: -7s;
}

.contact-hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.contact-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(79,70,229,0.2);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.4px;
}

.contact-hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse-soft 1.6s infinite;
}

.contact-hero-h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  margin: 22px 0 14px;
}

.contact-hero-p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Content ── */
.contact-content {
  padding: 64px 24px;
  background: var(--bg);
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

/* ── Form fields ── */
.contact-field {
  margin-bottom: 24px;
}

.contact-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.contact-char-count {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.contact-char-warn {
  color: #f59e0b;
}

.contact-char-limit {
  color: #ef4444;
}

.contact-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
  font-family: inherit;
}

.contact-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}

.contact-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.contact-field-error {
  display: none;
  font-size: 13px;
  color: #ef4444;
  margin-top: 6px;
}

/* ── Inline messages ── */
.contact-success {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.3);
  color: #065f46;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 15px;
  margin-bottom: 24px;
}

.contact-error {
  background: rgba(239,68,68,0.07);
  border: 1px solid rgba(239,68,68,0.25);
  color: #991b1b;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 15px;
  margin-bottom: 24px;
}

/* ── Submit button ── */
.contact-submit {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: block;
  margin: 0 auto;
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Dark mode ── */
[data-theme="dark"] .contact-hero-badge {
  background: rgba(31,41,55,0.7);
  border-color: rgba(99,102,241,0.3);
  color: var(--brand);
}

[data-theme="dark"] .contact-hero {
  background: var(--bg);
}

[data-theme="dark"] .contact-card {
  background: var(--white);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .contact-hero {
    padding: 72px 20px 48px;
  }

  .contact-content {
    padding: 40px 16px;
  }

  .contact-card {
    padding: 24px;
  }
}
