/* =========================================================
   صفحه تماس با ما - استایل‌های اختصاصی
   ========================================================= */

/* ===== کارت‌های راه تماس ===== */
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 2rem 1.5rem;
  background: #fff;
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.contact-card:hover {
  background: #f8f6f0;
  transform: translateY(-3px);
}

.contact-card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: rgb(185 104 53 / 10%);
  color: #b96835;
  font-size: 1.05rem;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.contact-card:hover .contact-card-icon {
  background: #b96835;
  color: #fff;
}

.contact-card:hover .contact-card-icon.bg-\[\#25d366\]\/10 {
  background: #25d366;
}

.contact-card-title {
  color: #10272e;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.contact-card-value {
  display: block;
  color: #17343c;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
}

.contact-card-hint {
  color: #9da8ab;
  font-size: 0.7rem;
  font-weight: 600;
}

@media (min-width: 1024px) {
  .contact-card {
    padding: 2.5rem 2rem;
  }
}

/* ===== فرم چند مرحله‌ای ===== */
.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.step-circle {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid rgb(23 52 60 / 15%);
  background: #fff;
  color: #9da8ab;
  font-size: 0.85rem;
  font-weight: 900;
  border-radius: 50%;
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease,
    color 0.4s ease;
}

.step-indicator.active .step-circle {
  border-color: #b96835;
  background: #b96835;
  color: #fff;
}

.step-indicator.completed .step-circle {
  border-color: #b96835;
  background: #b96835;
  color: #fff;
}

.step-check {
  display: none;
  color: #fff;
  font-size: 0.85rem;
}

.step-indicator.completed .step-number {
  display: none;
}

.step-indicator.completed .step-check {
  display: block;
}

.step-label {
  color: #9da8ab;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  transition: color 0.4s ease;
}

.step-indicator.active .step-label,
.step-indicator.completed .step-label {
  color: #17343c;
}

.step-line {
  flex: 1;
  height: 2px;
  background: rgb(23 52 60 / 10%);
  margin: 0 0.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .step-label {
    font-size: 0.65rem;
  }
  .step-circle {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }
}

/* مراحل فرم */
.form-step {
  display: none;
  animation: stepFadeIn 0.4s ease-out;
}

.form-step.active {
  display: block;
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== رادیو انتخاب سرویس ===== */
.service-radio {
  cursor: pointer;
}

.service-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-radio-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.25rem 1rem;
  min-height: 100px;
  background: #f8f6f0;
  border: 2px solid transparent;
  color: #607177;
  text-align: center;
  transition: all 0.25s ease;
}

.service-radio-box i {
  font-size: 1.4rem;
  color: #9da8ab;
  transition: color 0.25s ease;
}

.service-radio-box span {
  font-size: 0.8rem;
  font-weight: 800;
  color: #17343c;
}

.service-radio:hover .service-radio-box {
  background: #fff;
  border-color: rgb(185 104 53 / 20%);
}

.service-radio:hover .service-radio-box i {
  color: #b96835;
}

.service-radio input:checked ~ .service-radio-box {
  background: #b96835;
  border-color: #b96835;
}

.service-radio input:checked ~ .service-radio-box i,
.service-radio input:checked ~ .service-radio-box span {
  color: #fff;
}

/* ===== رادیو زمان تماس ===== */
.time-radio {
  cursor: pointer;
}

.time-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.time-radio-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem 0.5rem;
  background: #f8f6f0;
  border: 2px solid transparent;
  text-align: center;
  transition: all 0.25s ease;
}

.time-radio-box i {
  font-size: 1.15rem;
  color: #9da8ab;
  transition: color 0.25s ease;
}

.time-radio-box span:not(.time-hint) {
  font-size: 0.75rem;
  font-weight: 800;
  color: #17343c;
}

.time-hint {
  font-size: 0.65rem;
  color: #9da8ab;
  font-weight: 600;
}

.time-radio:hover .time-radio-box {
  border-color: rgb(185 104 53 / 20%);
}

.time-radio input:checked ~ .time-radio-box {
  background: #b96835;
  border-color: #b96835;
}

.time-radio input:checked ~ .time-radio-box i,
.time-radio input:checked ~ .time-radio-box span:not(.time-hint) {
  color: #fff;
}

.time-radio input:checked ~ .time-radio-box .time-hint {
  color: rgb(255 255 255 / 70%);
}

/* ===== چک‌باکس سفارشی ===== */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.5rem 0;
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-custom {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  border: 2px solid rgb(23 52 60 / 25%);
  background: #fff;
  flex-shrink: 0;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
  margin-top: 2px;
}

.checkbox-custom::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.checkbox-input:checked ~ .checkbox-custom {
  background: #b96835;
  border-color: #b96835;
}

.checkbox-input:checked ~ .checkbox-custom::after {
  opacity: 1;
}

/* ===== دکمه‌های ناوبری فرم ===== */
.form-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.85rem;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    opacity 0.25s ease,
    transform 0.2s ease;
}

.form-nav-btn.primary {
  background: #17343c;
  color: #fff;
}

.form-nav-btn.primary:hover:not(:disabled) {
  background: #b96835;
}

.form-nav-btn.secondary {
  background: transparent;
  border-color: rgb(23 52 60 / 20%);
  color: #17343c;
}

.form-nav-btn.secondary:hover:not(:disabled) {
  border-color: #b96835;
  color: #b96835;
}

.form-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.form-nav-btn:not(:disabled):active {
  transform: scale(0.97);
}

/* ===== آیکون موفقیت ===== */
.success-icon {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  background: #b96835;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  animation: successPop 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes successPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  60% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

#form-success.visible {
  display: flex;
}

/* ===== کارت آدرس ===== */
.address-card {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgb(23 52 60 / 10%);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.address-card:hover {
  border-color: rgb(185 104 53 / 25%);
  box-shadow: 0 8px 20px rgb(12 31 38 / 4%);
}

/* ===== شبکه‌های اجتماعی بزرگ ===== */
.social-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: rgb(255 255 255 / 4%);
  border: 1px solid rgb(255 255 255 / 8%);
  color: #fff;
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.social-large i {
  font-size: 1.5rem;
  color: #e2a56f;
}

.social-large span {
  font-size: 0.8rem;
  font-weight: 800;
}

.social-large:hover {
  background: rgb(226 165 111 / 10%);
  border-color: rgb(226 165 111 / 30%);
  transform: translateY(-3px);
}

/* ===== FAQ ===== */
.faq-item {
  background: #fff;
  border: 1px solid rgb(23 52 60 / 10%);
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: rgb(185 104 53 / 20%);
}

.faq-item.open {
  border-color: #b96835;
  box-shadow: 0 8px 20px rgb(12 31 38 / 5%);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: #17343c;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: right;
  cursor: pointer;
  transition: color 0.25s ease;
}

.faq-question:hover {
  color: #b96835;
}

.faq-item.open .faq-question {
  color: #b96835;
}

.faq-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: rgb(185 104 53 / 10%);
  color: #b96835;
  font-size: 0.75rem;
  border-radius: 50%;
  flex-shrink: 0;
  transition:
    transform 0.35s ease,
    background-color 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: #b96835;
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  color: #607177;
  font-size: 0.85rem;
  line-height: 2;
}

/* ===== دکمه واتساپ شناور ===== */
.whatsapp-floating {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  font-size: 1.5rem;
  border-radius: 50%;
  box-shadow: 0 8px 25px rgb(37 211 102 / 40%);
  text-decoration: none;
  animation: whatsappPulse 2.5s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.whatsapp-floating:hover {
  transform: scale(1.1);
}

.whatsapp-tooltip {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  background: #17343c;
  color: #fff;
  padding: 0.5rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    right 0.3s ease;
}

.whatsapp-tooltip::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 5px solid #17343c;
}

.whatsapp-floating:hover .whatsapp-tooltip {
  opacity: 1;
  right: 74px;
}

@keyframes whatsappPulse {
  0%,
  100% {
    box-shadow: 0 8px 25px rgb(37 211 102 / 40%);
  }
  50% {
    box-shadow: 0 8px 30px rgb(37 211 102 / 65%);
  }
}

/* ===== دکمه بازگشت به بالا ===== */
#scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 640px) {
  .whatsapp-floating {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    bottom: 1rem;
    right: 1rem;
  }

  .whatsapp-tooltip {
    display: none;
  }

  #scroll-top-btn {
    bottom: 5rem;
    left: 1rem;
  }
}

/* ===== کاهش حرکت ===== */
@media (prefers-reduced-motion: reduce) {
  .contact-card,
  .form-step,
  .success-icon,
  .whatsapp-floating,
  .social-large,
  .faq-item,
  .service-radio-box,
  .time-radio-box {
    animation: none;
    transition: none;
    transform: none;
  }
}