/* File: custom-elements/cgm-pricing-card/cgm-pricing-card.css */

.cgm-pricing-section {
  position: relative;
  /* padding: 80px 0; */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.cgm-pricing-wrapper {
  position: relative;
  padding: 40px 20px;
  width: 100%;
  margin: 0 auto;
}

/* --- SECTION HEADER --- */
.cgm-pricing-intro {
  max-width: 900px;
  margin: 0 auto 0px; /* Space between header and cards */
  text-align: center;
  padding: 0 20px;
}

.cgm-section-eyebrow {
  display: block;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #6271a3;
  margin-bottom: 15px;
}

.cgm-section-headline {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  line-height: 1.2;
  color: #2e2e2e;
  margin-bottom: 20px;
}

.cgm-section-body {
  font-family: "Open Sans", sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

/* --- LAYOUT MODES --- */
/* Single Center Mode */
.cgm-pricing-wrapper.cgm-layout-center {
  max-width: 500px;
  display: flex;
  justify-content: center;
}
.cgm-layout-center .cgm-pricing-card-col {
  width: 100%;
}

/* Split Video Mode */
.cgm-pricing-wrapper.cgm-layout-split {
  max-width: 1500px;
  display: flex;
  align-items: center;
  gap: 130px;
}

.cgm-pricing-video-col {
  flex: 1;
  position: relative;
  min-height: 300px;
}
.cgm-pricing-card-col {
  flex: 0 0 450px; /* Card stays fixed width */
  position: relative;
}

/* --- VIDEO CONTAINER --- */
.cgm-video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  border-radius: 20px;
  overflow: hidden;
  background-color: #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.3s ease;
}
.cgm-video-container:hover {
  transform: scale(1.02);
}

.cgm-vid-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.cgm-video-container:hover .cgm-vid-cover {
  opacity: 0.6;
}

/* Play Overlay */
.cgm-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.cgm-play-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 24px;
  transition: all 0.3s ease;
}
.cgm-video-container:hover .cgm-play-icon {
  background: #e68492; /* Fixed Brand Pink */
  transform: scale(1.1);
  border-color: transparent;
}

.cgm-play-text {
  margin-top: 15px;
  color: #fff;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* The actual iframe (added via JS) */
.cgm-video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

/* --- THE CARD --- */
.cgm-pricing-card {
  position: relative;
  z-index: 2;
  width: 100%;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
}

/* --- AURA GLOW --- */
.cgm-pricing-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background: radial-gradient(
    circle,
    var(--cgm-glow, #ffad4d) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  filter: blur(50px);
  opacity: 0.5;
  z-index: 0;
  animation: cgm-pulse 4s infinite alternate ease-in-out;
}

@keyframes cgm-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.4;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.6;
  }
}

/* Typography & List */
.cgm-pricing-eyebrow {
  display: block;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: #888;
  margin-bottom: 10px;
}
.cgm-price {
  font-family: "Playfair Display", serif;
  font-size: 4.5rem;
  line-height: 1;
  margin: 0 0 5px 0;
  color: var(--cgm-price-color, #2e2e2e);
  font-weight: 700;
}
.cgm-frequency {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  color: #666;
  font-style: italic;
  margin-bottom: 20px;
  display: block;
}

.cgm-pricing-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 0, 0, 0.1),
    transparent
  );
  margin: 30px 0;
}
.cgm-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  text-align: left;
}
.cgm-feature-list li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-family: "Open Sans", sans-serif;
  font-size: 1.05rem;
  color: #444;
}
.cgm-check {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--cgm-check-color, #e68492);
  border-radius: 50%;
  font-weight: 800;
  font-size: 14px;
  margin-right: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* --- BUTTON (FIXED HOVER) --- */
.cgm-pricing-btn {
  display: block;
  width: 100%;
  padding: 18px 0;
  background: var(--cgm-price-color, #2e2e2e);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cgm-pricing-btn:hover {
  /* Updated to use the correct variable */
  background: var(--cgm-btn-h-bg, #ffad4d) !important;
  color: var(--cgm-btn-h-text, #2e2e2e) !important;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* --- MOBILE --- */
@media (max-width: 900px) {
  .cgm-pricing-wrapper.cgm-layout-split {
    flex-direction: column;
    gap: 40px;
  }
  .cgm-pricing-card-col {
    flex: 1;
    width: 100%;
    max-width: 100%;
  }
}
