.service-offer-countdown {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, auto);
  align-items: center;
  gap: 22px;
  margin: 0 0 -10px;
  padding: 20px 22px;
  border: 1px solid #dce5f1;
  border-radius: 18px;
  color: #172033;
  background:
    radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.08), transparent 36%),
    radial-gradient(circle at 100% 100%, rgba(239, 68, 68, 0.05), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #fbfdff 56%, #f7faff 100%);
  box-shadow: 0 14px 34px rgba(30, 64, 175, 0.08);
  font-family: "Tajawal", "Segoe UI", sans-serif;
  isolation: isolate;
}

.service-offer-countdown::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.7;
  background: linear-gradient(110deg, transparent 0 72%, rgba(37, 99, 235, 0.035) 72% 100%);
}

.service-offer-countdown__copy {
  min-width: 0;
  text-align: right;
}

.service-offer-countdown__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: #fca5a5;
  font-size: 0.72rem;
  font-weight: 800;
}

.service-offer-countdown.is-waiting .service-offer-countdown__eyebrow {
  color: #bfdbfe;
}

.service-offer-countdown__eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f87171;
  box-shadow: 0 0 0 5px rgba(248, 113, 113, 0.12);
}

.service-offer-countdown.is-active .service-offer-countdown__eyebrow span {
  animation: serviceOfferPulse 1.8s ease-in-out infinite;
}

.service-offer-countdown.is-waiting .service-offer-countdown__eyebrow span {
  background: #60a5fa;
  box-shadow: 0 0 0 5px rgba(96, 165, 250, 0.12);
}

.service-offer-countdown__copy h2 {
  margin: 0;
  color: #172033;
  font-size: clamp(1rem, 2vw, 1.32rem);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.service-offer-countdown__copy p {
  margin: 6px 0 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.72rem;
  font-weight: 600;
}

.service-offer-countdown__timer-wrap {
  min-width: 300px;
}

.service-offer-countdown__label {
  margin-bottom: 7px;
  color: #68758a;
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
}

.service-offer-countdown__timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(58px, 1fr));
  gap: 7px;
  direction: ltr;
}

.service-offer-countdown__timer > div {
  min-height: 66px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  padding: 7px 5px;
  border: 1px solid #dfe7f2;
  border-radius: 12px;
  background: rgba(247, 250, 253, 0.96);
  box-shadow:
    inset 0 1px 0 #fff,
    0 5px 14px rgba(30, 64, 175, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.service-offer-countdown__timer strong {
  color: #172033;
  font-size: 1.18rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.service-offer-countdown__timer span {
  color: #7a879a;
  font-size: 0.66rem;
  font-weight: 700;
}

.service-offer-countdown__cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid #2563eb;
  border-radius: 12px;
  color: #fff;
  background: #2563eb;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
  font-size: 0.75rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.service-offer-countdown__cta:hover {
  color: #fff;
  background: #1d4ed8;
  text-decoration: none;
  transform: translateY(-1px);
}

@keyframes serviceOfferPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.82);
    opacity: 0.68;
  }
}

@media (max-width: 980px) {
  .service-offer-countdown {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .service-offer-countdown__cta {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (max-width: 720px) {
  .service-offer-countdown {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 0 0 -10px;
    padding: 18px 15px;
    border-radius: 16px;
  }

  .service-offer-countdown__copy {
    text-align: center;
  }

  .service-offer-countdown__copy p {
    line-height: 1.6;
  }

  .service-offer-countdown__timer-wrap {
    min-width: 0;
    width: 100%;
  }

  .service-offer-countdown__timer {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .service-offer-countdown__timer > div {
    min-height: 62px;
    border-radius: 10px;
  }

  .service-offer-countdown__timer strong {
    font-size: 1.02rem;
  }

  .service-offer-countdown__cta {
    width: 100%;
    grid-column: auto;
    justify-self: stretch;
  }
}

@media (max-width: 380px) {
  .service-offer-countdown__timer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-offer-countdown *,
  .service-offer-countdown *::before,
  .service-offer-countdown *::after {
    animation: none !important;
    transition: none !important;
  }
}
