/* Clean 3-step credit-check modal — mobile → info → pay (Figma blue) */
.ccc-root {
  --ccc-blue: #1d4ed8;
  --ccc-blue-deep: #1e40af;
  --ccc-blue-soft: #eff6ff;
  --ccc-blue-line: #bfdbfe;
  --ccc-ink: #0f172a;
  --ccc-muted: #64748b;
  --ccc-border: #e2e8f0;
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}
.ccc-root[hidden] { display: none !important; }
.ccc-root.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.ccc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .48);
  opacity: 0;
  transition: opacity .28s ease;
}
.ccc-root.is-open .ccc-backdrop { opacity: 1; }
.ccc-modal {
  position: relative;
  width: 380px;
  max-width: calc(100vw - 28px);
  max-height: min(92vh, 760px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, .18);
  padding: 14px 18px 18px;
  font-family: Vazirmatn, IRANSansX, IRANSans, Tahoma, sans-serif;
  color: var(--ccc-ink);
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-overflow-scrolling: touch;
  transform: translateY(14px) scale(.96);
  opacity: 0;
  transition: transform .32s cubic-bezier(.22, 1, .36, 1), opacity .28s ease;
}
.ccc-root.is-open .ccc-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .ccc-root, .ccc-backdrop, .ccc-modal { transition: none !important; }
  .ccc-modal { transform: none; }
}

.ccc-top {
  position: relative;
  min-height: 28px;
  margin-bottom: 6px;
}
.ccc-close {
  position: absolute;
  top: -2px;
  left: -4px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
}
.ccc-close:hover { color: #334155; background: #f1f5f9; }

.ccc-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  margin: 4px 2px 18px;
  position: relative;
}
.ccc-stepper__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  text-align: center;
}
.ccc-stepper__dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid var(--ccc-blue-line);
  background: #fff;
  color: #94a3b8;
  font-size: .78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.ccc-stepper__item.is-active .ccc-stepper__dot,
.ccc-stepper__item.is-done .ccc-stepper__dot {
  background: var(--ccc-blue);
  border-color: var(--ccc-blue);
  color: #fff;
}
.ccc-stepper__item.is-done .ccc-stepper__dot::before {
  content: "\F26E";
  font-family: bootstrap-icons;
  font-size: .85rem;
  font-weight: 400;
}
.ccc-stepper__item.is-done .ccc-stepper__dot {
  font-size: 0;
}
.ccc-stepper__label {
  font-size: .68rem;
  font-weight: 700;
  color: #94a3b8;
  line-height: 1.35;
  max-width: 5.8rem;
}
.ccc-stepper__item.is-active .ccc-stepper__label,
.ccc-stepper__item.is-done .ccc-stepper__label {
  color: var(--ccc-blue);
}
.ccc-stepper__line {
  position: absolute;
  top: 14px;
  right: 16.5%;
  left: 16.5%;
  height: 2px;
  background: var(--ccc-blue-line);
  z-index: 0;
}

.ccc-panel[hidden] { display: none !important; }
.ccc-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 14px;
}
.ccc-hero__art {
  width: 132px;
  height: 132px;
  margin: 2px 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cccFloat 3.2s ease-in-out infinite;
}
.ccc-hero__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ccc-hero__art--sm {
  width: 108px;
  height: 108px;
  margin-bottom: 8px;
}
@keyframes cccFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .ccc-hero__art { animation: none; }
}

.ccc-title {
  margin: 0 0 6px;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--ccc-ink);
  line-height: 1.55;
  letter-spacing: -.01em;
}
.ccc-title--center { text-align: center; }
.ccc-lead {
  margin: 0 0 8px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ccc-blue);
  line-height: 1.55;
  max-width: 18.5rem;
  margin-left: auto;
  margin-right: auto;
}
.ccc-title--hero {
  text-align: center;
  font-size: 1.28rem;
  font-weight: 850;
  line-height: 1.7;
  max-width: 18.5rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 380px) {
  .ccc-title--hero { font-size: 1.36rem; }
}
.ccc-sub {
  margin: 0 0 16px;
  color: var(--ccc-muted);
  font-size: .84rem;
  font-weight: 500;
  line-height: 1.65;
}
.ccc-sub--center { text-align: center; }

.ccc-field-wrap { margin-bottom: 12px; }
.ccc-label {
  display: block;
  margin-bottom: 6px;
  font-size: .78rem;
  font-weight: 700;
  color: #334155;
}
.ccc-field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--ccc-border);
  border-radius: 12px;
  background: #fff;
  padding: 0 12px;
  min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ccc-field:focus-within {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.ccc-field__icon {
  color: #94a3b8;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.ccc-field input,
.ccc-field select {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ccc-ink);
  padding: 12px 0;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.ccc-field input::placeholder,
.ccc-field select:invalid {
  color: #94a3b8;
  font-weight: 500;
}
.ccc-field--select {
  position: relative;
  padding-left: 28px;
}
.ccc-field--select::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.ccc-debt {
  margin: 4px 0 16px;
  padding: 12px 12px 10px;
  border-radius: 14px;
  border: 1.5px solid var(--ccc-blue-line);
  background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
}
.ccc-debt__title {
  margin: 0 0 10px;
  font-size: .84rem;
  font-weight: 800;
  color: #1e3a8a;
  text-align: center;
}
.ccc-debt__opts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.ccc-debt__opt {
  position: relative;
  margin: 0;
  cursor: pointer;
}
.ccc-debt__opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.ccc-debt__chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  color: #475569;
  font-size: .8rem;
  font-weight: 700;
  text-align: center;
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.ccc-debt__opt input:checked + .ccc-debt__chip {
  border-color: var(--ccc-blue);
  background: var(--ccc-blue);
  color: #fff;
  box-shadow: 0 6px 14px rgba(29, 78, 216, .22);
}
.ccc-debt__opt:hover .ccc-debt__chip {
  border-color: #93c5fd;
}

.ccc-benefits {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ccc-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .86rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.5;
}
.ccc-benefits i {
  color: var(--ccc-blue);
  font-size: 1.05rem;
  margin-top: 1px;
  flex-shrink: 0;
}

.ccc-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f0f7ff 0%, #e8f1ff 100%);
  border: 1px solid #dbeafe;
}
.ccc-price__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ccc-price__label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--ccc-muted);
}
.ccc-price__value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ccc-blue-deep);
}
.ccc-price__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  color: var(--ccc-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(37, 99, 235, .12);
  flex-shrink: 0;
}

.ccc-btn {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  font: inherit;
  font-size: .98rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 22px rgba(29, 78, 216, .28);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.ccc-btn:hover {
  filter: brightness(1.04);
  box-shadow: 0 12px 26px rgba(29, 78, 216, .34);
}
.ccc-btn:active { transform: translateY(1px); }
.ccc-btn:disabled {
  opacity: .72;
  cursor: wait;
  filter: none;
  box-shadow: none;
  pointer-events: none;
}
.ccc-btn i { font-size: 1.05rem; }
.ccc-btn.is-loading {
  opacity: 1;
  background: linear-gradient(180deg, #3b82f6 0%, #1e40af 100%);
}
.ccc-btn__spinner {
  width: 1.05rem;
  height: 1.05rem;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cccSpin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes cccSpin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ccc-btn__spinner { animation: none; border-top-color: #fff; opacity: .85; }
}

.ccc-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: var(--ccc-muted);
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px;
}
.ccc-back:hover { color: var(--ccc-blue); }

.ccc-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 600;
}
.ccc-secure i { color: #22c55e; font-size: .9rem; }

.ccc-otp-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--ccc-blue-soft);
  border: 1px solid var(--ccc-blue-line);
  color: #1e3a8a;
  font-size: .8rem;
  font-weight: 600;
}
.ccc-otp-banner i { color: var(--ccc-blue); font-size: 1.05rem; }
.ccc-otp {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  direction: ltr;
  margin-bottom: 12px;
}
.ccc-otp input {
  width: 100%;
  min-height: 46px;
  border: 1.5px solid var(--ccc-border);
  border-radius: 10px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ccc-ink);
  background: #fff;
  outline: 0;
}
.ccc-otp input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.ccc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 0 0 12px;
  border: 0;
  background: transparent;
  color: var(--ccc-blue);
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px;
}
.ccc-link:disabled {
  color: #94a3b8;
  cursor: default;
}

.ccc-error {
  margin: 0 0 10px;
  color: #dc2626;
  font-size: .8rem;
  font-weight: 700;
  text-align: center;
}

body.ccc-open { overflow: hidden; }

/* SweetAlert above the clean credit-check modal (ccc-root is z-index 1080) */
.swal2-container.cc-swal-container,
.swal2-container {
  z-index: 20000 !important;
  position: fixed !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) 0.75rem max(0.75rem, env(safe-area-inset-bottom, 0px)) !important;
  box-sizing: border-box !important;
}
.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation {
  background: rgba(15, 23, 42, 0.48) !important;
}
.swal2-container .swal2-popup.cc-swal {
  margin: auto !important;
  align-self: center !important;
}
.swal2-popup.cc-swal {
  direction: rtl;
  border-radius: 16px;
  padding: 1.25rem 1.15rem 1.05rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
  font-family: Vazirmatn, IRANSansX, IRANSans, Tahoma, sans-serif;
  width: min(92vw, 360px);
}
.swal2-popup.cc-swal .cc-swal__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.35rem;
}
.swal2-popup.cc-swal .cc-swal__text {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.7;
  margin: 0;
}
.swal2-popup.cc-swal .swal2-actions {
  margin: 0.85rem 0 0 !important;
  width: 100%;
}
.swal2-popup.cc-swal .cc-swal__confirm {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  width: 100%;
  margin: 0 !important;
  padding: 0.7rem 1.15rem !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #1d4ed8 !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 0.92rem !important;
  font-family: inherit !important;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.28);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.swal2-popup.cc-swal .cc-swal__confirm:hover {
  filter: brightness(1.05);
}
.swal2-popup.cc-swal .cc-swal__confirm:focus {
  outline: 2px solid rgba(29, 78, 216, 0.35);
  outline-offset: 2px;
}
.swal2-popup.cc-swal .swal2-icon {
  margin: 0 auto 0.75rem;
  transform: scale(0.92);
}
