/* ==========================================================================
   Contact Page Phase 2 - Persian RTL Editorial & Pilgrimage Identity
   ========================================================================== */

:root {
  --emerald-dark: #08241a;
  --emerald-main: #0e3d2e;
  --emerald-subtle: #144d3b;
  --emerald-light: #e8f0ec;
  --gold-primary: #c49826;
  --gold-accent: #d4af37;
  --gold-soft: #f4e8c1;
  --gold-bg: #fffbf0;
  --ivory-bg: #FAF8F5;
  --surface-card: #ffffff;
  --surface-warm: #FAF7F2;
  --text-primary: #122232;
  --text-body: #243648;
  --text-muted: #576b7c;
  --border-light: #E6E0D4;
  --border-emerald: #b8d1c6;
  --border-gold: rgba(196, 152, 38, 0.35);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(14, 61, 46, 0.04);
  --shadow-md: 0 8px 24px rgba(14, 61, 46, 0.08);
  --shadow-lg: 0 16px 40px rgba(14, 61, 46, 0.12);
}

body {
  background: var(--ivory-bg) !important;
  color: var(--text-body) !important;
  font-family: 'Vazirmatn', Tahoma, sans-serif !important;
  margin: 0;
  direction: rtl;
}

.contact-shell {
  width: min(1140px, calc(100% - 32px));
  margin-inline: auto;
}

.contact-main-padding {
  padding: 28px 0 64px;
}

/* ==========================================================================
   1. Compact Cinematic Hero Header (Unified in site-hero-phase2.css)
   ========================================================================== */

/* ==========================================================================
   2. Contact Information Cards Grid
   ========================================================================== */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.contact-info-card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: 0 4px 14px rgba(14, 61, 46, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-info-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-emerald);
  box-shadow: var(--shadow-md);
}

.contact-info-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--emerald-light);
  color: var(--emerald-main);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-card__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.contact-info-card__title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.contact-info-card__text {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-body);
  margin: 0;
  word-break: break-word;
}

.contact-info-card__links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.contact-social-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-warm);
  border: 1px solid var(--border-light);
  color: var(--emerald-main);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.18s ease;
}

.contact-social-link:hover {
  background: var(--emerald-main);
  color: #FFFFFF;
  border-color: var(--emerald-main);
  transform: translateY(-2px);
}

.contact-social-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* ==========================================================================
   3. Main 2-Column Section (Form & Map)
   ========================================================================== */
.contact-main-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

/* Form Card */
.contact-form-card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: 0 10px 32px rgba(14, 61, 46, 0.06);
}

.contact-form-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.contact-form-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--emerald-main);
  border-radius: 3px;
}

.contact-form-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 24px 0;
}

/* Alerts */
.contact-alert-success {
  background: #EAF5ED;
  border: 1px solid #A8D5B5;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  color: #1B5E20;
}

.contact-alert-success strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
}

.contact-alert-success p {
  margin: 4px 0 0 0;
  font-size: 0.88rem;
  color: #2E7D32;
}

.contact-alert-error {
  background: #FDF2F2;
  border: 1px solid #F5C6CB;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #721C24;
  font-size: 0.84rem;
  margin-top: 4px;
}

/* Form Grid */
.contact-form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-input,
.contact-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  direction: rtl;
}

.contact-input:focus,
.contact-textarea:focus {
  outline: none;
  border-color: var(--emerald-main);
  box-shadow: 0 0 0 3px rgba(14, 61, 46, 0.12);
}

.contact-textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: #8C9BAA;
}

.btn-contact-submit {
  padding: 13px 28px;
  background: var(--gold-primary);
  color: #08241a;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 14px rgba(196, 152, 38, 0.28);
  width: fit-content;
  min-height: 44px;
  margin-top: 8px;
}

.btn-contact-submit:hover {
  background: var(--gold-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(196, 152, 38, 0.38);
}

/* Map Card */
.contact-map-card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(14, 61, 46, 0.06);
  display: flex;
  flex-direction: column;
}

.contact-map-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-light);
}

.contact-map-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.contact-map-title svg {
  width: 18px;
  height: 18px;
  stroke: var(--emerald-main);
  fill: none;
  stroke-width: 2;
}

.contact-map-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
}

.contact-map-frame-wrap {
  position: relative;
  width: 100%;
  min-height: 380px;
  background: var(--surface-warm);
}

.contact-map-frame {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: none;
  display: block;
}

.contact-map-badge {
  padding: 14px 20px;
  background: var(--surface-warm);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-body);
}

.contact-map-badge svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold-primary);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* ==========================================================================
   4. Closing Pilgrimage Strip
   ========================================================================== */
.news-closing-strip {
  margin-top: 56px;
  background: linear-gradient(90deg, #08241a 0%, #0e3d2e 50%, #08241a 100%);
  border-top: 2px solid var(--gold-primary);
  border-bottom: 1px solid rgba(196, 152, 38, 0.2);
  padding: 22px 16px;
  text-align: center;
  color: #FFFFFF;
}

.news-closing-strip__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-weight: 700;
  color: var(--gold-soft);
}

.news-closing-strip__icon {
  color: var(--gold-accent);
}

/* ==========================================================================
   5. Responsive Overrides
   ========================================================================== */
@media (max-width: 1024px) {
  .contact-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .contact-main-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact-form-card {
    padding: 24px 20px;
  }
  .contact-map-frame-wrap,
  .contact-map-frame {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .contact-hero {
    min-height: 190px;
    padding: 28px 0 32px;
  }
  .contact-hero__title {
    font-size: 1.5rem;
  }
  .contact-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .contact-form-row {
    grid-template-columns: 1fr;
  }
  .btn-contact-submit {
    width: 100%;
  }
}
