/* Masterclass Thank You – HunarX brand theme */

:root {
  --hx-purple: #c51ee1;
  --hx-pink: #e03280;
  --hx-orange: #ffb30f;
  --hx-yellow: #f7ff62;
  --hx-gold: #ffd32b;
  --hx-dark: #1f1d0d;
  --hx-text: #29281e;
  --hx-gradient: linear-gradient(
    136deg,
    var(--hx-purple) 2.8%,
    var(--hx-pink) 53.19%,
    var(--hx-orange) 82.91%
  );
}

.masterclass-thankyou {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--hx-dark);
}

/* Animated gradient background */
.masterclass-thankyou__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    -45deg,
    #1f1d0d,
    #3a1048,
    #5c1858,
    #8b1a52,
    #b85a10
  );
  background-size: 400% 400%;
  animation: hxGradientShift 12s ease infinite;
}

.masterclass-thankyou__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hx-gradient);
  opacity: 0.55;
  mix-blend-mode: overlay;
  animation: hxPulseOverlay 6s ease-in-out infinite alternate;
}

@keyframes hxGradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes hxPulseOverlay {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 0.65;
  }
}

/* Floating orbs */
.masterclass-thankyou__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  z-index: 1;
  pointer-events: none;
}

.masterclass-thankyou__orb--1 {
  width: 320px;
  height: 320px;
  background: var(--hx-purple);
  top: -80px;
  left: -60px;
  animation: hxFloatOrb 8s ease-in-out infinite;
}

.masterclass-thankyou__orb--2 {
  width: 280px;
  height: 280px;
  background: var(--hx-pink);
  bottom: -60px;
  right: -40px;
  animation: hxFloatOrb 10s ease-in-out infinite reverse;
}

.masterclass-thankyou__orb--3 {
  width: 200px;
  height: 200px;
  background: var(--hx-gold);
  top: 40%;
  right: 15%;
  animation: hxFloatOrb 7s ease-in-out infinite 1s;
}

@keyframes hxFloatOrb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -25px) scale(1.08);
  }
}

/* Confetti container */
.masterclass-thankyou__confetti {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.masterclass-thankyou__confetti-piece {
  position: absolute;
  top: -12px;
  width: 10px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
  animation: hxConfettiFall linear forwards;
}

@keyframes hxConfettiFall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(110vh) rotate(720deg);
  }
}

/* Main card */
.masterclass-thankyou__card {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 640px;
  text-align: center;
  padding: 48px 40px 44px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: hxCardReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hxCardReveal {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.masterclass-thankyou__logo {
  margin-bottom: 28px;
  animation: hxFadeDown 0.8s ease 0.2s both;
}

.masterclass-thankyou__logo img {
  height: 44px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

/* Animated checkmark */
.masterclass-thankyou__icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  position: relative;
  animation: hxFadeDown 0.8s ease 0.35s both;
}

.masterclass-thankyou__icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(247, 255, 98, 0.35);
  animation: hxRingPulse 2s ease-in-out infinite;
}

.masterclass-thankyou__icon-ring::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  animation: hxRingPulse 2s ease-in-out infinite 0.4s;
}

@keyframes hxRingPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.7;
  }
}

.masterclass-thankyou__icon-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--hx-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(197, 30, 225, 0.45);
  animation: hxIconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

@keyframes hxIconPop {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.masterclass-thankyou__icon-circle svg {
  width: 44px;
  height: 44px;
}

.masterclass-thankyou__check-path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: hxDrawCheck 0.5s ease 0.9s forwards;
}

@keyframes hxDrawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

/* Typography */
.masterclass-thankyou__badge {
  display: inline-block;
  padding: 6px 18px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hx-dark);
  background: var(--hx-yellow);
  border-radius: 100px;
  animation: hxFadeDown 0.8s ease 0.45s both;
}

.masterclass-thankyou__title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 14px;
  animation: hxFadeDown 0.8s ease 0.55s both;
}

.masterclass-thankyou__title span {
  background: linear-gradient(90deg, var(--hx-yellow), #ffffff, var(--hx-gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hxShimmer 4s linear infinite;
}

@keyframes hxShimmer {
  to {
    background-position: 200% center;
  }
}

.masterclass-thankyou__subtitle {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 480px;
  margin: 0 auto 32px;
  animation: hxFadeDown 0.8s ease 0.65s both;
}

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

/* Next steps */
.masterclass-thankyou__steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  text-align: left;
  animation: hxFadeDown 0.8s ease 0.75s both;
}

.masterclass-thankyou__step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.3s ease, background 0.3s ease;
}

.masterclass-thankyou__step:hover {
  transform: translateX(6px);
  background: rgba(255, 255, 255, 0.14);
}

.masterclass-thankyou__step-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--hx-dark);
  background: var(--hx-yellow);
}

.masterclass-thankyou__step-text {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

.masterclass-thankyou__step-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

/* Buttons */
.masterclass-thankyou__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  animation: hxFadeDown 0.8s ease 0.85s both;
}

.masterclass-thankyou__actions .btn {
  min-width: 180px;
}

.masterclass-thankyou__social {
  margin-top: 28px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  animation: hxFadeDown 0.8s ease 0.95s both;
}

.masterclass-thankyou__social a {
  color: var(--hx-yellow);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.masterclass-thankyou__social a:hover {
  color: #ffffff;
}

/* Sparkle decorations */
.masterclass-thankyou__sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hx-yellow);
  z-index: 2;
  pointer-events: none;
  animation: hxSparkle 3s ease-in-out infinite;
}

.masterclass-thankyou__sparkle--1 {
  top: 18%;
  left: 12%;
  animation-delay: 0s;
}

.masterclass-thankyou__sparkle--2 {
  top: 25%;
  right: 18%;
  animation-delay: 0.8s;
}

.masterclass-thankyou__sparkle--3 {
  bottom: 22%;
  left: 20%;
  animation-delay: 1.6s;
}

.masterclass-thankyou__sparkle--4 {
  bottom: 30%;
  right: 10%;
  animation-delay: 2.2s;
}

@keyframes hxSparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
  }
}

/* Responsive */
@media screen and (max-width: 575px) {
  .masterclass-thankyou__card {
    padding: 36px 22px 32px;
    border-radius: 18px;
  }

  .masterclass-thankyou__actions {
    flex-direction: column;
  }

  .masterclass-thankyou__actions .btn {
    width: 100%;
  }
}

/* Loading & denied states */
.masterclass-thankyou__loader {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.masterclass-thankyou__loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--hx-yellow);
  border-right-color: var(--hx-pink);
  animation: hxSpin 1s linear infinite;
}

.masterclass-thankyou__loader-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: var(--hx-orange);
  animation: hxSpin 1.4s linear infinite reverse;
}

.masterclass-thankyou__loader-logo {
  position: relative;
  z-index: 1;
  width: 58px;
  height: auto;
  animation: hxLogoPulse 1.8s ease-in-out infinite;
}

@keyframes hxSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes hxLogoPulse {
  0%,
  100% {
    opacity: 0.88;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

.masterclass-thankyou__icon--denied .masterclass-thankyou__icon-circle {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: none;
  font-size: 28px;
  color: #ffffff;
}

.masterclass-thankyou__badge--denied {
  background: rgba(255, 255, 255, 0.9);
  color: var(--hx-dark);
}

/* Booking checkout on contact page */
.booking_summary_card {
  margin-top: 28px;
  padding: 28px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #ececec;
  box-shadow: 0 12px 40px rgba(31, 29, 13, 0.08);
}

.booking_summary_title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--hx-dark, #1f1d0d);
}

.booking_summary_meta {
  font-size: 15px;
  color: #444444;
}

.booking_checkout_note,
.booking_checkout_error {
  font-size: 14px;
}
