/* ============================================================================
   PAGES/CONTACT.CSS — صفحهٔ تماس (عمومی)
   ============================================================================
   مالک:      web/secondary/contact.html — گام ۲ نقشهٔ مهاجرت
   وابستگی:   dazzle.css (card/card-glass/alert/input/textarea/btn) + لندینگ
              (navbar/footer تا گام ۵ سراسری‌اند)
   نکته:      از pages/support.css جداست — این صفحه شل عمومی دارد و تیکت‌ها
              شل اپ؛ جداسازی یعنی هیچ‌کدام استایل دیگری را بار نکشد.
   · پورت وفادار contact.css؛ فقط توکنیزه: rgba بنفش/لیمویی → var(--*-rgb)،
     #6a5a8a → --purple-wash، #8a7ab0 → --purple-quiet.
   ============================================================================ */

.contact-page-landing {
  position: relative;
  padding: 48px 16px 80px;
  background:
    radial-gradient(circle at 12% 12%, rgba(var(--purple-rgb), 0.08) 0%, transparent 45%),
    radial-gradient(circle at 88% 80%, rgba(var(--lime-rgb), 0.06) 0%, transparent 45%),
    linear-gradient(180deg, #faf9ff 0%, var(--gray-0) 60%); /* فاز ۵: #faf9ff توکنایز می‌شود */
  min-height: 100vh;
  overflow: hidden;
}

/* ===== Orbs ===== */
.contact-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.contact-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}
.contact-orb-1 {
  width: 320px;
  height: 320px;
  background: var(--landing-purple);
  top: -90px;
  inset-inline-end: -70px;
}
.contact-orb-2 {
  width: 240px;
  height: 240px;
  background: var(--landing-lime);
  bottom: 12%;
  inset-inline-start: -50px;
  opacity: 0.18;
}

/* ===== کارت اصلی (بر پایهٔ .card.card-glass سراسری) ===== */
.contact-card {
  position: relative;
  z-index: 2;
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 42px 44px 36px;
  border-radius: 28px;
}

/* ===== هدر ===== */
.contact-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(var(--purple-rgb), 0.08);
}
.contact-icon-shell {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(var(--purple-rgb), 0.09);
  color: var(--landing-purple);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(var(--purple-rgb), 0.08);
}
.contact-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--landing-purple);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lang-fa .contact-kicker {
  letter-spacing: 0;
  text-transform: none;
}
.contact-head h1 {
  margin: 0;
  color: var(--landing-ink);
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.lang-fa .contact-head h1 {
  line-height: 1.55;
  letter-spacing: 0;
}
.contact-head p {
  margin: 10px 0 0;
  color: var(--purple-wash);
  font-size: 13.5px;
  line-height: 1.85;
  max-width: 620px;
}

/* ===== اطلاعات تماس ===== */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(var(--purple-rgb), 0.04);
  border: 1px solid rgba(var(--purple-rgb), 0.08);
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-info-item svg {
  color: var(--landing-purple);
  flex-shrink: 0;
}
.contact-info-item div {
  min-width: 0;
}
.contact-info-item span {
  display: block;
  color: var(--purple-quiet);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.contact-info-item strong,
.contact-info-item a {
  display: block;
  color: var(--landing-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.contact-info-item a {
  color: var(--landing-purple-dark);
  text-decoration: none;
}
.contact-info-item a:hover {
  color: var(--landing-purple);
  text-decoration: underline;
}

/* ===== فرم ===== */
.contact-form {
  display: grid;
  gap: 16px;
}
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-field {
  display: grid;
  gap: 7px;
}
.contact-field label {
  color: var(--landing-ink);
  font-size: 11.5px;
  font-weight: 800;
}

/* ===== Altcha ===== */
.contact-altcha {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(var(--purple-rgb), 0.12);
  border-radius: 13px;
  background: rgba(var(--purple-rgb), 0.04);
}
.contact-altcha-copy strong {
  display: block;
  color: var(--landing-ink);
  font-size: 11px;
  font-weight: 800;
}
.contact-altcha-copy span {
  display: block;
  margin-top: 3px;
  color: var(--purple-quiet);
  font-size: 10px;
  line-height: 1.65;
}
.contact-altcha altcha-widget {
  display: block;
  max-width: 100%;
}

/* ===== دکمه ارسال ===== */
.contact-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 4px;
}
.contact-submit p {
  margin: 0;
  color: var(--purple-quiet);
  font-size: 10.5px;
  line-height: 1.8;
}
.contact-submit p a {
  color: var(--landing-purple-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-submit p a:hover {
  color: var(--landing-purple);
}
.contact-submit .btn {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 13px;
  font-size: 12.5px;
  font-weight: 800;
  gap: 8px;
}
.contact-submit .btn svg {
  transition: transform 0.25s ease;
}
.contact-submit .btn:hover svg {
  transform: translateX(3px);
}
.lang-fa .contact-submit .btn:hover svg {
  transform: translateX(-3px);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 720px) {
  .contact-page-landing {
    padding: 28px 12px 60px;
  }
  .contact-card {
    padding: 28px 22px 24px;
    border-radius: 22px;
  }
  .contact-head {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 18px;
  }
  .contact-icon-shell {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
  .contact-icon-shell svg {
    width: 24px;
    height: 24px;
  }
  .contact-head h1 {
    font-size: 22px;
  }
  .contact-head p {
    font-size: 12.5px;
  }
  .contact-info {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .contact-altcha {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .contact-submit {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 12px;
  }
  .contact-submit p {
    text-align: center;
  }
  .contact-submit .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-card,
  .contact-submit .btn svg {
    transition: none;
  }
}
