/* ==========================================================================
   Premium Bootstrap Modal (صنایع اتصالات احمدی)
   ========================================================================== */

/* متغیرهای رنگی اختصاصی هماهنگ با تم سبز */
:root {
  --modal-bg: #ffffff;
  --modal-primary: #1a4d2e; /* سبز تیره برند شما */
  --modal-primary-light: rgba(26, 77, 46, 0.1);
  --modal-accent: #ffb300; /* رنگ تاکیدی طلایی/نارنجی ملایم برای آیکون‌ها */
  --modal-text-dark: #1f2937;
  --modal-text-muted: #4b5563;
  --modal-border: rgba(26, 77, 46, 0.08);
}

/* افکت باز شدن نرم و لوکس مودال */
.inquiry-modal-premium.modal.fade .modal-dialog {
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.inquiry-modal-premium.modal.show .modal-dialog {
  transform: scale(1) translateY(0);
}

/* کارت اصلی مودال */
.premium-modal-content {
  background: var(--modal-bg);
  border-radius: 28px !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.18),
    0 10px 30px rgba(26, 77, 46, 0.08) !important;
  overflow: hidden;
  position: relative;
}

/* بک‌گراند تاریک پشت مودال (تار کردن بک‌گراند سایت) */
.modal-backdrop.show {
  opacity: 0.6;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: #0b1a11 !important; /* سبز بسیار تیره دودی */
}

/* دکمه بستن اختصاصی و شیک */
.btn-close-premium {
  position: absolute;
  top: 20px;
  left: 20px; /* برای RTL سمت چپ قرار می‌گیرد */
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  color: var(--modal-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}

.btn-close-premium:hover {
  background: var(--modal-primary);
  color: #ffffff;
  transform: rotate(90deg);
}

/* هیرو آیکون پالس‌دار بالا */
.modal-hero-icon-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto;
}

.modal-hero-icon {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--modal-primary), #11331e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2.2rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 25px rgba(26, 77, 46, 0.3);
}

.modal-hero-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--modal-primary);
  opacity: 0.4;
  z-index: 1;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

/* عنوان و جداکننده */
.fw-extrabold {
  font-weight: 800;
  letter-spacing: -0.5px;
}

.text-primary-dark {
  color: var(--modal-primary);
}

.modal-title-separator {
  width: 60px;
  height: 4px;
  background: var(--modal-primary);
  border-radius: 10px;
}

.text-secondary-muted {
  color: var(--modal-text-muted);
  font-size: 0.95rem;
}

/* کارت شماره تماس خلاقانه */
.phone-display-card {
  background: #f8faf9;
  border: 1px dashed rgba(26, 77, 46, 0.2);
  border-radius: 18px;
  transition: all 0.3s ease;
}

.phone-display-card:hover {
  background: #f0f5f2;
  border-color: var(--modal-primary);
}

.phone-icon-small {
  width: 46px;
  height: 46px;
  background: var(--modal-primary-light);
  color: var(--modal-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.text-xs {
  font-size: 0.75rem;
  font-weight: 600;
}

.phone-link-premium {
  color: var(--modal-primary);
  text-decoration: none;
  font-family: system-ui, -apple-system, sans-serif;
  letter-spacing: 1px;
  transition: color 0.2s ease;
}

.phone-link-premium:hover {
  color: #11331e;
}

.btn-copy-phone {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--modal-text-muted);
  transition: all 0.2s ease;
}

.btn-copy-phone:hover {
  background: var(--modal-primary);
  color: #ffffff;
  border-color: var(--modal-primary);
}

/* دکمه‌های اکشن */
.btn-premium-call {
  background: linear-gradient(135deg, var(--modal-primary), #226639);
  color: #ffffff !important;
  border-radius: 14px;
  border: none;
  box-shadow: 0 8px 20px rgba(26, 77, 46, 0.25);
  transition: all 0.3s ease;
}

.btn-premium-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(26, 77, 46, 0.35);
  background: linear-gradient(135deg, #11331e, var(--modal-primary));
}

.btn-premium-dismiss {
  background: transparent;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  color: var(--modal-text-muted);
  border-radius: 14px;
  transition: all 0.25s;
}

.btn-premium-dismiss:hover {
  background: #f9fafb;
  color: var(--modal-text-dark);
  border-color: rgba(0, 0, 0, 0.15);
}
