/* ==========================================
   CONTACT PAGE STYLES (MODERN & REDESIGNED)
   ========================================== */
.contact-section {
  padding: 2rem 1rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.contact-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-color, #1e293b);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.contact-header p {
  color: var(--text-muted, #64748b);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

/* کارت‌های اطلاعات تماس */
.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
}

.info-card {
  background: var(--surface-color, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.2rem;
  text-align: right;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
  width: 100%;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  border-color: var(--primary-color, #2563eb);
}

.info-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-color, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-details {
  flex: 1;
}

.info-details h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-color, #1e293b);
  margin-bottom: 0.3rem;
}

.info-details p {
  color: var(--text-muted, #64748b);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.2rem;
}

/* اصلاح نمایش شماره تلفن‌ها در فارسی */
.info-details a {
  color: var(--primary-color, #2563eb);
  text-decoration: none;
  font-weight: 600;
  direction: ltr;
  display: inline-block;
}

.info-details a:hover {
  text-decoration: underline;
}

/* فرم تماس با ما */
.contact-form-container {
  background: var(--surface-color, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  width: 100%;
}

.contact-form-container h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-color, #1e293b);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: flex-start;
  border-bottom: 2px solid var(--border-color, #f1f5f9);
  padding-bottom: 1rem;
}

.contact-form-container h2 i {
  color: var(--primary-color, #2563eb);
  background: rgba(37, 99, 235, 0.08);
  padding: 10px;
  border-radius: 10px;
  font-size: 1.1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-color, #334155);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color, #cbd5e1);
  border-radius: 12px;
  background-color: #f8fafc;
  color: var(--text-color, #1e293b);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color, #2563eb);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

.btn-submit-contact {
  width: 100%;
  padding: 0.95rem;
  background-color: var(--primary-color, #2563eb);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition:
    background-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-submit-contact:hover {
  background-color: var(--primary-hover, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

/* Responsive Desktop */
@media (min-width: 900px) {
  .contact-section {
    padding: 3rem 2rem;
  }

  .contact-header h1 {
    font-size: 2.2rem;
  }

  /* جابجایی ستون‌ها برای تجربه کاربری بهتر (فرم در راست و کارت‌ها در چپ) */
  .contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }

  .contact-form-container {
    padding: 2.2rem;
    order: 1; /* فرم سمت راست قرار می‌گیرد */
  }

  .contact-info-cards {
    order: 2; /* کارت‌ها سمت چپ قرار می‌گیرند */
  }
}
