:root {
  --independence-green: #01411c;
  --independence-green-deep: #022d17;
  --independence-gold: #f8c21c;
  --independence-white: #ffffff;
}

body.independence-offer-open {
  overflow: hidden;
}

.independence-offer {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2.5vw, 30px);
  background: rgba(1, 20, 10, 0.78);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.independence-offer.is-visible {
  opacity: 1;
  visibility: visible;
}

.independence-offer__card {
  position: relative;
  width: min(92vw, 570px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
  border: 2px solid rgba(248, 194, 28, 0.84);
  border-radius: clamp(20px, 3vw, 34px);
  background: var(--independence-green-deep) url("assets/images/pakistan-independence-month-califsol-offer-2026.webp") center / cover no-repeat;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.46), 0 0 0 8px rgba(255, 255, 255, 0.08);
  transform: translateY(18px) scale(0.97);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.independence-offer.is-visible .independence-offer__card {
  transform: translateY(0) scale(1);
}

.independence-offer__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 44%, rgba(0, 65, 30, 0.1), rgba(0, 30, 15, 0.58) 68%),
    linear-gradient(180deg, rgba(1, 49, 23, 0.18), rgba(1, 31, 15, 0.52));
}

.independence-offer__close {
  position: absolute;
  top: clamp(12px, 2vw, 18px);
  right: clamp(12px, 2vw, 18px);
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(1, 45, 20, 0.84);
  color: #fff;
  font: 700 30px/1 Arial, sans-serif;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.independence-offer__close:hover,
.independence-offer__close:focus-visible {
  transform: rotate(8deg) scale(1.08);
  background: var(--independence-gold);
  color: #061f11;
  outline: 3px solid rgba(255, 255, 255, 0.88);
  outline-offset: 3px;
}

.independence-offer__content {
  width: min(90%, 520px);
  padding: clamp(12px, 2.5vw, 22px);
  text-align: center;
  color: #fff;
}

.independence-offer__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(0, 49, 22, 0.76);
  color: #fff;
  font-size: clamp(11px, 1.8vw, 14px);
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.independence-offer__discount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 0;
  color: var(--independence-gold);
  text-shadow: 0 5px 24px rgba(0, 0, 0, 0.42);
}

.independence-offer__discount strong {
  font-size: clamp(64px, 13vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.independence-offer__discount span {
  font-size: clamp(25px, 5vw, 44px);
  font-weight: 900;
}

.independence-offer__title {
  margin: 8px 0;
  color: #fff;
  font-size: clamp(23px, 4.5vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.independence-offer__copy {
  margin: 0 auto 13px;
  max-width: 44ch;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(13px, 2.2vw, 17px);
  line-height: 1.45;
}

.independence-offer__services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-bottom: 15px;
}

.independence-offer__services span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #05351a;
  font-size: clamp(11px, 1.8vw, 13px);
  font-weight: 800;
}

.independence-offer__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.independence-offer__cta,
.independence-offer__continue {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  padding: 11px 17px;
  font-size: clamp(12px, 2vw, 15px);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.independence-offer__cta {
  border: 2px solid var(--independence-gold);
  background: var(--independence-gold);
  color: #061f11;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

.independence-offer__continue {
  border: 1px solid rgba(255, 255, 255, 0.66);
  background: rgba(1, 48, 22, 0.76);
  color: #fff;
}

.independence-offer__cta:hover,
.independence-offer__cta:focus-visible,
.independence-offer__continue:hover,
.independence-offer__continue:focus-visible {
  transform: translateY(-2px);
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.independence-offer__cta:hover,
.independence-offer__cta:focus-visible {
  background: #fff;
  color: var(--independence-green);
}

.independence-offer__continue:hover,
.independence-offer__continue:focus-visible {
  background: #fff;
  color: var(--independence-green);
}

.independence-offer__terms {
  margin: 10px auto 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(9px, 1.45vw, 11px);
  line-height: 1.35;
}

@media (max-width: 480px) {
  .independence-offer {
    padding: 9px;
  }

  .independence-offer__card {
    width: min(94vw, 430px);
    min-height: min(94vw, 430px);
    max-height: 94vh;
  }

  .independence-offer__content {
    width: 88%;
    padding: 14px 8px 10px;
  }

  .independence-offer__close {
    width: 38px;
    height: 38px;
    font-size: 25px;
  }

  .independence-offer__eyebrow {
    margin-bottom: 5px;
    padding: 5px 9px;
  }

  .independence-offer__title {
    margin: 5px 0;
  }

  .independence-offer__copy {
    margin-bottom: 8px;
    line-height: 1.32;
  }

  .independence-offer__services {
    margin-bottom: 9px;
  }

  .independence-offer__services span {
    padding: 4px 7px;
  }

  .independence-offer__actions {
    gap: 6px;
  }

  .independence-offer__cta,
  .independence-offer__continue {
    min-height: 38px;
    padding: 8px 11px;
    border-radius: 9px;
  }

  .independence-offer__terms {
    margin-top: 6px;
  }
}

@media (max-width: 360px), (max-height: 620px) {
  .independence-offer__services,
  .independence-offer__continue {
    display: none;
  }

  .independence-offer__card {
    overflow-y: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .independence-offer,
  .independence-offer__card,
  .independence-offer__close,
  .independence-offer__cta,
  .independence-offer__continue {
    transition: none !important;
  }
}
