.popup-header {
  text-align: center;
  padding: 80px 20px 50px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

/* Animation for popup header */
.popup-header.animate-on-scroll {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s ease, transform 1s ease;
}

.popup-header.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

.popup-header .popup-icon.animate-on-scroll {
  opacity: 0;
  transform: translateY(-30px) scale(0.8);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.popup-header .popup-icon.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.popup-header h2.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

.popup-header h2.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

.popup-header h4.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.7s, transform 0.8s ease 0.7s;
}

.popup-header h4.animate-on-scroll.animate {
  opacity: 0.85;
  transform: translateY(0);
}

.popup-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  border-radius: 2px;
}

.popup-icon {
  font-size: 72px;
  margin-bottom: 24px;
  display: inline-block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  animation: fadeInDown 0.6s ease-out;
}

.popup-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 28px;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.popup-header p {
  font-size: 18px;
  line-height: 1.9;
  color: var(--dark);
  opacity: 0.85;
  max-width: 800px;
  margin: 0 auto;
}

.popup-header p strong {
  color: var(--gold);
  font-weight: 700;
}

.popup-section {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 32px 24px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(190, 123, 46, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Animation for popup sections */
.popup-section.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.popup-section.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.popup-section h3.animate-on-scroll {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.popup-section h3.animate-on-scroll.animate {
  opacity: 1;
  transform: translateX(0);
}

.popup-section h4.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.popup-section h4.animate-on-scroll.animate {
  opacity: 0.9;
  transform: translateY(0);
}

.popup-section .popup-benefits.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease 0.6s, transform 0.6s ease 0.6s;
}

.popup-section .popup-benefits.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

.popup-section .popup-benefits li.animate-on-scroll {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.popup-section .popup-benefits li.animate-on-scroll.animate {
  opacity: 0.9;
  transform: translateX(0);
}

.popup-cta {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 32px 24px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(190, 123, 46, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

/* Animation for popup CTA */
.popup-cta.animate-on-scroll {
  opacity: 0;
  transform: translateY(60px) scale(0.9);
  transition: opacity 1s ease, transform 1s ease;
}

.popup-cta.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.popup-cta h3.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.popup-cta h3.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

.popup-cta .btn-primary.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
}

.popup-cta .btn-primary.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.popup-cta h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(190, 123, 46, 0.2);
  position: relative;
}

.popup-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.popup-section h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(190, 123, 46, 0.2);
  position: relative;
}

.popup-section h3::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--gold);
}

.popup-section p {
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 20px;
  color: var(--dark);
  opacity: 0.9;
}

.popup-features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.popup-features li {
  padding: 14px 0 14px 40px;
  position: relative;
  line-height: 1.8;
  font-size: 16px;
  color: var(--dark);
  opacity: 0.9;
  transition: padding-left 0.2s ease;
}

.popup-features li:hover {
  padding-left: 44px;
}

.popup-actions {
  max-width: 900px;
  margin: 60px auto 40px;
  padding: 0 20px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.popup-actions .btn-primary,
.popup-actions .btn-secondary {
  min-width: 200px;
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-actions .btn-primary {
  box-shadow: 0 4px 15px rgba(190, 123, 46, 0.25);
}

.popup-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(190, 123, 46, 0.35);
}

.popup-actions .btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(190, 123, 46, 0.2);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Additional animation keyframes for services */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Base animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.is-left {
  transform: translateX(-50px);
}

.animate-on-scroll.is-right {
  transform: translateX(50px);
}

.animate-on-scroll.is-scale {
  transform: scale(0.9);
}

.animate-on-scroll.is-left.animate {
  transform: translateX(0);
}

.animate-on-scroll.is-right.animate {
  transform: translateX(0);
}

.animate-on-scroll.is-scale.animate {
  transform: scale(1);
}

@media (max-width: 768px) {
  .popup-header {
    padding: 50px 20px 40px;
  }

  .popup-icon {
    font-size: 56px;
    margin-bottom: 20px;
  }

  .popup-header h2 {
    margin-bottom: 20px;
  }

  .popup-header p {
    font-size: 16px;
  }

  .popup-section {
    margin-bottom: 28px;
    padding: 24px 20px;
  }

  .popup-section h3 {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .popup-section p {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .popup-features li {
    padding: 12px 0 12px 36px;
    font-size: 15px;
  }

  .popup-features li::before {
    width: 24px;
    height: 24px;
    font-size: 14px;
    top: 12px;
  }

  .popup-actions {
    margin: 40px auto 30px;
    flex-direction: column;
    gap: 16px;
  }

  .popup-actions .btn-primary,
  .popup-actions .btn-secondary {
    width: 100%;
    min-width: unset;
  }
}
