    .dyn-modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.7);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 10000;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      padding: 20px;
      backdrop-filter: blur(1px);
    }
    
    .dyn-modal-overlay.visible {
      display: flex;
      animation: fadeIn 0.4s ease;
    }
    
    .dyn-modal {
      background: white;
      border-radius: 20px;
      box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
      width: 100%;
      max-width: 600px;
      max-height: 90vh;
      overflow: hidden;
    }
    
.dyn-modal-content {
      display: flex;
      flex-direction: column;
      max-height: 90vh;
      overflow-y: auto;
      -ms-overflow-style: none;
      scrollbar-width: none;
}
.dyn-modal-content::-webkit-scrollbar { display: none; }
    
    /* Hero Image Section */
    .dyn-modal-hero {
      height: clamp(160px, 35vh, 280px);
     /* overflow: hidden; */
      position: relative;
    }
    .dyn-modal-hero::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 42%;
      pointer-events: none;
      background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 100%);
    }
    
    .dyn-modal-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    
    .dyn-modal-hero-placeholder {
      height: 160px;
      background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }
    
    .hero-content {
      text-align: center;
      color: white;
    }
    
    .brand-icon {
      font-size: 40px;
      margin-bottom: 12px;
    }
    
    .hero-content h3 {
      font-size: 18px;
      font-weight: 600;
      margin: 0;
      opacity: 0.95;
    }
    
    /* Main Content Section */
    .dyn-modal-main {
      padding: 32px;
      position: relative;
      display: flex;
      flex-direction: column;
      flex: 1;
      background: #fff;
      z-index: 1;
    }
    
    .dyn-modal-close {
      position: absolute;
      top: 10px;
      right: 10px;
      background: linear-gradient(135deg, rgba(139,92,246,0.92), rgba(124,58,237,0.92));
      border: none;
      border-radius: 999px;
      cursor: pointer;
      color: #fff;
      padding: 8px;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 6px 20px rgba(124,58,237,0.35);
      z-index: 20;
    }
    
    .dyn-modal-close:hover {
      transform: scale(1.06);
      box-shadow: 0 10px 28px rgba(124,58,237,0.45);
    }
    
    .dyn-modal-header {
      margin-bottom: 20px;
      text-align: center;
    }
    
    .dyn-modal-title {
      font-size: 24px;
      font-weight: 700;
      color: #1a1a1a;
      line-height: 1.3;
      margin: 0 0 12px 0;
      background: linear-gradient(135deg, #1a1a1a, #4b5563);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    
    .dyn-modal-subtitle {
      font-size: 16px;
      color: #6b7280;
      line-height: 1.5;
      font-weight: 500;
    }
    
    .dyn-modal-body {
      flex: 1;
    }
    
    .dyn-modal-message {
      font-size: 15px;
      color: #6b7280;
      line-height: 1.6;
      margin-bottom: 28px;
      text-align: center;
      padding: 0 10px;
    }
    
    .dyn-form-grid {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    
    .dyn-form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }
    
    .dyn-field {
      display: flex;
      flex-direction: column;
    }
    
    .dyn-label {
      font-size: 14px;
      font-weight: 600;
      color: #374151;
      margin-bottom: 8px;
    }
    
    .dyn-input {
      padding: 14px 16px;
      border: 2px solid #e5e7eb;
      border-radius: 12px;
      font-size: 16px;
      transition: all 0.2s ease;
      background: white;
      font-family: inherit;
    }
    
    .dyn-input:focus {
      outline: none;
      border-color: #8b5cf6;
      box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
      transform: translateY(-1px);
    }
    
    .dyn-input:hover {
      border-color: #d1d5db;
    }
    
    .dyn-input::placeholder {
      color: #9ca3af;
    }
    
    .dyn-form-footer {
      margin-top: 24px;
      padding-top: 20px;
      border-top: 1px solid #f1f5f9;
    }
    
    .dyn-consent-text {
      font-size: 13px;
      color: #6b7280;
      line-height: 1.5;
      text-align: center;
      font-style: italic;
    }
    
    .dyn-modal-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      margin-top: 28px;
    }
    
    .dyn-btn {
      padding: 14px 24px;
      border: none;
      border-radius: 12px;
      cursor: pointer;
      font-size: 16px;
      font-weight: 600;
      transition: all 0.3s ease;
      flex: 1;
      font-family: inherit;
    }
    
    .dyn-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }
    
    .dyn-btn:active {
      transform: translateY(0);
    }
    
    .dyn-btn-primary {
      background: linear-gradient(135deg, #8b5cf6, #7c3aed);
      color: white;
      box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    }
    
    .dyn-btn-primary:hover {
      background: linear-gradient(135deg, #7c3aed, #6d28d9);
      box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    }
    
    .dyn-btn-secondary {
      background: transparent;
      color: #64748b;
      border: 2px solid #e2e8f0;
    }
    
    .dyn-btn-secondary:hover {
      background: #f8fafc;
      color: #475569;
      border-color: #cbd5e1;
    }
    
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    
    /* Enhanced Mobile Responsiveness */
    @media (max-width: 640px) {
      .dyn-modal-overlay {
        padding: 16px;
        backdrop-filter: blur(3px);
      }
      
      .dyn-modal {
        max-width: 100%;
        border-radius: 16px;
        max-height: 95vh;
      }
      
      .dyn-modal-hero {
        height: clamp(140px, 32vh, 220px);
      }
      
      .dyn-modal-hero-placeholder {
        height: 140px;
      }
      
      .brand-icon {
        font-size: 32px;
        margin-bottom: 8px;
      }
      
      .hero-content h3 {
        font-size: 16px;
      }
      
      .dyn-modal-main {
        padding: 24px 20px;
      }
      
      .dyn-modal-close {
        top: 8px;
        right: 8px;
        padding: 6px;
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.96);
      }
      
      .dyn-modal-title {
        font-size: 22px;
        margin-bottom: 10px;
      }
      
      .dyn-modal-subtitle {
        font-size: 15px;
      }
      
      .dyn-modal-message {
        font-size: 14px;
        margin-bottom: 24px;
        padding: 0;
      }
      
      .dyn-form-row {
        grid-template-columns: 1fr;
        gap: 20px;
      }
      
      .dyn-input {
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
      }
      
      .dyn-modal-footer {
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
      }
      
      .dyn-btn {
        width: 100%;
        padding: 14px 20px;
      }
      
      .dyn-consent-text {
        font-size: 12px;
        line-height: 1.4;
      }
    }
    
    @media (max-width: 380px) {
      .dyn-modal-main {
        padding: 20px 16px;
      }
      
      .dyn-modal-title {
        font-size: 20px;
      }
      
      .dyn-modal-hero {
        height: 140px;
      }
      
      .dyn-modal-hero-placeholder {
        height: 120px;
      }
    }
    
    /* Prevent body scroll when modal is open */
    body.modal-open {
      overflow: hidden;
    }
 
