/* contact-style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -moz-tap-highlight-color: transparent;
}

@font-face {
  font-family: 'Vazir';
  src: url('/contents/font/Vazir-Black.woff2') format('woff2');
  font-display: swap;
}

body {
  font-family: 'Vazir', sans-serif;
  background: #fefaf5;
  color: #2c241a;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* دکمه بازگشت (گوشه راست بالا) */
.back-home-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #2c241a;
  color: #efeadc;
  padding: 0.6rem 1rem;
  border-radius: 3rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 100;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 1px solid #c7a252;
}
.back-home-btn:hover {
  background: #c7a252;
  color: #2c241a;
  transform: translateX(-4px);
}
.back-home-btn svg {
  width: 20px;
  height: 20px;
}

/* صفحه تماس */
.contact-page {
  padding: 4rem 0;
}

/* عنوان */
.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}
.contact-header h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  color: #3f2e1e;
}
.contact-header h1 span {
  background: linear-gradient(135deg, #b57c48, #7f5a30);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.contact-header p {
  font-size: 1.2rem;
  color: #7f6b4a;
}

/* کارت‌های اطلاعات تماس */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.contact-card {
  background: white;
  border-radius: 1.5rem;
  padding: 1.8rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #eddabc;
}
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -12px rgba(0,0,0,0.1);
  border-color: #c7a252;
}
.contact-card svg {
  width: 48px;
  height: 48px;
  color: #c7a252;
  margin-bottom: 1rem;
}
.contact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #5a3f28;
}
.contact-card p {
  color: #7f6b4a;
  margin: 0.3rem 0;
}

/* فرم تماس و نقشه */
.contact-form-map {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}
.contact-form {
  flex: 1;
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid #eddabc;
}
.contact-form h2, .contact-map h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: #b47c44;
}
.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.form-row input {
  flex: 1;
}
input, textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #e9dccc;
  border-radius: 1rem;
  font-family: 'Vazir', sans-serif;
  font-size: 1rem;
  background: #fef9ef;
  transition: all 0.2s;
  margin-bottom: 1rem;
}
input:focus, textarea:focus {
  outline: none;
  border-color: #c7a252;
  box-shadow: 0 0 0 3px rgba(199, 162, 82, 0.2);
}
.btn-submit {
  background: linear-gradient(100deg, #c7a252, #b3803c);
  border: none;
  border-radius: 1rem;
  padding: 0.9rem;
  font-size: 1rem;
  font-family: 'Vazir', sans-serif;
  font-weight: bold;
  color: white;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-submit:hover {
  background: linear-gradient(100deg, #b68a42, #a26e32);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.contact-map {
  flex: 1;
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid #eddabc;
}
.map-placeholder {
  background: #f5ede2;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.map-placeholder svg {
  width: 60px;
  height: 60px;
  color: #c7a252;
  margin-bottom: 1rem;
}
.map-placeholder p {
  color: #5b4a34;
  margin-bottom: 0.5rem;
}

/* سوالات متداول (FAQ) */
.faq-section {
  margin-top: 2rem;
}
.faq-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #3f2e1e;
}
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: white;
  border-radius: 1rem;
  border: 1px solid #eddabc;
  overflow: hidden;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}
.faq-question:hover {
  background: #fef9ef;
}
.faq-question span {
  font-size: 1.05rem;
}
.faq-question svg {
  transition: transform 0.3s;
  color: #c7a252;
}
.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
  color: #7f6b4a;
  border-top: none;
}
.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 1.5rem 1rem 1.5rem;
  border-top: 1px solid #f0e5d6;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(44, 62, 43, 0.95);
  color: #fdf8ec;
  padding: 0.8rem 1.8rem;
  border-radius: 60px;
  font-size: 0.9rem;
  z-index: 1000;
  transition: 0.2s;
  white-space: nowrap;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
}
.toast.show {
  opacity: 1;
  visibility: visible;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.toast.show {
  animation: fadeUp 0.2s ease;
}

/* ریسپانسیو */
@media (max-width: 800px) {
  .container {
    padding: 0 16px;
  }
  .contact-header h1 {
    font-size: 2rem;
  }
  .contact-cards {
    gap: 1.2rem;
  }
  .contact-form-map {
    flex-direction: column;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}
@media (max-width: 550px) {
  .contact-page {
    padding: 2rem 0;
  }
  .contact-card {
    padding: 1.2rem;
  }
  .contact-form, .contact-map {
    padding: 1.2rem;
  }
  .faq-question {
    padding: 0.8rem 1rem;
  }
  .faq-question span {
    font-size: 0.9rem;
  }
  .back-home-btn {
    top: 12px;
    right: 12px;
    padding: 0.4rem 0.8rem;
  }
}