:root {
  --primary: #0f4c81;
  --secondary: #1d6fa5;
  --accent: #ffb703;
  --bg: #f6f9fc;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 12px 30px rgba(15, 76, 129, 0.12);
  --radius: 18px;
}

body {
  background: linear-gradient(180deg, #f6f9fc 0%, #eef4f9 100%);
  color: var(--text);
  line-height: 1.8;
}

.contact-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 20px 60px;
}

/* هیرو سکشن */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 24px;
  padding: 40px 30px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -60px;
  left: -60px;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: rgba(255, 183, 3, 0.12);
  border-radius: 50%;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 800;
  text-align: center;
}

.hero p {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

/* گرید اصلی (ستون راست و ستون چپ) */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch; /* هم‌ارتفاع کردن ستون راست و چپ */
}

/* کارت‌های عمومی */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: #fafcff;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
}

.card-body {
  padding: 22px;
}

/* ساختار ستون چپ برای هماهنگی ارتفاع */
.left-column {
  display: flex;
  flex-direction: column;
  gap: 24px; /* فاصله بین کارت شبکه‌ها و کارت نقشه */
  height: 100%;
}

/* کشیده شدن کارت نقشه برای پر کردن فضای خالی و هم‌تراز شدن با راست */
.map-card {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.map-card .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 0; /* حذف پدینگ برای چسبیدن نقشه به لبه‌های کارت */
}

/* باکس نگهدارنده نقشه */
.map-wrap-unified {
  flex-grow: 1;
  width: 100%;
  min-height: 300px;
  position: relative;
}

.map-wrap-unified iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* لیست اطلاعات تماس (سمت راست) */
.info-list {
  display: grid;
  gap: 16px;
}

.info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.info-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 12px;
  background: rgba(15, 76, 129, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.info-text h3 {
  font-size: 0.98rem;
  margin-bottom: 4px;
  color: #111827;
}

.info-text p, 
.info-text a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  word-break: break-word;
}

/* دکمه‌های شبکه‌های اجتماعی */
.socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 14px;
  color: #fff !important;
  font-weight: 600;
  transition: 0.3s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.bale-btn {
  background: #00C19B;
}
.eita-btn {
  background: #f57c00;
}
.rubika-btn {
  background: #ff0076ba;
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25d366, #1ea952);
}

.telegram-btn {
  background: linear-gradient(135deg, #229ED9, #1d87bb);
}

/* ساعت کاری و فرم‌ها */
.hours-note {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--muted);
  background: #fff8e1;
  border: 1px solid #ffe08a;
  padding: 12px 14px;
  border-radius: 12px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
}

.form-group input, 
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: 0.25s ease;
}

/* آیکون‌ها */
.icon-svg, 
.social-svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}

/* واکنش‌گرایی (ریسپانسیو) */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 1.6rem;
  }
  
  .map-wrap-unified {
    height: 350px; /* ارتفاع ثابت نقشه در حالت تک‌ستونه موبایل */
  }
}