/* CTA Order Button Section */
.cta-order__container {
  text-align: center;
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
}

/* Heading */
.cta-order__heading {
  color: var(--cta-heading-color);
  margin: 0;
  margin-top: 2rem;
  font-weight: 700;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

/* Text */
.cta-order__text {
  color: var(--cta-text-color);
  font-size: 1.6rem;
  line-height: 1.6;
  max-width: 60rem;
  position: relative;
  z-index: 1;
}

.cta-order__text p {
  margin: 0 0 1rem 0;
}

.cta-order__text p:last-child {
  margin-bottom: 0;
}

/* Button Wrapper */
.cta-order__button-wrapper {
  margin-top: 2rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

/* Мощное внешнее свечение - несколько слоев */
.cta-order__button-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.4) 30%,
    rgba(255, 255, 255, 0.1) 60%,
    transparent 100%
  );
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: -1;
  filter: blur(60px);
}

/* При наведении - огромное свечение */
.cta-order__button-wrapper:has(.cta-order__button:hover)::before {
  opacity: 1;
  width: 600%;
  height: 600%;
  filter: blur(100px);
  animation: mega-glow-pulse 3s ease-in-out infinite;
}

/* Дополнительное свечение на контейнере */
.cta-order__container::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.2) 40%,
    transparent 70%
  );
  opacity: 0;
  transition: all 0.8s ease;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

.cta-order__container:has(.cta-order__button:hover)::after {
  opacity: 1;
  width: 200%;
  height: 200%;
}

/* Button */
.cta-order__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 6rem;
  background-color: var(--cta-button-bg) !important;
  color: var(--cta-button-text) !important;
  font-size: 1.8rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  isolation: isolate;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
              0 2px 4px rgba(0, 0, 0, 0.1);
  border: none !important;
  outline: none !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Force color override for all states */
.cta-order__button,
.cta-order__button:link,
.cta-order__button:visited,
.cta-order__button:hover,
.cta-order__button:active,
.cta-order__button:focus {
  background-color: var(--cta-button-bg) !important;
  color: var(--cta-button-text) !important;
  border: none !important;
}

.cta-order__button-text {
  position: relative;
  z-index: 3;
  transition: transform 0.3s ease;
}

/* Glow Effect */
.cta-order__button-glow {
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    45deg,
    var(--cta-glow-color),
    transparent,
    var(--cta-glow-color)
  );
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  filter: blur(8px);
}

/* Shimmer Effect - использует цвет из настроек */
.cta-order__button-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--cta-shimmer-color),
    transparent
  );
  opacity: 0.3;
  z-index: 2;
  transition: left 0.6s ease;
}

/* Hover Effects */
.cta-order__button:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
              0 10px 20px rgba(0, 0, 0, 0.25),
              0 0 80px rgba(255, 255, 255, 0.8),
              0 0 120px rgba(255, 255, 255, 0.6),
              0 0 160px rgba(255, 255, 255, 0.4);
}

.cta-order__button:hover .cta-order__button-glow {
  opacity: 1;
  animation: glow-pulse 2s ease-in-out infinite;
}

.cta-order__button:hover .cta-order__button-shimmer {
  left: 100%;
  transition: left 0.8s ease;
}

.cta-order__button:hover .cta-order__button-text {
  transform: scale(1.08);
}

/* Active/Click Effect */
.cta-order__button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Glow Pulse Animation */
@keyframes glow-pulse {
  0%, 100% {
    opacity: 0.8;
    filter: blur(8px);
  }
  50% {
    opacity: 1;
    filter: blur(12px);
  }
}

/* Outer glow pulse animation */
@keyframes outer-glow-pulse {
  0%, 100% {
    opacity: 0.4;
    filter: blur(30px);
  }
  50% {
    opacity: 0.7;
    filter: blur(40px);
  }
}

/* Мега свечение пульсация */
@keyframes mega-glow-pulse {
  0%, 100% {
    opacity: 0.8;
    filter: blur(80px);
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    filter: blur(120px);
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Continuous Shimmer Animation (optional - runs automatically) */
.cta-order__button-shimmer {
  animation: auto-shimmer 3s ease-in-out infinite;
}

@keyframes auto-shimmer {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 100%;
  }
}

/* Mobile Styles */
@media screen and (max-width: 749px) {
  .cta-order__container {
    gap: 1.6rem;
  }

  .cta-order__text {
    font-size: 1.4rem;
  }

  .cta-order__button {
    padding: 1.6rem 4rem;
    font-size: 1.6rem;
  }

  .cta-order__button-wrapper {
    margin-top: 1.6rem;
    width: 100%;
  }

  .cta-order__button {
    width: 100%;
    max-width: 32rem;
  }
}

/* Tablet Styles */
@media screen and (min-width: 750px) and (max-width: 989px) {
  .cta-order__button {
    padding: 1.8rem 5rem;
    font-size: 1.7rem;
  }
}

/* Disable animations if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cta-order__button,
  .cta-order__button-text,
  .cta-order__button-shimmer {
    animation: none !important;
    transition: none !important;
  }
  
  .cta-order__button:hover {
    transform: none;
  }
  
  .cta-order__button-glow {
    display: none;
  }
}

/* Focus state for accessibility */
.cta-order__button:focus-visible {
  outline: 3px solid var(--cta-glow-color);
  outline-offset: 4px;
}
