/* Half Term Offer Modal Styles */
.offer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.offer-modal.active {
  opacity: 1;
  visibility: visible;
}

.offer-modal-content {
  background: linear-gradient(135deg, var(--white), var(--light-gray));
  border-radius: 20px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: scale(0.8) translateY(50px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: offer-bounce-in 0.6s ease-out forwards;
}

.offer-modal.active .offer-modal-content {
  transform: scale(1) translateY(0);
}

@keyframes offer-bounce-in {
  0% {
    transform: scale(0.3) rotateX(-90deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.05) rotateX(-45deg);
    opacity: 0.8;
  }
  100% {
    transform: scale(1) rotateX(0deg);
    opacity: 1;
  }
}

.offer-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 75, 92, 0.4);
}

.offer-close:hover {
  background: var(--vibrant);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(65, 105, 225, 0.5);
}

.offer-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.offer-badge {
  display: inline-block;
  background: linear-gradient(45deg, var(--highlight), #ffc107);
  color: var(--text);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-family: "Bubblegum Sans", cursive;
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  animation: offer-pulse 2s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(255, 235, 59, 0.4);
}

@keyframes offer-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 235, 59, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 235, 59, 0.6);
  }
}

.offer-title {
  font-family: "Bubblegum Sans", cursive;
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  animation: offer-title-bounce 3s ease-in-out infinite;
}

@keyframes offer-title-bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

.offer-subtitle {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.offer-details {
  background: rgba(79, 195, 247, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 2px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.offer-details::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: offer-shimmer 3s ease-in-out infinite;
}

@keyframes offer-shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  50% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
  100% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
}

.offer-price {
  text-align: center;
  margin-bottom: 1rem;
}

.offer-price .price-large {
  font-family: "Bubblegum Sans", cursive;
  font-size: 3rem;
  color: var(--secondary);
  font-weight: bold;
  display: block;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.offer-price .price-detail {
  font-size: 1.1rem;
  color: var(--navy);
  margin-top: 0.5rem;
}

.offer-savings {
  background: linear-gradient(45deg, var(--accent), #66bb6a);
  color: var(--white);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(129, 199, 132, 0.4);
}

.offer-includes {
  margin-bottom: 1.5rem;
}

.offer-includes h3 {
  color: var(--navy);
  margin-bottom: 1rem;
  font-family: "Bubblegum Sans", cursive;
  font-size: 1.3rem;
}

.offer-includes ul {
  list-style: none;
  padding: 0;
}

.offer-includes li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  color: var(--text);
}

.offer-includes li i {
  color: var(--accent);
  margin-right: 0.8rem;
  font-size: 1.2rem;
}

.offer-excludes {
  background: rgba(255, 75, 92, 0.1);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--secondary);
}

.offer-excludes h4 {
  color: var(--secondary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.offer-excludes p {
  color: var(--text);
  font-size: 0.95rem;
}

.offer-countdown {
  background: linear-gradient(135deg, var(--navy), #34495e);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 20px rgba(44, 62, 80, 0.3);
}

.offer-countdown h3 {
  font-family: "Bubblegum Sans", cursive;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 10px;
  min-width: 70px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-number {
  font-family: "Bubblegum Sans", cursive;
  font-size: 1.8rem;
  font-weight: bold;
  display: block;
  color: var(--highlight);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: countdown-pulse 1s ease-in-out infinite alternate;
}

@keyframes countdown-pulse {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

.countdown-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.offer-cta {
  text-align: center;
}

.offer-book-btn {
  background: linear-gradient(45deg, var(--secondary), #ff6b7a);
  color: var(--white);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-family: "Bubblegum Sans", cursive;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(255, 75, 92, 0.4);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.offer-book-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s;
}

.offer-book-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 75, 92, 0.6);
  animation: offer-btn-bounce 0.6s ease-in-out;
}

.offer-book-btn:hover::before {
  left: 100%;
}

@keyframes offer-btn-bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(-3px) scale(1.05);
  }
  40% {
    transform: translateY(-5px) scale(1.08);
  }
  60% {
    transform: translateY(-1px) scale(1.03);
  }
}

.offer-book-btn:active {
  transform: translateY(-1px) scale(1.02);
}

.offer-terms {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.8;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .offer-modal-content {
    padding: 1.5rem;
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }

  .offer-title {
    font-size: 2rem;
  }

  .offer-price .price-large {
    font-size: 2.5rem;
  }

  .countdown-timer {
    gap: 0.5rem;
  }

  .countdown-item {
    min-width: 60px;
    padding: 0.8rem;
  }

  .countdown-number {
    font-size: 1.5rem;
  }

  .offer-book-btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .offer-modal-content {
    padding: 1rem;
  }

  .offer-title {
    font-size: 1.8rem;
  }

  .offer-price .price-large {
    font-size: 2.2rem;
  }

  .countdown-timer {
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .countdown-item {
    min-width: 50px;
    padding: 0.6rem;
  }

  .countdown-number {
    font-size: 1.3rem;
  }

  .countdown-label {
    font-size: 0.7rem;
  }

  .offer-book-btn {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
  }
}

/* Contact Form Enhancement for Offer */
.offer-discount-notice {
  background: linear-gradient(45deg, var(--highlight), #ffc107);
  color: var(--text);
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: bold;
  animation: offer-notice-pulse 2s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(255, 235, 59, 0.4);
}

@keyframes offer-notice-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 235, 59, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 235, 59, 0.6);
  }
}

.offer-discount-notice.hidden {
  display: none;
}

/* Castle pricing updates during offer */
.castle-card.offer-eligible .pricing {
  position: relative;
}

.castle-card.offer-eligible .pricing::before {
  content: "HALF TERM DEAL!";
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--highlight);
  color: var(--text);
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  border-radius: 15px;
  font-weight: bold;
  transform: rotate(15deg);
  animation: offer-pulse 2s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(255, 235, 59, 0.5);
  z-index: 1;
}

.offer-eligible-text {
  background: linear-gradient(45deg, var(--accent), #66bb6a);
  color: var(--white);
  padding: 0.5rem;
  border-radius: 8px;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  text-align: center;
  font-weight: bold;
}
