/* --- استایل اختصاصی فرم و صفحه تماس Maqet.ir --- */

.contact-page {
  padding: 60px 0;
  background-color: #fcfcfc;
}

/* کارت‌های اطلاعات تماس */
.info-card {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 25px;
  text-align: center;
  box-shadow: 0 10px 30px rgb(0 0 0 / 5%);
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: var(--co1);
}

.info-card .icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

.whatsapp-theme {
  border-bottom: 4px solid #25d366;
}

.direct-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 30px;
  background: #25d366;
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: bold;
}

/* استایل بدنه فرم */
.form-wrapper {
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgb(0 0 0 / 5%);
  border: 1px solid #f0f0f0;
  direction: rtl; /* اطمینان از راست‌چین بودن */
  text-align: right; /* راست‌چین کردن متن لیبل‌ها و عناوین */
}

.form-wrapper h2 {
  font-family: var(--font-heading);
  color: var(--co3);
  margin-bottom: 30px;
  font-size: 1.8rem;
  position: relative;
  padding-bottom: 10px;
}

.form-wrapper h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 3px;
  background: var(--co1);
}

/* استایل فیلدهای ورودی */
.form-wrapper input,
.form-wrapper select,
.form-wrapper textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fafafa;
  text-align: right; /* متن تایپ شده از راست شروع شود */
  direction: rtl;
}

.form-wrapper input:focus,
.form-wrapper select:focus,
.form-wrapper textarea:focus {
  border-color: var(--co1);
  background: #fff;
  outline: none;
  box-shadow: 0 0 10px rgb(255 187 22 / 10%);
}

/* دکمه ارسال */
.submit-btn {
  width: 100%;
  padding: 18px;
  background: var(--co1);
  color: var(--co3); /* متن تیره روی زرد بهتر خوانده می‌شود */
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s;
}

.submit-btn:hover {
  background: var(--co3);
  color: #fff;
  transform: scale(1.02);
}

/* بخش نقشه */
.map-section {
  margin-top: 40px;
  border-radius: 15px;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0 10px 30px rgb(0 0 0 / 10%);
}

/* -- About Us- */
.about-page {
  padding: 80px 0;
  direction: rtl;
  text-align: right;
}

.feature-item {
  padding: 30px;
  transition: 0.3s;
}

.feature-item:hover {
  transform: translateY(-10px);
}

/* ریسپانسیو مشابه صفحه تماس */
@media only screen and (width <= 768px) {
  .about-page .row-grid {
    flex-direction: column !important;
    text-align: center;
  }

  .about-page .col-lg-7 {
    padding-right: 0 !important;
    margin-top: 30px;
  }
}

/* --- */

/* هماهنگی با گرید اختصاصی شما در موبایل */

/* --- بخش بهینه شده و بدون تکرار Media Query --- */
@media only screen and (width <= 768px) {
  .contact-flex-container {
    flex-direction: column-reverse !important; /* فرم بالا، کارت‌ها پایین */
    gap: 25px;
  }

  .row-grid {
    flex-direction: column !important;
    gap: 0 !important;
  }

  .col-sm-6.col-xs-12,
  .col-xs-12 {
    width: 100% !important;
  }

  .form-wrapper {
    padding: 25px 15px;
  }

  .form-wrapper input {
    margin-bottom: 15px; /* فاصله عمودی فیلدها در موبایل */
  }

  .contact-header h1 {
    font-size: 1.6rem;
  }
}
