/* ============================================================
   Contact page — home / about language, eye-catching but calm
   ============================================================ */

body.page-contact {
  --shell-teal: #024442;
  --shell-teal-mid: #0a514d;
  --shell-teal-deep: #013a3a;
  --shell-ink: #1c3331;
  --shell-muted: #6b7d7a;
  --shell-line: #dde6e4;
  --shell-line-strong: #c5d2cf;
  --shell-soft: #f4f7f6;
  --shell-white: #ffffff;
  --shell-radius: 18px;
  --shell-radius-md: 24px;
  --shell-radius-lg: 30px;
  --shell-shadow: 0 10px 28px rgba(15, 62, 59, 0.06);
  --shell-shadow-hover: 0 16px 36px rgba(15, 62, 59, 0.1);
  --shell-content: 1080px;
  --shell-gutter: 24px;
  --shell-section-y: 72px;

  margin: 0;
  font-family: Vazirmatn, IRANSans, Tahoma, Arial, sans-serif;
  background: var(--shell-soft);
  color: var(--shell-ink);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

body.page-contact .chat-button,
body.page-contact .chat-widget,
body.page-contact #chatButton {
  display: none !important;
}

body.page-contact .main-header {
  background: rgba(247, 248, 248, 0.92) !important;
  border-bottom: 1px solid var(--shell-line);
  box-shadow: none !important;
}

body.page-contact .container:not(.nav-container) {
  width: min(var(--shell-content), calc(100% - 32px));
  max-width: var(--shell-content);
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box;
}

/* ---------- Shared ---------- */
body.page-contact .ct-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--shell-teal-mid);
  font-size: 0.86rem;
  font-weight: 700;
}

body.page-contact .ct-kicker::before,
body.page-contact .ct-kicker::after {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

body.page-contact .ct-heading {
  margin: 0 0 12px;
  color: var(--shell-teal-mid);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

body.page-contact .ct-lede {
  margin: 0;
  max-width: 36rem;
  color: var(--shell-muted);
  font-size: 1.02rem;
  line-height: 1.9;
}

body.page-contact .section-head {
  margin-bottom: 32px;
  text-align: right;
}

/* ---------- Hero ---------- */
body.page-contact .ct-hero {
  position: relative;
  overflow: hidden;
  padding: 52px var(--shell-gutter) 40px;
  background:
    radial-gradient(ellipse 60% 55% at 100% 0%, rgba(2, 68, 66, 0.08), transparent 55%),
    linear-gradient(180deg, #f7faf9 0%, var(--shell-soft) 100%);
}

body.page-contact .hero-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  left: -60px;
  bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 68, 66, 0.06), transparent 70%);
  pointer-events: none;
  animation: ctFloat 11s ease-in-out infinite;
}

@keyframes ctFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(12px, -10px); }
}

body.page-contact .hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

body.page-contact .hero-brand {
  margin: 0 0 4px;
  color: var(--shell-teal);
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

body.page-contact .ct-hero h1 {
  margin: 0 0 12px;
  color: var(--shell-ink);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 600;
  line-height: 1.5;
}

body.page-contact .ct-hero .lead {
  margin: 0 0 22px;
  max-width: 32rem;
  color: var(--shell-muted);
  font-size: 1.02rem;
  line-height: 1.9;
}

body.page-contact .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.page-contact .hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

body.page-contact .hero-btn.primary {
  background: var(--shell-teal);
  color: #fff;
  box-shadow: 0 12px 26px rgba(2, 68, 66, 0.2);
}

body.page-contact .hero-btn.primary:hover {
  background: var(--shell-teal-deep);
  transform: translateY(-2px);
}

body.page-contact .hero-btn.ghost {
  background: rgba(255, 255, 255, 0.92);
  color: var(--shell-teal-mid);
  border: 1px solid var(--shell-line-strong);
}

body.page-contact .hero-btn.ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(2, 68, 66, 0.35);
}

body.page-contact .hero-panel {
  border-radius: var(--shell-radius-lg);
  background: linear-gradient(155deg, #0a5550 0%, #024442 55%, #013633 100%);
  color: #fff;
  box-shadow: 0 20px 48px rgba(2, 68, 66, 0.2);
  overflow: hidden;
}

body.page-contact .hero-panel-inner {
  height: 100%;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.1), transparent 42%);
}

body.page-contact .hero-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.page-contact .hero-info:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

body.page-contact .hero-info i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  flex-shrink: 0;
}

body.page-contact .hero-info strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.84rem;
  font-weight: 600;
  opacity: 0.8;
}

body.page-contact .hero-info span,
body.page-contact .hero-info a {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
}

body.page-contact .hero-info a:hover {
  text-decoration: underline;
}

/* ---------- Methods ---------- */
body.page-contact .ct-methods {
  padding: var(--shell-section-y) var(--shell-gutter);
  background: var(--shell-white);
}

body.page-contact .methods-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.page-contact .method-card {
  display: flex;
  flex-direction: column;
  padding: 26px 22px;
  border-radius: var(--shell-radius-md);
  background: var(--shell-soft);
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  text-align: right;
  font: inherit;
  cursor: pointer;
  width: 100%;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body.page-contact button.method-card {
  appearance: none;
  -webkit-appearance: none;
}

body.page-contact .method-card:hover {
  transform: translateY(-4px);
  background: #fff;
  border-color: rgba(194, 206, 203, 0.85);
  box-shadow: var(--shell-shadow-hover);
}

body.page-contact .method-card.is-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  background: linear-gradient(145deg, #0a5550 0%, #024442 100%);
  color: #fff;
  box-shadow: 0 16px 36px rgba(2, 68, 66, 0.16);
}

body.page-contact .method-card.is-wide:hover {
  background: linear-gradient(145deg, #0c5e59 0%, #03504d 100%);
  border-color: transparent;
  transform: translateY(-3px);
}

body.page-contact .method-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff, #e8f2ef);
  border: 1px solid rgba(214, 224, 221, 0.95);
  color: var(--shell-teal-mid);
  font-size: 1.2rem;
  box-shadow: 0 6px 14px rgba(2, 68, 66, 0.06);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

body.page-contact .method-card:hover .method-icon {
  transform: scale(1.05);
  background: var(--shell-teal);
  color: #fff;
  border-color: var(--shell-teal);
}

body.page-contact .method-card.is-wide .method-icon {
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.14);
  border-color: transparent;
  color: #fff;
  box-shadow: none;
}

body.page-contact .method-card.is-wide:hover .method-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: scale(1.04);
}

body.page-contact .method-card h3 {
  margin: 0 0 8px;
  color: var(--shell-teal-mid);
  font-size: 1.08rem;
  font-weight: 800;
}

body.page-contact .method-card p {
  margin: 0 0 18px;
  color: var(--shell-muted);
  font-size: 0.94rem;
  line-height: 1.8;
  flex: 1;
}

body.page-contact .method-card.is-wide h3 {
  color: #fff;
  margin-bottom: 4px;
}

body.page-contact .method-card.is-wide p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

body.page-contact .method-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--shell-teal-mid);
  font-size: 0.9rem;
  font-weight: 700;
}

body.page-contact .method-card.is-wide .method-cta {
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  white-space: nowrap;
}

body.page-contact .method-card:hover .method-cta {
  gap: 12px;
}

/* ---------- Form ---------- */
body.page-contact .ct-form {
  padding: var(--shell-section-y) var(--shell-gutter) 80px;
  background: var(--shell-soft);
}

body.page-contact .form-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}

body.page-contact .form-aside {
  padding: 32px 26px;
  border-radius: var(--shell-radius-lg);
  background: var(--shell-white);
  border: 1px solid rgba(213, 223, 221, 0.8);
  box-shadow: var(--shell-shadow);
}

body.page-contact .form-aside .ct-heading {
  margin-bottom: 10px;
}

body.page-contact .form-aside .ct-lede {
  margin-bottom: 24px;
}

body.page-contact .aside-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

body.page-contact .aside-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--shell-ink);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
}

body.page-contact .aside-points i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #eef5f3, #ddeae6);
  color: var(--shell-teal-mid);
  font-size: 0.85rem;
  flex-shrink: 0;
}

body.page-contact .form-panel {
  padding: 32px 28px;
  border-radius: var(--shell-radius-lg);
  background: var(--shell-white);
  border: 1px solid rgba(213, 223, 221, 0.8);
  box-shadow: var(--shell-shadow);
}

body.page-contact .form-panel h2 {
  margin: 0 0 6px;
  color: var(--shell-teal-mid);
  font-size: 1.35rem;
  font-weight: 800;
}

body.page-contact .form-panel .form-intro {
  margin: 0 0 24px;
  color: var(--shell-muted);
  font-size: 0.95rem;
}

body.page-contact .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

body.page-contact .form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.page-contact .form-field.full {
  grid-column: 1 / -1;
}

body.page-contact .form-field label {
  color: var(--shell-teal-mid);
  font-size: 0.88rem;
  font-weight: 700;
}

body.page-contact .form-field input,
body.page-contact .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--shell-line-strong);
  border-radius: 14px;
  background: var(--shell-soft);
  color: var(--shell-ink);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

body.page-contact .form-field input:focus,
body.page-contact .form-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: rgba(2, 68, 66, 0.45);
  box-shadow: 0 0 0 4px rgba(2, 68, 66, 0.08);
}

body.page-contact .form-field textarea {
  min-height: 140px;
  resize: vertical;
}

body.page-contact .form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 24px;
  border: none;
  border-radius: 999px;
  background: var(--shell-teal);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(2, 68, 66, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

body.page-contact .form-submit:hover:not(:disabled) {
  background: var(--shell-teal-deep);
  transform: translateY(-2px);
}

body.page-contact .form-submit:disabled {
  opacity: 0.75;
  cursor: wait;
}

body.page-contact .form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}

body.page-contact .form-status.is-ok {
  display: block;
  background: #e8f5ef;
  color: #0a514d;
  border: 1px solid #c5e0d4;
}

body.page-contact .form-status.is-err {
  display: block;
  background: #fdeeee;
  color: #8b2e2e;
  border: 1px solid #f0c9c9;
}

/* ---------- Coming soon modal ---------- */
body.page-contact .ct-soon-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

body.page-contact .ct-soon-modal.is-open {
  opacity: 1;
  visibility: visible;
}

body.page-contact .ct-soon-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 40, 38, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body.page-contact .ct-soon-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 36px 28px 28px;
  border-radius: 28px;
  background: var(--shell-white);
  box-shadow: 0 24px 60px rgba(15, 62, 59, 0.22);
  text-align: center;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

body.page-contact .ct-soon-modal.is-open .ct-soon-card {
  transform: translateY(0) scale(1);
}

body.page-contact .ct-soon-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--shell-line);
  border-radius: 12px;
  background: #f7faf8;
  color: var(--shell-teal-mid);
  cursor: pointer;
}

body.page-contact .ct-soon-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 22px;
  background: linear-gradient(145deg, #e8f2ef, #d7e8e3);
  color: var(--shell-teal-mid);
  font-size: 1.7rem;
  box-shadow: 0 10px 24px rgba(2, 68, 66, 0.1);
}

body.page-contact .ct-soon-badge {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(2, 68, 66, 0.08);
  color: var(--shell-teal-mid);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

body.page-contact .ct-soon-card h2 {
  margin: 0 0 10px;
  color: var(--shell-teal);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.page-contact .ct-soon-text {
  margin: 0 0 24px;
  color: var(--shell-muted);
  font-size: 0.98rem;
  line-height: 1.85;
}

body.page-contact .ct-soon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

body.page-contact .ct-soon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

body.page-contact .ct-soon-btn.primary {
  background: var(--shell-teal);
  color: #fff;
  box-shadow: 0 10px 22px rgba(2, 68, 66, 0.18);
}

body.page-contact .ct-soon-btn.primary:hover {
  background: var(--shell-teal-deep);
  transform: translateY(-1px);
}

body.page-contact .ct-soon-btn.ghost {
  background: var(--shell-soft);
  color: var(--shell-teal-mid);
  border: 1px solid var(--shell-line-strong);
}

body.page-contact .ct-soon-btn.ghost:hover {
  transform: translateY(-1px);
  background: #fff;
}

@media (max-width: 640px) {
  body.page-contact .ct-soon-card {
    padding: 30px 20px 22px;
    border-radius: 24px;
  }

  body.page-contact .ct-soon-actions {
    flex-direction: column;
  }

  body.page-contact .ct-soon-btn {
    width: 100%;
  }
}

/* ---------- Reveal ---------- */
body.page-contact .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.page-contact .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

body.page-contact .methods-grid .method-card.reveal:nth-child(1) { transition-delay: 0.02s; }
body.page-contact .methods-grid .method-card.reveal:nth-child(2) { transition-delay: 0.08s; }
body.page-contact .methods-grid .method-card.reveal:nth-child(3) { transition-delay: 0.14s; }
body.page-contact .methods-grid .method-card.reveal:nth-child(4) { transition-delay: 0.2s; }
body.page-contact .methods-grid .method-card.reveal:nth-child(5) { transition-delay: 0.26s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  body.page-contact .hero-grid,
  body.page-contact .form-shell {
    grid-template-columns: 1fr;
  }

  body.page-contact .methods-grid {
    grid-template-columns: 1fr;
  }

  body.page-contact .method-card.is-wide {
    grid-template-columns: 1fr;
    text-align: right;
  }

  body.page-contact .method-card.is-wide .method-cta {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  body.page-contact {
    --shell-gutter: 16px;
    --shell-section-y: 52px;
  }

  body.page-contact .ct-hero {
    padding-top: 36px;
    padding-bottom: 28px;
  }

  body.page-contact .hero-panel-inner,
  body.page-contact .form-aside,
  body.page-contact .form-panel {
    padding: 22px 18px;
  }

  body.page-contact .form-grid {
    grid-template-columns: 1fr;
  }

  body.page-contact .hero-actions {
    width: 100%;
  }

  body.page-contact .hero-btn {
    flex: 1;
    justify-content: center;
  }

  body.page-contact .form-submit {
    width: 100%;
  }
}
