/* =====================================================================
   Mounjaro B2C App — Self-Contained Scoped Stylesheet
   ---------------------------------------------------------------------
   • Fully scoped under #aiv-b2c (Zero WordPress / Elementor theme collisions)
   • Self-hosted Vazirmatn font via relative @font-face
   • Zero external dependencies or CDN links
   • Print-safe isolated styles for A4 referral letter
   ===================================================================== */

/* ---------- Self-hosted font (Regular 400 + SemiBold 600 + Bold 700) ---------- */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('Vazirmatn-Regular.woff2') format('woff2'),
       url('Vazirmatn-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('Vazirmatn-Bold.woff2') format('woff2'),
       url('Vazirmatn-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('Vazirmatn-Bold.woff2') format('woff2'),
       url('Vazirmatn-Bold.woff2') format('woff2');
}

/* =====================================================================
   Design Tokens & Container Base
   ===================================================================== */
#aiv-b2c {
  --primary: #0053a6;
  --primary-hover: #0047b3;
  --primary-active: #002f78;
  --primary-container: #046bd2;
  --primary-fixed: #d6e3ff;
  --primary-fixed-dim: #aac7ff;
  --on-primary: #ffffff;
  --on-primary-fixed: #001b3e;
  --on-primary-fixed-variant: #00458d;

  --secondary: #545f73;
  --secondary-container: #d5e0f8;
  --on-secondary: #ffffff;

  --tertiary: #50565a;
  --on-tertiary: #ffffff;

  --surface: #f8f9ff;
  --surface-dim: #ccdbf4;
  --surface-bright: #f8f9ff;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #eff4ff;
  --surface-container: #e6eeff;
  --surface-container-high: #dde9ff;
  --surface-container-highest: #d5e3fd;

  --on-surface: #0d1c2f;
  --on-surface-variant: #414753;
  --background: #f8f9ff;
  --on-background: #0d1c2f;

  --outline: #727784;
  --outline-variant: #c1c6d5;
  --outline-hover: #b7bfcd;

  --error: #ba1a1a;
  --error-container: #ffdad6;
  --on-error: #ffffff;
  --danger-red: #EF4444;
  --success-green: #10B981;
  --caution-amber: #D97706;

  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 20px;  --space-6: 24px;  --space-8: 32px;  --space-10: 40px;
  --space-12: 48px; --space-16: 64px;

  --r-sm: 8px; --r: 12px; --r-md: 16px; --r-lg: 20px; --r-xl: 28px; --r-full: 9999px;

  --control-height-lg: 52px;
  --control-height: 46px;
  --control-height-sm: 40px;

  --bw: 1px;
  --bw-strong: 1.5px;
  --bw-accent: 2px;
  --border: var(--bw) solid rgba(193, 198, 213, 0.6);

  --shadow-xs: 0 1px 3px rgba(13,28,47, 0.04), 0 1px 2px rgba(13,28,47, 0.02);
  --shadow-card: 0 2px 8px rgba(13,28,47, 0.04), 0 8px 32px -8px rgba(0,83,166, 0.06);
  --shadow-hover: 0 4px 14px rgba(13,28,47, 0.06), 0 18px 44px -8px rgba(0,83,166, 0.14);
  --shadow-modal: 0 32px 80px rgba(13,28,47, 0.2), 0 12px 32px rgba(13,28,47, 0.1);

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 150ms; --dur: 250ms; --dur-slow: 400ms;

  position: relative;
  width: 100%;
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  color: var(--on-background);
  background: var(--background);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Scoped resets ---------- */
#aiv-b2c, #aiv-b2c *, #aiv-b2c *::before, #aiv-b2c *::after {
  box-sizing: border-box;
}
#aiv-b2c h1, #aiv-b2c h2, #aiv-b2c h3, #aiv-b2c h4, #aiv-b2c p, #aiv-b2c ul, #aiv-b2c li {
  margin: 0;
  padding: 0;
}
#aiv-b2c img {
  display: block;
  max-width: 100%;
}
#aiv-b2c button, #aiv-b2c input, #aiv-b2c textarea, #aiv-b2c select {
  font-family: inherit;
}
#aiv-b2c :focus-visible {
  outline: var(--bw-accent) solid var(--primary);
  outline-offset: 2px;
}
#aiv-b2c ::selection {
  background: var(--primary-fixed);
  color: var(--on-primary-fixed);
}

/* =====================================================================
   Inline SVG Icons & Icon Styles
   ===================================================================== */
#aiv-b2c svg,
#aiv-b2c .aiv-ic,
#aiv-b2c .aiv-ic-lg,
#aiv-b2c .aiv-ic-xl {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#aiv-b2c .aiv-ic {
  width: 1.25rem;
  height: 1.25rem;
}
#aiv-b2c .aiv-ic-lg {
  width: 1.5rem;
  height: 1.5rem;
}
#aiv-b2c .aiv-ic-xl {
  width: 2.25rem;
  height: 2.25rem;
}

/* =====================================================================
   Surfaces & Containers
   ===================================================================== */
#aiv-b2c .glass-panel {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 32px 0 rgba(0, 83, 166, 0.06);
}
#aiv-b2c .hero-gradient {
  background: linear-gradient(135deg, #f8f9ff 0%, #eff4ff 50%, #d6e3ff 100%);
}
#aiv-b2c .aiv-card {
  background: var(--surface-container-lowest);
  border: 1px solid rgba(193, 198, 213, 0.4);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  padding: var(--space-8);
  transition: box-shadow var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
#aiv-b2c .aiv-card:hover {
  box-shadow: var(--shadow-hover);
}

/* =====================================================================
   Pure-CSS Premium Doctor B2B Access Trigger (Hero CTA Pill)
   ===================================================================== */
#aiv-b2c a[onclick*="openDoctorModal"] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 18px 8px 14px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 246, 255, 0.98) 100%) !important;
  border: 1.5px solid rgba(0, 83, 166, 0.22) !important;
  border-radius: 9999px !important;
  color: var(--on-surface) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 16px -2px rgba(0, 83, 166, 0.08), 0 1px 3px rgba(0, 83, 166, 0.04) !important;
  position: relative !important;
  overflow: hidden !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  opacity: 1 !important;
  cursor: pointer !important;
  transition: all var(--dur) var(--ease) !important;
  animation: aivDoctorGlow 4s ease-in-out infinite !important;
}

#aiv-b2c a[onclick*="openDoctorModal"]:hover {
  background: #ffffff !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -2px rgba(0, 83, 166, 0.18), 0 0 0 3px rgba(0, 83, 166, 0.08) !important;
  text-decoration: none !important;
}

#aiv-b2c a[onclick*="openDoctorModal"]:active {
  transform: translateY(0) scale(0.99);
}

/* Stethoscope Icon Micro-Badge inside CTA */
#aiv-b2c a[onclick*="openDoctorModal"] > svg {
  width: 16px !important;
  height: 16px !important;
  padding: 5px !important;
  border-radius: 50% !important;
  background: rgba(0, 83, 166, 0.1) !important;
  color: var(--primary) !important;
  border: 1px solid rgba(0, 83, 166, 0.2) !important;
  flex-shrink: 0 !important;
  box-sizing: content-box !important;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

#aiv-b2c a[onclick*="openDoctorModal"]:hover > svg {
  transform: rotate(-10deg) scale(1.08);
  background: rgba(0, 83, 166, 0.16) !important;
}

/* Trailing Animated Action Arrow (RTL left-pointing) */
#aiv-b2c a[onclick*="openDoctorModal"]::after {
  content: '←';
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  margin-right: 2px;
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease);
}

#aiv-b2c a[onclick*="openDoctorModal"]:hover::after {
  transform: translateX(-4px);
}

/* Subtle Gentle Breathing Glow */
@keyframes aivDoctorGlow {
  0%, 100% {
    box-shadow: 0 4px 16px -2px rgba(0, 83, 166, 0.08), 0 0 0 0 rgba(0, 83, 166, 0.08);
    border-color: rgba(0, 83, 166, 0.22);
  }
  50% {
    box-shadow: 0 6px 22px -2px rgba(0, 83, 166, 0.16), 0 0 0 4px rgba(0, 83, 166, 0.1);
    border-color: rgba(0, 83, 166, 0.45);
  }
}

/* Shimmer Light Streak across Pill */
#aiv-b2c a[onclick*="openDoctorModal"]::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: rotate(25deg);
  pointer-events: none;
  animation: aivDoctorShimmer 6s infinite;
}

@keyframes aivDoctorShimmer {
  0% { left: -100%; }
  25% { left: 200%; }
  100% { left: 200%; }
}


/* =====================================================================
   Ascended Conversion Action Cards (Step 6 Results)
   ===================================================================== */
#aiv-b2c .aiv-action-card-primary {
  background: linear-gradient(165deg, #ffffff 0%, #f4f8ff 60%, #eaf2ff 100%);
  border: 2px solid rgba(0, 83, 166, 0.35);
  border-radius: var(--r-xl);
  padding: var(--space-6);
  box-shadow: 0 4px 20px -2px rgba(0, 83, 166, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
  transition: all var(--dur-slow) var(--ease);
  position: relative;
  overflow: hidden;
  height: 100%;
}
#aiv-b2c .aiv-action-card-primary::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0053a6, #046bd2, #60a5fa);
}
#aiv-b2c .aiv-action-card-primary:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -4px rgba(0, 83, 166, 0.16);
}

#aiv-b2c .aiv-action-card-secondary {
  background: #ffffff;
  border: 1.5px solid rgba(193, 198, 213, 0.7);
  border-radius: var(--r-xl);
  padding: var(--space-6);
  box-shadow: 0 2px 10px rgba(13, 28, 47, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
  transition: all var(--dur-slow) var(--ease);
  height: 100%;
}
#aiv-b2c .aiv-action-card-secondary:hover {
  border-color: rgba(0, 83, 166, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 28, 47, 0.08);
}

#aiv-b2c .aiv-card-badge-vip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 83, 166, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 83, 166, 0.2);
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 700;
}
#aiv-b2c .aiv-card-badge-sec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-container-high);
  color: var(--on-surface-variant);
  border: 1px solid rgba(193, 198, 213, 0.4);
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 700;
}

#aiv-b2c .aiv-perk-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--on-surface-variant);
  line-height: 1.6;
  text-align: right;
}
#aiv-b2c .aiv-perk-row svg {
  color: var(--success-green);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}

/* =====================================================================
   Buttons
   ===================================================================== */
#aiv-b2c .aiv-btn {
  --btn-h: var(--control-height);
  --btn-px: var(--space-5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--btn-h);
  padding: 8px var(--btn-px);
  border: var(--bw) solid transparent;
  border-radius: var(--r-full);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: none;
  cursor: pointer;
  user-select: none;
  max-width: 100%;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur-fast) var(--ease-spring);
}
#aiv-b2c .aiv-btn:hover {
  text-decoration: none;
}
#aiv-b2c .aiv-btn-lg {
  --btn-h: var(--control-height-lg);
  --btn-px: var(--space-6);
  font-size: 15px;
  font-weight: 700;
}
#aiv-b2c .aiv-btn-sm {
  --btn-h: var(--control-height-sm);
  --btn-px: var(--space-4);
  font-size: 13px;
}
#aiv-b2c .aiv-btn:disabled, #aiv-b2c .aiv-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

#aiv-b2c .aiv-btn-primary {
  background: linear-gradient(180deg, #046bd2 0%, #0053a6 100%);
  color: var(--on-primary);
  box-shadow: 0 4px 14px rgba(0,83,166,0.28), 0 1px 3px rgba(0,83,166,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
}
#aiv-b2c .aiv-btn-primary:not(:disabled):hover {
  background: linear-gradient(180deg, #0578e8 0%, #046bd2 100%);
  box-shadow: 0 8px 26px rgba(0,83,166,0.38), 0 2px 6px rgba(0,83,166,0.2), inset 0 1px 0 rgba(255,255,255,0.25);
  transform: translateY(-1px) scale(1.005);
}
#aiv-b2c .aiv-btn-primary:not(:disabled):active {
  background: linear-gradient(180deg, #0047b3 0%, #002f78 100%);
  box-shadow: 0 2px 6px rgba(0,83,166,0.2), inset 0 1px 2px rgba(0,0,0,0.1);
  transform: translateY(0) scale(0.99);
}

#aiv-b2c .aiv-btn-secondary {
  background: rgba(255,255,255,0.95);
  color: var(--primary);
  border-color: rgba(0,83,166,0.3);
  box-shadow: 0 1px 3px rgba(13,28,47,0.04), inset 0 1px 0 rgba(255,255,255,0.7);
}
#aiv-b2c .aiv-btn-secondary:not(:disabled):hover {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(0,83,166,0.12), inset 0 1px 0 rgba(255,255,255,0.9);
  transform: translateY(-1px);
}
#aiv-b2c .aiv-btn-secondary:not(:disabled):active {
  background: var(--surface-container-low);
  transform: translateY(0);
}

#aiv-b2c .aiv-btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: transparent;
}
#aiv-b2c .aiv-btn-ghost:not(:disabled):hover {
  background: rgba(0,83,166,0.06);
  border-color: rgba(0,83,166,0.2);
}

/* =====================================================================
   Form Fields & Inputs
   ==================================================================== */
#aiv-b2c .aiv-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
  text-align: right;
}
#aiv-b2c .aiv-field > label, #aiv-b2c .aiv-label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--on-surface);
}
#aiv-b2c input.aiv-input, #aiv-b2c textarea.aiv-input, #aiv-b2c select.aiv-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid rgba(193, 198, 213, 0.6);
  border-radius: var(--r-lg);
  height: var(--control-height);
  padding: 0 var(--space-4);
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--on-surface);
  box-shadow: 0 1px 3px rgba(13,28,47,0.04);
  transition: all var(--dur) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
#aiv-b2c input.aiv-input::placeholder, #aiv-b2c textarea.aiv-input::placeholder {
  color: #8b93a3;
  opacity: 0.7;
}
#aiv-b2c input.aiv-input:not(:disabled):hover {
  border-color: rgba(0,83,166,0.3);
}
#aiv-b2c input.aiv-input:focus, #aiv-b2c textarea.aiv-input:focus {
  background: #ffffff;
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 83, 166, 0.12);
}
#aiv-b2c input.aiv-input.is-error, #aiv-b2c textarea.aiv-input.is-error {
  border-color: var(--error);
}
#aiv-b2c input.aiv-input.is-error:focus {
  box-shadow: 0 0 0 4px rgba(186, 26, 26, 0.1);
}
#aiv-b2c .aiv-field-err {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 13px;
  line-height: 1.4;
  color: var(--error);
  font-weight: 500;
  margin-top: 4px;
}

/* =====================================================================
   Option Cards (Checkboxes & Radios)
   ===================================================================== */
#aiv-b2c .aiv-option-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--surface-container-lowest);
  border: 1.5px solid rgba(193, 198, 213, 0.5);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  user-select: none;
}
#aiv-b2c .aiv-option-card:hover {
  background: rgba(0,83,166,0.02);
  border-color: rgba(0,83,166,0.28);
  transform: translateY(-1px);
  box-shadow: var(--shadow-xs);
}
#aiv-b2c .aiv-option-card.selected {
  background: linear-gradient(135deg, rgba(0,83,166,0.04) 0%, rgba(4,107,210,0.07) 100%);
  border-color: var(--primary);
  border-width: 1.5px;
  box-shadow: 0 2px 8px rgba(0,83,166,0.08);
}
#aiv-b2c .aiv-option-card input[type="radio"],
#aiv-b2c .aiv-option-card input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--primary);
  border-radius: 6px;
  border: 2px solid rgba(193, 198, 213, 0.9);
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  flex-shrink: 0;
  position: relative;
}
#aiv-b2c .aiv-option-card input[type="radio"] {
  border-radius: 50%;
}
#aiv-b2c .aiv-option-card input:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 83, 166, 0.08);
}
#aiv-b2c .aiv-option-card input:checked {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 83, 166, 0.3);
}
#aiv-b2c .aiv-option-card input:checked::after {
  content: '';
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
}

/* =====================================================================
   Badges, Chips & Alerts
   ===================================================================== */
#aiv-b2c .aiv-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 700;
}
#aiv-b2c .aiv-chip-verified {
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
#aiv-b2c .aiv-chip-primary {
  background: var(--surface-container-lowest);
  color: var(--primary);
  border: 1px solid rgba(193, 198, 213, 0.4);
}
#aiv-b2c .aiv-alert-caution {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  color: #92400e;
  border-radius: var(--r-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  text-align: right;
}

/* =====================================================================
   Wizard Flow & Step Transitions
   ===================================================================== */
#aiv-b2c .wizard-step {
  display: none !important;
  opacity: 0;
  transform: translateY(10px);
}
#aiv-b2c .wizard-step.active {
  display: block !important;
  animation: aivStepFadeIn var(--dur-slow) var(--ease) forwards;
}
@keyframes aivStepFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Progress bar */
#aiv-b2c .progress-container {
  width: 100%;
  height: 8px;
  background-color: var(--surface-container-high);
  border-radius: var(--r-full);
  overflow: hidden;
  margin-bottom: var(--space-6);
}
#aiv-b2c .progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #046bd2, #0053a6);
  border-radius: var(--r-full);
  transition: width var(--dur-slow) var(--ease);
}

/* =====================================================================
   Modals (Doctor modal, CRO Info modal, High-intent modal)
   ===================================================================== */
#aiv-b2c .aiv-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 28, 47, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
#aiv-b2c .aiv-modal-backdrop.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  display: flex !important;
}
#aiv-b2c .aiv-modal-box {
  background: #ffffff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-6) var(--space-8);
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform var(--dur) var(--ease-spring);
  text-align: right;
}
#aiv-b2c .aiv-modal-backdrop.is-open .aiv-modal-box {
  transform: translateY(0) scale(1);
}
#aiv-b2c .aiv-modal-close {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(193, 198, 213, 0.5);
  background: var(--surface-container-low);
  color: var(--on-surface-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
#aiv-b2c .aiv-modal-close:hover {
  background: var(--surface-container-high);
  color: var(--on-surface);
}

#aiv-b2c .aiv-ok-view {
  text-align: center;
  padding: var(--space-6) 0;
}
#aiv-b2c .aiv-ok-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
}
#aiv-b2c .aiv-ok-recap {
  background: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-lg);
  padding: var(--space-4) var(--space-5);
  text-align: right;
  margin: var(--space-4) 0;
  font-size: 14px;
  line-height: 1.8;
}

/* =====================================================================
   General Utilities (Tailwind replacement - Scoped)
   ===================================================================== */
#aiv-b2c .hidden { display: none !important; }
#aiv-b2c .flex { display: flex; }
#aiv-b2c .inline-flex { display: inline-flex; }
#aiv-b2c .grid { display: grid; }
#aiv-b2c .flex-1 { flex: 1 1 0%; }
#aiv-b2c .flex-col { flex-direction: column; }
#aiv-b2c .flex-row-reverse { flex-direction: row-reverse; }
#aiv-b2c .flex-wrap { flex-wrap: wrap; }
#aiv-b2c .items-center { align-items: center; }
#aiv-b2c .items-start { align-items: flex-start; }
#aiv-b2c .items-stretch { align-items: stretch; }
#aiv-b2c .self-start { align-self: flex-start; }
#aiv-b2c .justify-between { justify-content: space-between; }
#aiv-b2c .justify-center { justify-content: center; }
#aiv-b2c .justify-start { justify-content: flex-start; }
#aiv-b2c .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
#aiv-b2c .mx-auto { margin-left: auto; margin-right: auto; }
#aiv-b2c .shrink-0 { flex-shrink: 0; }
#aiv-b2c .pointer-events-none { pointer-events: none; }
#aiv-b2c .overflow-hidden { overflow: hidden; }
#aiv-b2c .object-cover { object-fit: cover; }
#aiv-b2c .h-full { height: 100%; }

#aiv-b2c .relative { position: relative; }
#aiv-b2c .absolute { position: absolute; }
#aiv-b2c .inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
#aiv-b2c .z-10 { z-index: 10; }
#aiv-b2c .-top-40 { top: -10rem; }
#aiv-b2c .top-40 { top: 10rem; }
#aiv-b2c .-right-40 { right: -10rem; }
#aiv-b2c .-left-20 { left: -5rem; }
#aiv-b2c .bottom-6 { bottom: 1.5rem; }
#aiv-b2c .left-6 { left: 1.5rem; }
#aiv-b2c .right-6 { right: 1.5rem; }

#aiv-b2c .w-2 { width: 0.5rem; }
#aiv-b2c .w-6 { width: 1.5rem; }
#aiv-b2c .w-12 { width: 3rem; }
#aiv-b2c .w-20 { width: 5rem; }
#aiv-b2c .w-full { width: 100%; }
#aiv-b2c .w-\[500px\] { width: 500px; }
#aiv-b2c .w-\[600px\] { width: 600px; }
#aiv-b2c .h-2 { height: 0.5rem; }
#aiv-b2c .h-6 { height: 1.5rem; }
#aiv-b2c .h-12 { height: 3rem; }
#aiv-b2c .h-20 { height: 5rem; }
#aiv-b2c .h-auto { height: auto; }
#aiv-b2c .h-\[500px\] { height: 500px; }
#aiv-b2c .h-\[600px\] { height: 600px; }
#aiv-b2c .min-h-screen { min-height: 100vh; }
#aiv-b2c .min-h-\[90vh\] { min-height: 90vh; }
#aiv-b2c .max-w-md { max-width: 28rem; }
#aiv-b2c .max-w-xl { max-width: 36rem; }
#aiv-b2c .max-w-2xl { max-width: 42rem; }
#aiv-b2c .max-w-3xl { max-width: 48rem; }
#aiv-b2c .max-w-container-max { max-width: 1280px; }
#aiv-b2c .aspect-\[4\/5\] { aspect-ratio: 4 / 5; }

#aiv-b2c .gap-2 { gap: 0.5rem; }
#aiv-b2c .gap-2\.5 { gap: 0.625rem; }
#aiv-b2c .gap-3 { gap: 0.75rem; }
#aiv-b2c .gap-3\.5 { gap: 0.875rem; }
#aiv-b2c .gap-4 { gap: 1rem; }
#aiv-b2c .gap-6 { gap: 1.5rem; }
#aiv-b2c .gap-8 { gap: 2rem; }

#aiv-b2c .m-0 { margin: 0; }
#aiv-b2c .mb-1 { margin-bottom: 0.25rem; }
#aiv-b2c .mb-1\.5 { margin-bottom: 0.375rem; }
#aiv-b2c .mb-2 { margin-bottom: 0.5rem; }
#aiv-b2c .mb-2\.5 { margin-bottom: 0.625rem; }
#aiv-b2c .mb-3 { margin-bottom: 0.75rem; }
#aiv-b2c .mb-4 { margin-bottom: 1rem; }
#aiv-b2c .mb-5 { margin-bottom: 1.25rem; }
#aiv-b2c .mb-6 { margin-bottom: 1.5rem; }
#aiv-b2c .mb-8 { margin-bottom: 2rem; }
#aiv-b2c .mt-0\.5 { margin-top: 0.125rem; }
#aiv-b2c .mt-2 { margin-top: 0.5rem; }
#aiv-b2c .mt-4 { margin-top: 1rem; }
#aiv-b2c .mt-6 { margin-top: 1.5rem; }
#aiv-b2c .mt-8 { margin-top: 2rem; }

#aiv-b2c .p-3\.5 { padding: 0.875rem; }
#aiv-b2c .p-4 { padding: 1rem; }
#aiv-b2c .p-5 { padding: 1.25rem; }
#aiv-b2c .p-6 { padding: 1.5rem; }
#aiv-b2c .px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
#aiv-b2c .px-4 { padding-left: 1rem; padding-right: 1rem; }
#aiv-b2c .px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
#aiv-b2c .px-margin-desktop { padding-left: 40px; padding-right: 40px; }
#aiv-b2c .py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
#aiv-b2c .py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
#aiv-b2c .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
#aiv-b2c .py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
#aiv-b2c .py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
#aiv-b2c .pt-2 { padding-top: 0.5rem; }
#aiv-b2c .pt-4 { padding-top: 1rem; }
#aiv-b2c .pt-6 { padding-top: 1.5rem; }
#aiv-b2c .pt-8 { padding-top: 2rem; }

#aiv-b2c .space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
#aiv-b2c .space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
#aiv-b2c .space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem; }
#aiv-b2c .space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
#aiv-b2c .space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
#aiv-b2c .space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }

#aiv-b2c .font-normal { font-weight: 400; }
#aiv-b2c .font-medium { font-weight: 500; }
#aiv-b2c .font-semibold { font-weight: 600; }
#aiv-b2c .font-bold { font-weight: 700; }
#aiv-b2c .font-extrabold { font-weight: 800; }
#aiv-b2c .text-xs { font-size: 0.75rem; line-height: 1.25rem; }
#aiv-b2c .text-sm { font-size: 0.875rem; line-height: 1.55rem; }
#aiv-b2c .text-base { font-size: 1rem; line-height: 1.65rem; }
#aiv-b2c .text-lg { font-size: 1.125rem; line-height: 1.75rem; }
#aiv-b2c .text-xl { font-size: 1.25rem; line-height: 1.85rem; }
#aiv-b2c .text-2xl { font-size: 1.5rem; line-height: 2.1rem; }
#aiv-b2c .text-3xl { font-size: 1.875rem; line-height: 2.35rem; }
#aiv-b2c .text-4xl { font-size: 2.25rem; line-height: 2.65rem; }
#aiv-b2c .leading-tight { line-height: 1.25; }
#aiv-b2c .leading-relaxed { line-height: 1.8; }
#aiv-b2c .text-center { text-align: center; }
#aiv-b2c .text-right { text-align: right; }
#aiv-b2c .text-left { text-align: left; }

#aiv-b2c .text-primary { color: var(--primary); }
#aiv-b2c .text-secondary { color: var(--secondary); }
#aiv-b2c .text-on-background { color: var(--on-background); }
#aiv-b2c .text-on-surface { color: var(--on-surface); }
#aiv-b2c .text-on-surface-variant { color: var(--on-surface-variant); }
#aiv-b2c .text-danger-red { color: var(--danger-red); }
#aiv-b2c .text-success-green { color: var(--success-green); }

#aiv-b2c .bg-background { background-color: var(--background); }
#aiv-b2c .bg-primary-fixed { background-color: var(--primary-fixed); }
#aiv-b2c .bg-secondary-container { background-color: var(--secondary-container); }
#aiv-b2c .bg-success-green { background-color: var(--success-green); }
#aiv-b2c .bg-surface-container-high { background-color: var(--surface-container-high); }
#aiv-b2c .bg-surface-container-low { background-color: var(--surface-container-low); }
#aiv-b2c .bg-surface-container-lowest { background-color: var(--surface-container-lowest); }
#aiv-b2c .bg-primary\/10 { background-color: rgba(0, 83, 166, 0.1); }
#aiv-b2c .bg-success-green\/10 { background-color: rgba(16, 185, 129, 0.1); }

#aiv-b2c .border { border-width: 1px; border-style: solid; border-color: currentColor; }
#aiv-b2c .border-t { border-top-width: 1px; border-top-style: solid; border-top-color: currentColor; }
#aiv-b2c .border-outline-variant { border-color: var(--outline-variant); }
#aiv-b2c .border-outline-variant\/30 { border-color: rgba(193, 198, 213, 0.3); }
#aiv-b2c .border-outline-variant\/40 { border-color: rgba(193, 198, 213, 0.4); }
#aiv-b2c .border-outline-variant\/50 { border-color: rgba(193, 198, 213, 0.5); }
#aiv-b2c .border-primary-fixed-dim { border-color: var(--primary-fixed-dim); }
#aiv-b2c .border-surface-container-lowest { border-color: var(--surface-container-lowest); }

#aiv-b2c .rounded-xl { border-radius: 0.75rem; }
#aiv-b2c .rounded-2xl { border-radius: 1rem; }
#aiv-b2c .rounded-3xl { border-radius: 1.5rem; }
#aiv-b2c .rounded-full { border-radius: 9999px; }

#aiv-b2c .shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }
#aiv-b2c .shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
#aiv-b2c .shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
#aiv-b2c .blur-3xl { filter: blur(64px); }
#aiv-b2c .opacity-40 { opacity: 0.4; }
#aiv-b2c .opacity-50 { opacity: 0.5; }
#aiv-b2c .mix-blend-multiply { mix-blend-mode: multiply; }

#aiv-b2c .animate-pulse { animation: aivPulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }
#aiv-b2c .animate-pulse-slow { animation: aivPulse 3.5s cubic-bezier(0.4,0,0.6,1) infinite; }
#aiv-b2c .animation-delay-2000 { animation-delay: 2s; }
@keyframes aivPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* =====================================================================
   Responsive Queries
   ===================================================================== */
@media (min-width: 640px) {
  #aiv-b2c .sm\:flex-row { flex-direction: row; }
  #aiv-b2c .sm\:flex-row-reverse { flex-direction: row-reverse; }
  #aiv-b2c .sm\:w-auto { width: auto; }
  #aiv-b2c .sm\:text-sm { font-size: 0.875rem; line-height: 1.55rem; }
  #aiv-b2c .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  #aiv-b2c .sm\:text-xl { font-size: 1.25rem; line-height: 1.85rem; }
  #aiv-b2c .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  #aiv-b2c .sm\:text-right { text-align: right; }
  #aiv-b2c .sm\:p-6 { padding: 1.5rem; }
  #aiv-b2c .sm\:p-7 { padding: 1.75rem; }
}

@media (min-width: 768px) {
  #aiv-b2c .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #aiv-b2c .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #aiv-b2c .md\:flex-row-reverse { flex-direction: row-reverse; }
  #aiv-b2c .md\:items-start { align-items: flex-start; }
  #aiv-b2c .md\:justify-start { justify-content: flex-start; }
  #aiv-b2c .md\:gap-6 { gap: 1.5rem; }
  #aiv-b2c .md\:gap-12 { gap: 3rem; }
  #aiv-b2c .md\:mt-0 { margin-top: 0; }
  #aiv-b2c .md\:pt-4 { padding-top: 1rem; }
  #aiv-b2c .md\:pt-6 { padding-top: 1.5rem; }
  #aiv-b2c .md\:px-margin-desktop { padding-left: 40px; padding-right: 40px; }
  #aiv-b2c .md\:py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  #aiv-b2c .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  #aiv-b2c .md\:space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
  #aiv-b2c .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
  #aiv-b2c .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  #aiv-b2c .md\:text-5xl { font-size: 3rem; line-height: 1.1; }
  #aiv-b2c .md\:text-right { text-align: right; }
  #aiv-b2c .md\:max-w-lg { max-width: 32rem; }
  #aiv-b2c .md\:aspect-\[4\/5\] { aspect-ratio: 4 / 5; }
}

/* =====================================================================
   PRINT STYLES — Dedicated A4 Clean Print (Zero Blank Page)
   ===================================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  html, body, html.aiv-print-mode, body.aiv-print-mode {
    background: #ffffff !important;
    color: #0d1c2f !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    height: auto !important;
    min-height: 100% !important;
    width: 100% !important;
  }
  
  /* Hide external WordPress theme chrome, headers, footers, admin bar */
  #wpadminbar,
  header,
  footer,
  nav,
  .site-header,
  .site-footer,
  .elementor-location-header,
  .elementor-location-footer,
  #masthead,
  #colophon,
  .sidebar,
  #comments,
  .aiv-modal-backdrop,
  #aiv-b2c .aiv-modal-backdrop,
  #aiv-b2c > main > section,
  #aiv-b2c .wizard-step {
    display: none !important;
    visibility: hidden !important;
  }
  
  #aiv-b2c {
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
  }
  
  #referral-letter-template {
    display: block !important;
    visibility: visible !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 210mm !important;
    min-height: 297mm !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    box-shadow: none !important;
    border: none !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    box-sizing: border-box !important;
    z-index: 99999999 !important;
  }
  
  #referral-letter-template,
  #referral-letter-template * {
    visibility: visible !important;
  }
}
