:root {
  --purple-dark: #56166A;
  --purple-gradient: linear-gradient(180deg, #6E1E85 0%, #4E1162 100%);
  --navy-dark: #0A1D37;
  --lavender-accent: #EAE6F8;
  --lavender-bg: #EFEAFA;
  --lavender-border: #D2C7EC;
  --white: #FFFFFF;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(3px);
  display:flex;
  justify-content: center;
  align-items: center;
  padding: 20px;

  /* Hidden state by default */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

/* Active / Open State */
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* =========================================
   DESKTOP LAYOUT (DEFAULT: > 768px)
   ========================================= */
.modal-card {
  position: relative;
  width: 100%;
  max-width: 880px;
  background: var(--white);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: row;
  min-height: 540px;
  transform: translateY(14px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.is-open .modal-card {
  transform: translateY(0) scale(1);
}

/* Close Button (Top Right) */
.close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  cursor: pointer;
  transition: background 0.4s ease, color 0.4s ease;
}

.close-btn:hover {
  background: var(--white);
  color: var(--navy-dark);
}

/* Left Image Section (Desktop) */
.modal-media {
  position: relative;
  width: 44%;
  background: linear-gradient(135deg, #D9E2EC 0%, #BCCCDC 100%);
  flex-shrink: 0;
}

.modal-media {
  background: url(../images/assets/modal-freetrial2.jpg);
  background-size: cover;
}

.media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Vertical Curve Divider for Desktop */
.curve-desktop {
  position: absolute;
  top: 0;
  right: -1px;
  width: 110px;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.curve-desktop svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Hide Mobile Curve on Desktop */
.curve-mobile {
  display: none;
}

/* Right Content Section (Desktop) */
.modal-body {
  position: relative;
  z-index: 15;
  flex: 1;
  padding: 32px 42px 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--white);
}

/* Badge: Centered above title on Desktop */
.badge-new-customers {
  background: var(--purple-gradient);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  font-style: italic;
  padding: 7px 26px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(86, 22, 106, 0.22);
  margin-bottom: 12px;
}

.main-title {
  font-size: 3rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.modal-link {
  background-color: var(--pink-primary);
  border:0;
}

.text-purple {
  color: var(--purple-dark);
}

.text-navy {
  color: var(--navy-dark);
}

.subtitle {
  font-size: 1.15rem;
  font-weight: 700;
  font-style: italic;
  color: var(--navy-dark);
  margin-bottom: 20px;
}

/* Offer Box */
.offer-box {
  width: 100%;
  max-width: 550px;
  background-color: var(--lavender-bg);
  border-radius: 16px;
  padding: 16px 16px 14px;
  margin-top:-15px;
  margin-bottom: 14px;
  z-index: 2;
}

.offer-columns {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.offer-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.offer-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--purple-dark);
  line-height: 1;
  margin-bottom: 4px;
}

.offer-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.2;
}

.offer-divider {
  width: 1.5px;
  height: 70px;
  background-color: var(--lavender-border);
}

.offer-footnote {
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  font-style: italic;
  color: var(--navy-dark);
}

/* Disclaimer */
.disclaimer {
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 300;
  color: #1F2937;
  line-height: 1.35;
  margin: 15px 15px 20px;
}

.disclaimer b {
  font-weight: 600;
  color:#000;
}

/* OR Row */

.Or-container {
  z-index: 10;
}

.or-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.or-line {
  width: 40px;
  height: 1.5px;
  background-color: #CBD5E1;
}

.or-badge {
  background-color: var(--purple-dark);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.or-text {
  font-size: 1.15rem;
  font-weight: 700;
  font-style: italic;
  color: var(--navy-dark);
}

/* Phone CTA */
.phone-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none;
  margin-bottom: 18px;
  transition: transform 0.15s ease;
}

.phone-cta:hover {
  transform: scale(1.02);
}

.phone-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top:25px;
}

.phone-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
}

.call-now-label {
  font-size: 1.2rem;
  font-weight: 800;
  font-style: italic;
  color: var(--navy-dark);
}

.phone-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--purple-dark);
  letter-spacing: -0.02em;
}

/* Download Button */
.btn-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 430px;
  background: var(--purple-gradient);
  color: var(--white);
  text-decoration: none;
  padding: 15px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.15rem;
  box-shadow: 0 8px 20px rgba(86, 22, 106, 0.3);
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.btn-download:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

.btn-icon-left,
.btn-icon-right {
  display: flex;
  align-items: center;
}

.btn-separator {
  width: 1px;
  height: 22px;
  background-color: rgba(255, 255, 255, 0.45);
  margin: 0 12px;
}

.btn-text {
  flex: 1;
  text-align: center;
}

/* =========================================
   MOBILE & TABLET LAYOUT (<= 768px)
   ========================================= */
@media (max-width: 768px) {
  .modal-card {
    flex-direction: column;
    max-width: 500px;
    min-height: auto;
    border-radius: 24px;
  }

  .close-btn {
    top: 14px;
    right: 16px;
    width: 34px;
    height: 34px;
  }

  /* Top Image Header */
  .modal-media {
    width: 100%;
    height: 290px;
  }

.modal-media {
  background: url(../images/assets/modal-freetrial-modal.jpg);
  background-size:cover;
  background-position: 50%;
}

  /* Swap Curves */
  .curve-desktop {
    display: none;
  }

  .curve-mobile {
    display: block;
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 85px;
    pointer-events: none;
    z-index: 10;
  }

  .curve-mobile svg {
    width: 100%;
    height: 100%;
    display: block;
  }

  /* Move "New Customers Only" badge to top-right inside image area */
  .badge-new-customers {
    position: absolute;
    top: 56px;
    right: 16px;
    z-index: 25;
    font-size: 0.85rem;
    padding: 6px 20px;
    margin-bottom: 0;
  }

  /* Bottom Content Area */
  .modal-body {
    position: static;
    padding: 4px 24px 5px;
  }

  .main-title {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.05rem;
    margin-bottom: 18px;
  }

  .offer-number {
    font-size: 2.3rem;
  }

  .offer-label {
    font-size: 1rem;
  }

  .or-text {
    font-size: 1.05rem;
  }

  .phone-icon-circle {
    width: 50px;
    height: 50px;
  }

  .call-now-label {
    font-size: 1.15rem;
  }

  .phone-number {
    font-size: 1.85rem;
  }

  .btn-download {
    font-size: 1.1rem;
    padding: 14px 20px;
  }
}

@media (max-width:568px) {
  .modal-overlay {
    padding:0;
  }
}

/* Extra Small Phones (<= 380px) */
@media (max-width: 380px) {
  .modal-media {
    height: 250px;
  }

    .modal-card {
    max-width: 95%;
  }

  .main-title {
    font-size: 2.1rem;
  }

  .phone-number {
    font-size: 1.55rem;
  }

  .btn-download {
    font-size: 1rem;
    padding: 12px 16px;
  }
}
