/* ============================================
   GOHIGHLEVEL EMBED COMPATIBILITY STYLES
   Nova Titan Systems
   ============================================ */

/* Responsive iframe container for GHL embeds */
.embed-responsive {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

/* 16:9 aspect ratio for calendars */
.embed-responsive-16x9 {
  padding-bottom: 56.25%;
}

/* 4:3 aspect ratio for forms */
.embed-responsive-4x3 {
  padding-bottom: 75%;
}

/* 1:1 aspect ratio for square embeds */
.embed-responsive-1x1 {
  padding-bottom: 100%;
}

/* Auto-height for dynamic content */
.embed-responsive-auto {
  min-height: 500px;
}

/* Iframe positioning */
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

/* Auto-height iframes don't need absolute positioning */
.embed-responsive-auto iframe,
.embed-responsive-auto embed,
.embed-responsive-auto object {
  position: relative;
  min-height: 500px;
  height: auto;
}

/* GHL calendar specific styles */
.ghl-calendar-embed {
  background: rgba(26, 26, 46, 0.85);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.15);
}

/* GHL form container */
.ghl-form-embed {
  background: rgba(26, 26, 46, 0.85);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.15);
}

/* Loading state */
.embed-responsive::before {
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(0, 212, 255, 0.3);
  border-top-color: #00d4ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
}

/* Hide loading spinner when iframe loads */
.embed-responsive.loaded::before {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Mobile responsive breakpoints */
@media (max-width: 768px) {
  .embed-responsive {
    max-width: 100%;
  }
  
  .ghl-calendar-embed,
  .ghl-form-embed {
    padding: 0.75rem;
  }
  
  .embed-responsive-auto {
    min-height: 400px;
  }
}

@media (max-width: 480px) {
  .embed-responsive-auto {
    min-height: 350px;
  }
  
  .ghl-calendar-embed,
  .ghl-form-embed {
    padding: 0.5rem;
    border-radius: 8px;
  }
}

/* Full-width variant for landing pages */
.embed-responsive-full {
  max-width: 100%;
}

/* Centered variant with max content width */
.embed-responsive-contained {
  max-width: 600px;
}

/* Wide variant for multi-column forms */
.embed-responsive-wide {
  max-width: 1200px;
}
