.modal-body {
  .iti--separate-dial-code {
    width: 98%;
    margin-bottom: 12px;
  }

  .iti--separate-dial-code .iti__selected-flag {
    background-color: white;
    border-radius: 8px;
  }
}

/* Force Poppins on all download dialog text */
#collect_user_details_new,
#collect_user_details_new * {
  font-family: 'Poppins', sans-serif !important;
  box-sizing: border-box;
}

#collect_user_details_new {
  --download-red: #ed1a3b;
  --download-text: #141414;
  --download-muted: #6b7280;
  --download-subtle: #9ca3af;
  --download-border: #d1d5db;
  --download-card-bg: #fff;
  --download-icon-bg: rgba(237, 26, 59, 0.12);
}

/* -- Modal sizing & centering ------------------------------- */

#collect_user_details_new .modal-dialog {
  max-width: 720px !important;
  width: 92% !important;
  margin: 5vh auto !important;
}

#collect_user_details_new .modal-content {
  position: relative;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25) !important;
  border: none !important;
  height: 460px;
  padding: 0 !important;
}

/* Shared x - anchored to modal so one control works on both steps */
#collect_user_details_new .modal-content>.download-close-btn {
  z-index: 20;
}

/* -- Screen 1: split layout --------------------------------- */

#download-screen-1 {
  display: flex;
  height: 100%;
}

/* Left panel */
#collect_user_details_new .download-left-panel {
  width: 240px;
  min-width: 240px;
  background: #fff0f3;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

#collect_user_details_new .download-deco-circle {
  position: absolute;
  border-radius: 50%;
  background: var(--download-red);
  opacity: 0.07;
  pointer-events: none;
}

#collect_user_details_new .download-deco-tl {
  width: 120px;
  height: 120px;
  top: -40px;
  left: -40px;
}

#collect_user_details_new .download-deco-br {
  width: 96px;
  height: 96px;
  bottom: -32px;
  right: -32px;
}

#collect_user_details_new .download-features-heading {
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--download-red);
  margin: 0 0 4px;
  line-height: 1.4;
}

#collect_user_details_new .download-features-subtitle {
  font-size: 11px !important;
  color: var(--download-muted);
  margin: 0;
  line-height: 1.5;
}

#collect_user_details_new .download-feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

#collect_user_details_new .download-feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

#collect_user_details_new .download-feature-icon-wrap {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px;
  min-height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: var(--download-icon-bg);
  color: var(--download-red);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#collect_user_details_new .download-feature-icon-wrap svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
}

#collect_user_details_new .download-feature-label {
  font-size: 13px !important;
  font-weight: 600;
  color: var(--download-text);
  margin: 0;
  line-height: 1.3;
}

#collect_user_details_new .download-trust-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

#collect_user_details_new .download-trust-icon {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  min-height: 20px;
  border-radius: 4px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: var(--download-icon-bg);
  color: var(--download-red);
  flex-shrink: 0;
}

#collect_user_details_new .download-trust-icon svg {
  width: 14px !important;
  height: 14px !important;
}

#collect_user_details_new .download-trust-text {
  font-size: 10px !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--download-muted);
  margin: 0;
}

/* Right panel */
#collect_user_details_new .download-right-panel {
  flex: 1;
  padding: 24px 32px;
  display: flex !important;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: visible;
}

#collect_user_details_new .download-right-deco {
  position: absolute;
  top: -48px;
  right: -48px;
  width: 144px;
  height: 144px;
  border-radius: 50%;
  background: var(--download-red);
  opacity: 0.04;
  pointer-events: none;
}

/* -- Close button ------------------------------------------- */
#collect_user_details_new .download-close-btn {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px;
  min-height: 28px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: var(--download-subtle) !important;
  line-height: 1;
  padding: 0 !important;
  transition: background 0.15s, color 0.15s;
  z-index: 10;
}

#collect_user_details_new .download-close-btn:hover {
  background: rgba(107, 114, 128, 0.15) !important;
  color: #374151 !important;
  box-shadow: none !important;
}

#collect_user_details_new .download-close-btn:focus {
  outline: none !important;
  box-shadow: none !important;
}

#collect_user_details_new .download-close-btn svg {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0;
  pointer-events: none;
}

/* -- Download icon badge (shared between screens) ---------- */
#collect_user_details_new .download-icon-badge {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px;
  min-height: 56px;
  border-radius: 16px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(237, 26, 59, 0.10) !important;
  color: var(--download-red);
  margin-bottom: 8px;
  flex-shrink: 0;
}

#collect_user_details_new .download-icon-badge svg {
  width: 26px !important;
  height: 26px !important;
  flex-shrink: 0;
}

/* -- Heading ------------------------------------------------ */
#collect_user_details_new .download-screen1-heading {
  font-size: 20px !important;
  font-weight: 700;
  line-height: 1.35;
  color: var(--download-text);
  margin: 6px 0 18px;
}

#collect_user_details_new .download-red {
  color: var(--download-red) !important;
}

/* -- intl-tel-input ----------------------------------------- */

/* .iti wrapper - keep display:block so the library's absolute-positioned
flag container + dynamic padding-left on the input work correctly. */
#collect_user_details_new .iti {
  width: 100% !important;
  max-width: 340px !important;
  border: 1px solid var(--download-border) !important;
  border-radius: 12px !important;
  background: var(--download-card-bg);
  box-shadow: none !important;
  margin-bottom: 10px;
  display: block !important;
  position: relative;
  overflow: visible;
}

#collect_user_details_new .iti:focus-within {
  border-color: var(--download-border) !important;
  box-shadow: none !important;
}

#collect_user_details_new .iti--separate-dial-code {
  margin-bottom: 0;
}

#collect_user_details_new .iti--separate-dial-code .iti__selected-flag {
  background-color: #fff !important;
  border-radius: 12px 0 0 12px;
}

/* Vertical separator between dial code and input - use a pseudo-element
for a clean centered line that doesn't affect layout/padding */
#collect_user_details_new .iti__selected-flag {
  padding-right: 12px !important;
  position: relative;
  border-right: none !important;
}

#collect_user_details_new .iti__selected-flag::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: #d1d5db;
}

/* Dial code text (+91) */
#collect_user_details_new .iti__dial-code {
  color: var(--download-subtle) !important;
  font-size: 14px !important;
  font-weight: 500;
}

/* Country list dropdown - scoped to download modal so other intl-tel-input
instances on the site are not unintentionally affected. */
#collect_user_details_new .iti__country-container {
  overflow: visible;
}

#collect_user_details_new .iti__country-list {
  z-index: 9999 !important;
  max-height: 240px;
  overflow-y: auto;
}

/* Inner input - strip ALL visual chrome so only the .iti wrapper border is visible.
Target with max specificity to beat Bootstrap input[type="tel"], .form-control, etc.
Do NOT override padding-left - intl-tel-input sets it dynamically. */
#collect_user_details_new .iti input {
  border: 0 none !important;
  outline: 0 !important;
  box-shadow: none !important;
}

#collect_user_details_new .iti input#download_phone_number,
#collect_user_details_new .iti input#download_phone_number[type="tel"],
#download_phone_number {
  width: 100% !important;
  height: 46px !important;
  border: 0 none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  padding-right: 14px !important;
  font-size: 14px !important;
  font-weight: 500;
  color: var(--download-text) !important;
  background: transparent !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  margin: 0 !important;
}

#download_phone_number::placeholder {
  color: var(--download-subtle) !important;
  font-weight: 400;
  font-size: 14px !important;
}

#download_phone_number:focus,
#collect_user_details_new .iti input#download_phone_number:focus {
  outline: 0 !important;
  border: 0 none !important;
  box-shadow: none !important;
}

/* -- Error + safety messages -------------------------------- */
#download_error_message {
  font-size: 12px !important;
  font-style: italic;
  color: var(--download-red) !important;
  margin: 0 0 6px;
  width: 100%;
  max-width: 340px;
  text-align: center;
  line-height: 1.4;
}

#collect_user_details_new .download-safety-msg {
  width: 100%;
  max-width: 340px;
  font-size: 12px !important;
  font-style: italic;
  color: var(--download-red) !important;
  margin: 0 0 18px;
  text-align: center;
  line-height: 1.4;
}

/* -- Start Download button ---------------------------------- */
#download-start-btn {
  width: 100% !important;
  max-width: 340px;
  background: var(--download-red) !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 0 !important;
  border-radius: 12px;
  font-size: 15px !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(237, 26, 59, 0.35) !important;
  transition: transform 0.15s, box-shadow 0.15s;
  display: block;
  line-height: 1.2;
  margin-bottom: 6px;
}

#download-start-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(237, 26, 59, 0.45) !important;
}

#download-start-btn:active {
  transform: scale(0.98);
}

/* -- Platform note ------------------------------------------ */
#collect_user_details_new .download-platform-note {
  font-size: 12px !important;
  color: var(--download-subtle) !important;
  margin: 10px 0 0;
}

/* -- Screen 2: progress + install steps --------------------- */

#download-screen-2 {
  position: relative;
  height: 100%;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  text-align: center;
}

#collect_user_details_new .download-s2-deco-tl,
#collect_user_details_new .download-s2-deco-tr {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--download-red);
  opacity: 0.07;
  pointer-events: none;
}

#collect_user_details_new .download-s2-deco-tl {
  top: -40px;
  left: -40px;
}

#collect_user_details_new .download-s2-deco-tr {
  top: -40px;
  right: -40px;
}

#collect_user_details_new .download-s2-top {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Screen 2 icon badge - slightly smaller than screen 1 */
#download-screen-2 .download-icon-badge {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px;
  min-height: 44px;
  margin-bottom: 8px;
}

#download-screen-2 .download-icon-badge svg {
  width: 22px !important;
  height: 22px !important;
}

#collect_user_details_new .download-s2-heading {
  font-size: 20px !important;
  font-weight: 700;
  color: var(--download-text);
  margin: 0 0 2px;
}

#collect_user_details_new .download-s2-sub {
  font-size: 12px !important;
  color: var(--download-subtle);
  margin: 0;
}

/* Progress widget */
#collect_user_details_new .download-progress-widget {
  width: 100%;
  max-width: 480px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-top: 12px;
  margin-bottom: 8px;
  background: var(--download-card-bg);
  box-sizing: border-box;
}

#collect_user_details_new .download-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

#collect_user_details_new .download-progress-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

#collect_user_details_new .download-progress-icon-wrap {
  width: 24px !important;
  height: 24px !important;
  border-radius: 6px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: var(--download-icon-bg);
  color: var(--download-red);
}

#download-status {
  font-size: 14px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--download-text);
}

#download-progress-pct {
  font-size: 18px !important;
  font-weight: 800;
  color: var(--download-red);
}

#collect_user_details_new .download-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

#download-progress-bar {
  height: 100% !important;
  border-radius: 999px;
  background: var(--download-red);
  width: 0%;
  transition: width 0.1s linear;
}

/* Trust badge (green) */
#collect_user_details_new .download-trust-green {
  width: 100%;
  max-width: 480px;
  background: rgba(22, 163, 74, 0.08);
  border-radius: 8px;
  padding: 6px 16px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 0;
  box-sizing: border-box;
}

#collect_user_details_new .download-trust-green-icon {
  color: #16a34a;
  flex-shrink: 0;
  width: 16px !important;
  height: 16px !important;
}

#collect_user_details_new .download-trust-green p {
  font-size: 12px !important;
  color: var(--download-muted);
  margin: 0;
}

#collect_user_details_new .download-trust-green strong {
  color: var(--download-text);
}

/* HOW TO INSTALL */
#collect_user_details_new .download-s2-bottom {
  width: 100%;
}

#collect_user_details_new .download-install-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

#collect_user_details_new .download-install-line {
  flex: 1;
  height: 1px;
  background: rgba(237, 26, 59, 0.3);
}

#collect_user_details_new .download-install-divider span {
  font-size: 12px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--download-red);
  white-space: nowrap;
}

/* Steps */
#collect_user_details_new .download-steps-row {
  display: flex;
  gap: 20px;
  width: 100%;
  text-align: left;
}

#collect_user_details_new .download-step {
  flex: 1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

#collect_user_details_new .download-step-icon-wrap {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  min-height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: var(--download-icon-bg);
  color: var(--download-red);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#collect_user_details_new .download-step-icon-wrap svg {
  width: 18px !important;
  height: 18px !important;
}

#collect_user_details_new .download-step-num {
  font-size: 10px !important;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--download-red);
  display: block;
  margin: 0;
}

#collect_user_details_new .download-step-title {
  font-size: 12px !important;
  font-weight: 700;
  color: var(--download-text);
  margin: 2px 0 0;
}

#collect_user_details_new .download-step-desc {
  font-size: 11px !important;
  color: var(--download-muted);
  margin: 2px 0 0;
  line-height: 1.4;
}

/* -- Responsive --------------------------------------------- */

@media (max-width: 639px) {
  #collect_user_details_new .download-left-panel {
    display: none !important;
  }

  #collect_user_details_new .modal-content {
    height: auto !important;
    min-height: 460px;
  }

  #collect_user_details_new .download-steps-row {
    flex-direction: column;
    gap: 12px;
  }

  #collect_user_details_new .download-s2-heading {
    font-size: 17px !important;
  }

  #collect_user_details_new .download-screen1-heading {
    font-size: 18px !important;
  }
}