/* ============================================================
   چرخ گستر سهند - Contact Section
   فرم تماس صنعتی + اطلاعات تماس
   نسخه: 1.0 - Mobile First
   ============================================================ */

:root {
  --atlas-deep-blue: #0a1a2f;
  --atlas-mid-blue: #0d2240;
  --atlas-tech-blue: #134074;
  --atlas-gold: #d4af37;
  --atlas-gold-light: #e5c767;
  --atlas-copper: #b87333;
  --atlas-white: #ffffff;
  --atlas-light-gray: #e8ecf1;
  --atlas-text-on-dark: #ccd6e0;
  --atlas-text-muted: #8899aa;
  --atlas-green: #2ecc71;
  --atlas-red: #e74c3c;
  --transition-smooth: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1.2);
  --border-radius: 18px;
  --font-primary: 'IRANSans', 'Vazirmatn', 'Tahoma', sans-serif;
}

/* ==================== بخش اصلی ==================== */
.contact-section {
  background: linear-gradient(180deg, #060e1a 0%, var(--atlas-deep-blue) 50%, var(--atlas-mid-blue) 100%);
  padding: 5rem 1rem;
  font-family: var(--font-primary);
  direction: rtl;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* خط بالای بخش */
.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
      transparent 0%,
      var(--atlas-gold) 30%,
      var(--atlas-copper) 70%,
      transparent 100%);
  z-index: 1;
}

/* الگوی پس‌زمینه */
.contact-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 90%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 90% 10%, rgba(184, 115, 51, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.ct-container {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ==================== هدر ==================== */
.ct-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.ct-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.1);
  color: var(--atlas-gold);
  padding: 0.4rem 1.3rem;
  border-radius: 50px;
  font-size: 0.8rem;
  letter-spacing: 2px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  margin-bottom: 1rem;
}

.ct-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--atlas-gold);
  border-radius: 50%;
  animation: ctDotPulse 2s ease-in-out infinite;
}

@keyframes ctDotPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.8);
    opacity: 0.3;
  }
}

.ct-title {
  color: var(--atlas-white);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.ct-title-accent {
  color: var(--atlas-gold);
}

.ct-subtitle {
  color: var(--atlas-text-muted);
  font-size: 1rem;
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ==================== گرید اصلی ==================== */
.ct-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* ==================== فرم تماس ==================== */
.ct-form-wrapper {
  background: linear-gradient(145deg, rgba(19, 64, 116, 0.25), rgba(10, 26, 47, 0.6));
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.ct-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--atlas-gold), var(--atlas-copper));
}

.ct-form-title {
  color: var(--atlas-white);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ct-form-title svg {
  width: 24px;
  height: 24px;
  color: var(--atlas-gold);
}

/* گروه‌های فرم */
.ct-form-group {
  margin-bottom: 1.2rem;
}

.ct-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ct-label {
  display: block;
  color: var(--atlas-text-on-dark);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ct-label-required {
  color: var(--atlas-red);
  margin-right: 0.2rem;
}

/* اینپوت‌ها */
.ct-input,
.ct-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--atlas-white);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  outline: none;
}

.ct-input:focus,
.ct-textarea:focus {
  border-color: var(--atlas-gold);
  background: rgba(212, 175, 55, 0.05);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.08);
}

.ct-input::placeholder,
.ct-textarea::placeholder {
  color: var(--atlas-text-muted);
  opacity: 0.6;
}

.ct-textarea {
  min-height: 130px;
  resize: vertical;
}

/* دکمه ارسال */
.ct-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--atlas-gold), var(--atlas-copper));
  color: var(--atlas-deep-blue);
  border: none;
  padding: 0.95rem;
  border-radius: 12px;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.25);
  position: relative;
  overflow: hidden;
}

.ct-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
}

.ct-submit-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.3) 50%, transparent 60%);
  animation: ctBtnShine 3s ease-in-out infinite;
}

@keyframes ctBtnShine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.ct-submit-btn svg {
  width: 20px;
  height: 20px;
}

/* ==================== اطلاعات تماس ==================== */
.ct-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* کارت اطلاعات */
.ct-info-card {
  background: linear-gradient(145deg, rgba(19, 64, 116, 0.25), rgba(10, 26, 47, 0.6));
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: var(--border-radius);
  padding: 1.5rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition-smooth);
  cursor: default;
}

.ct-info-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateX(-6px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

/* آیکون */
.ct-info-icon {
  width: 50px;
  height: 50px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--atlas-gold);
  flex-shrink: 0;
  transition: all var(--transition-smooth);
}

.ct-info-card:hover .ct-info-icon {
  background: rgba(212, 175, 55, 0.2);
  transform: scale(1.1);
}

.ct-info-icon svg {
  width: 24px;
  height: 24px;
}

/* متن */
.ct-info-content {
  flex: 1;
}

.ct-info-label {
  color: var(--atlas-text-muted);
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.ct-info-value {
  color: var(--atlas-white);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
}

a.ct-info-value:hover {
  color: var(--atlas-gold);
}

/* ==================== کارت ساعت کاری ==================== */
.ct-hours-card {
  background: linear-gradient(145deg, rgba(19, 64, 116, 0.25), rgba(10, 26, 47, 0.6));
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: var(--border-radius);
  padding: 1.8rem;
}

.ct-hours-title {
  color: var(--atlas-white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ct-hours-title svg {
  width: 20px;
  height: 20px;
  color: var(--atlas-gold);
}

.ct-hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.ct-hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.ct-hours-item:last-child {
  border-bottom: none;
}

.ct-hours-day {
  color: var(--atlas-text-on-dark);
  font-size: 0.85rem;
}

.ct-hours-time {
  color: var(--atlas-gold);
  font-weight: 700;
  font-size: 0.85rem;
}

.ct-hours-time.closed {
  color: var(--atlas-red);
}

/* ==================== شبکه‌های اجتماعی ==================== */
.ct-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.ct-social-link {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--atlas-gold);
  text-decoration: none;
  transition: all 0.3s ease;
}

.ct-social-link:hover {
  background: var(--atlas-gold);
  color: var(--atlas-deep-blue);
  border-color: var(--atlas-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25);
}

.ct-social-link svg {
  width: 20px;
  height: 20px;
}

/* ==================== پیام موفقیت ==================== */
.ct-success-message {
  display: none;
  text-align: center;
  padding: 2rem;
}

.ct-success-message.active {
  display: block;
}

.ct-success-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  background: rgba(46, 204, 113, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--atlas-green);
  animation: ctSuccessPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes ctSuccessPop {
  0% {
    transform: scale(0);
  }

  80% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

.ct-success-icon svg {
  width: 36px;
  height: 36px;
}

.ct-success-title {
  color: var(--atlas-white);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ct-success-text {
  color: var(--atlas-text-muted);
  font-size: 0.9rem;
}

/* ==================== Responsive ==================== */

/* تبلت */
@media (max-width: 992px) {
  .ct-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ct-title {
    font-size: 1.8rem;
  }
}

/* موبایل */
@media (max-width: 768px) {
  .contact-section {
    padding: 3rem 0.8rem;
  }

  .ct-title {
    font-size: 1.6rem;
  }

  .ct-form-wrapper {
    padding: 1.8rem 1.2rem;
  }

  .ct-form-row {
    grid-template-columns: 1fr;
  }

  .ct-info-card {
    padding: 1.2rem;
  }
}

/* موبایل کوچک */
@media (max-width: 480px) {
  .ct-title {
    font-size: 1.4rem;
  }

  .ct-info-card:hover {
    transform: translateX(-3px);
  }
}