/* ==========================================
   CONTACT PAGE STYLES (FIXED & IMPROVED)
   ========================================== */
.contact-section {
  padding: 1.5rem 1rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.contact-header {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.contact-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

/* کارت‌های اطلاعات تماس */
.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.info-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  text-align: right;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  width: 100%;
}

.info-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.info-details {
  flex: 1;
}

.info-details h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.4rem;
}

.info-details p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 0.2rem;
}

/* اصلاح نمایش شماره تلفن‌ها در فارسی */
.info-details a {
  color: var(--primary-color);
  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);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  width: 100%;
}

.contact-form-container h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-start;
}

.contact-form-container h2 i {
  color: var(--primary-color);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.btn-submit-contact {
  width: 100%;
  padding: 0.85rem;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition:
    background-color 0.2s,
    transform 0.2s;
  margin-top: 0.5rem;
}

.btn-submit-contact:hover {
  background-color: var(--primary-hover);
}

/* Responsive Desktop */
@media (min-width: 850px) {
  .contact-section {
    padding: 3rem 2rem;
  }

  .contact-header h1 {
    font-size: 2rem;
  }

  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .contact-form-container,
  .info-card {
    padding: 1.75rem;
  }
}
