/* Contact page (contact.html) */
.page-contact .contact-hero-lead {
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  line-height: 1.75;
  color: var(--text-mid);
  font-weight: 500;
  margin: 0 auto;
  text-align: center;
  max-width: 36rem;
}
.page-contact .contact-hero-lead a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-contact .contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.15rem;
  margin: 0 auto 2.75rem;
  max-width: 56rem;
}
.page-contact .contact-card {
  border: 1px solid var(--cream-mid);
  background: var(--off-white);
  padding: 1.45rem 1.25rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-contact .contact-card-title {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 0.85rem;
  letter-spacing: 0.02em;
}
.page-contact .contact-card-line {
  margin: 0 0 0.4rem;
  font-size: clamp(0.9rem, 1.05vw, 0.98rem);
}
.page-contact .contact-card-link {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(197, 160, 89, 0.45);
  transition: color 0.2s, border-color 0.2s;
}
.page-contact .contact-card-link:hover {
  color: #a8883e;
  border-bottom-color: #a8883e;
}
.page-contact .contact-card-muted {
  color: var(--text-light);
  font-size: 0.85em;
  font-weight: 500;
}
.page-contact .contact-card-note {
  margin: 0.75rem 0 0;
  font-size: clamp(0.82rem, 0.95vw, 0.9rem);
  line-height: 1.65;
  color: var(--text-mid);
  text-align: center;
  max-width: 18rem;
}
.page-contact .contact-card-cta {
  margin: 1rem 0 0;
}
.page-contact .contact-prose h2 {
  text-align: center;
  border-top: 1px solid var(--cream-mid);
  padding-top: 1.75rem;
  margin-top: 0.5rem;
}
.page-contact .contact-prose h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* Terms & safety — shared with terms.html (EN + FA toggle) */
.page-legal { cursor: auto; }
.page-legal .cursor-dot, .page-legal .cursor-ring { display: none; }

.legal-hero {
  padding: 7.5rem 0 2.5rem;
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--cream-mid);
}
.legal-hero h1 { margin-bottom: 0.75rem; text-align: center; }
.legal-hero .eyebrow { text-align: center; margin-bottom: 1.25rem; }
.legal-hero p { max-width: 42rem; margin: 0 auto; text-align: center; }

.legal-lang-toggle {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0;
  margin: 1.75rem 0 0;
}
.legal-lang-toggle .legal-lang-btn {
  font-family: var(--sans);
  font-size: clamp(0.55rem, 0.65vw, 0.64rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  border: 1px solid rgba(197, 160, 89, 0.45);
  background: var(--white);
  color: var(--text-mid);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.legal-lang-toggle .legal-lang-btn:first-of-type { border-radius: 2px 0 0 2px; margin-right: -1px; }
.legal-lang-toggle .legal-lang-btn:last-of-type { border-radius: 0 2px 2px 0; }
.legal-lang-toggle .legal-lang-btn:hover {
  background: var(--off-white);
  color: var(--charcoal);
}
.legal-lang-toggle .legal-lang-btn[aria-pressed="true"] {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
  z-index: 1;
}
.legal-lang-toggle .legal-lang-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.legal-lang-toggle .legal-lang-fa { font-family: 'IRANYekan', Tahoma, sans-serif; font-weight: 600; letter-spacing: 0.05em; text-transform: none; font-size: 0.95rem; }

.legal-article { padding: 2.5rem 0 5.5rem; }
.legal-prose { max-width: 44rem; margin: 0 auto; }
.legal-prose.legal-narrow { max-width: 40rem; }
.legal-prose[hidden] { display: none; }

.legal-prose h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--cream-mid);
}
.legal-prose h2:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.legal-prose h3 {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  margin: 1.5rem 0 0.6rem;
  color: var(--text-mid);
}
.legal-prose p { margin: 0 0 0.9rem; }
.legal-prose ul, .legal-prose ol { margin: 0 0 1rem; padding: 0; }
.legal-prose[dir="ltr"] ul,
.legal-prose[dir="ltr"] ol { padding-left: 1.4rem; }
.legal-prose[dir="rtl"] ul,
.legal-prose[dir="rtl"] ol { padding-right: 1.4rem; padding-left: 0; }
.legal-prose[dir="ltr"] ul { list-style: disc; }
.legal-prose[dir="rtl"] ul { list-style: disc; }
.legal-prose[dir="rtl"] ul { list-style-position: inside; }
.legal-prose li { margin: 0.4rem 0; line-height: 1.75; }
.legal-prose .legal-box {
  background: var(--off-white);
  border: 1px solid var(--cream-mid);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.2rem 1.05rem;
  margin: 1.25rem 0;
  font-size: 0.92em;
  line-height: 1.7;
}
.legal-prose[dir="rtl"] .legal-box {
  border-left: 1px solid var(--cream-mid);
  border-right: 3px solid var(--gold);
}
.legal-prose--fa {
  font-family: 'IRANYekan', Tahoma, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.9;
}
.legal-prose--fa h2, .legal-prose--fa h3 { font-family: 'IRANYekan', Tahoma, sans-serif; }

.legal-back { text-align: center; margin-top: 3rem; }
.legal-back a {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.legal-page-footer { padding: 0 0 2.5rem; text-align: center; }
.legal-page-footer p { font-size: 0.8rem; color: var(--text-light); line-height: 1.75; max-width: 40rem; margin: 0 auto; }
.legal-page-footer a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

/* Thank you — post-enquiry (thank-you.html) */
.page-thank-you .legal-hero.thank-you-hero {
  --thank-you-hero-image: url("https://lirp.cdn-website.com/28cd0bb4/dms3rep/multi/opt/traditional+american+wedding-1920w.jpeg");
  padding: 6.5rem 0 5.5rem;
  min-height: min(44vh, 28rem);
  background-color: var(--charcoal-dk);
  background-image: linear-gradient(
      180deg,
      rgba(17, 17, 17, 0.84) 0%,
      rgba(26, 26, 26, 0.55) 42%,
      rgba(12, 11, 10, 0.9) 100%
    ),
    var(--thank-you-hero-image);
  background-size: cover, cover;
  background-position: center, center 30%;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(197, 160, 89, 0.25);
  position: relative;
  overflow: hidden;
}
.page-thank-you .thank-you-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 100% 60% at 50% 0%, rgba(197, 160, 89, 0.12) 0%, transparent 55%);
  pointer-events: none;
}
.page-thank-you .thank-you-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.5), transparent);
}
.page-thank-you .thank-you-hero .wrap {
  position: relative;
  z-index: 1;
}
.page-thank-you .thank-you-hero .eyebrow {
  color: var(--gold-light);
  margin-bottom: 1.1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.page-thank-you .thank-you-hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  margin: 0 auto 0.65rem;
  max-width: 16ch;
  letter-spacing: -0.02em;
  text-align: center;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}
.page-thank-you .thank-you-hero h1 em {
  color: var(--gold);
  font-style: italic;
  font-weight: 600;
}
.page-thank-you .thank-you-sub {
  font-family: var(--sans);
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  text-align: center;
  max-width: 24rem;
  margin: 0 auto;
  line-height: 1.55;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5);
}
.page-thank-you .thank-you-icon {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.35rem;
  color: var(--gold);
  filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.4));
}
.page-thank-you .thank-you-article {
  padding: 0 0 4.5rem;
  margin-top: -2.75rem;
  position: relative;
  z-index: 2;
}
.page-thank-you .thank-you-card {
  max-width: 32rem;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--cream-mid);
  border-top: 2px solid var(--gold);
  box-shadow: 0 28px 64px -24px rgba(26, 26, 26, 0.14);
  padding: clamp(1.75rem, 3.5vw, 2.5rem) clamp(1.35rem, 3vw, 2.15rem) clamp(1.9rem, 2.5vw, 2.25rem);
}
.page-thank-you .thank-you-lead {
  text-align: center;
  font-size: clamp(1.02rem, 1.2vw, 1.12rem);
  line-height: 1.7;
  color: var(--text-mid);
  margin: 0 0 0.2rem;
}
.page-thank-you .thank-you-lead strong {
  color: var(--charcoal);
  font-weight: 600;
}
.page-thank-you .thank-you-section-title {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  font-weight: 600;
  color: var(--charcoal);
  text-align: center;
  margin: 1.75rem 0 1.1rem;
  letter-spacing: 0.02em;
}
.page-thank-you .thank-you-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
  border: 1px solid var(--cream-mid);
  background: var(--off-white);
  margin-bottom: 1.75rem;
}
.page-thank-you .thank-you-step {
  display: flex;
  gap: 0.9rem 1rem;
  padding: 1rem 1.1rem 1rem 1.15rem;
  align-items: flex-start;
  border-bottom: 1px solid var(--cream-mid);
}
.page-thank-you .thank-you-step:last-child {
  border-bottom: 0;
}
.page-thank-you .thank-you-step-num {
  flex-shrink: 0;
  min-width: 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
  background: var(--charcoal);
  border: 1px solid var(--charcoal);
  margin-top: 0.12rem;
}
.page-thank-you .thank-you-step p {
  margin: 0;
  font-size: clamp(0.88rem, 1.05vw, 0.95rem);
  line-height: 1.7;
  color: var(--text-mid);
}
.page-thank-you .thank-you-step a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.page-thank-you .thank-you-step a:hover {
  color: #a8883e;
}
.page-thank-you .thank-you-outro {
  text-align: center;
  font-size: clamp(0.88rem, 1.05vw, 0.95rem);
  color: var(--text-light);
  margin: 0 0 0.1rem;
  line-height: 1.65;
}
.page-thank-you .thank-you-outro a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-thank-you .thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.page-thank-you .thank-you-actions .btn {
  min-width: 10rem;
  text-align: center;
  cursor: pointer;
}
.page-thank-you .thank-you-actions .btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--cream-mid);
}
.page-thank-you .thank-you-actions .btn-wa:hover {
  border-color: var(--green-wa);
  color: #128c3a;
  background: rgba(37, 211, 102, 0.06);
}
.page-thank-you .thank-you-actions .btn-wa svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.page-thank-you .legal-back {
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .legal-hero { padding-top: 6.2rem; }
  .legal-lang-toggle { flex-direction: column; align-items: stretch; max-width: 16rem; margin-left: auto; margin-right: auto; }
  .legal-lang-toggle .legal-lang-btn:first-of-type { border-radius: 2px; margin-right: 0; margin-bottom: -1px; }
  .legal-lang-toggle .legal-lang-btn:last-of-type { border-radius: 2px; }
  .page-thank-you .legal-hero.thank-you-hero {
    padding-top: 5.5rem;
  }
  .page-thank-you .thank-you-article {
    margin-top: -1.5rem;
  }
}
