/* ============================================================
   AI1HOST — THANK YOU PAGES
   File: thank.css
   Load after services.css / pages.css
============================================================ */

/* Hide the browser scrollbar only while a thank-you page is open. */
html.ai1-thank-active,
body.ai1-thank-active {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html.ai1-thank-active::-webkit-scrollbar,
body.ai1-thank-active::-webkit-scrollbar {
  width: 0;
  height: 0;
}


/*
 * On thank-you pages the normal sticky header/menu must scroll away.
 * The script adds this class to the detected site header wrapper.
 */
.ai1-thank-site-header {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  transform: none !important;
}

/* The main confirmation card remains the principal destination. */
.ai1-thank-card {
  min-height: auto;
  display: block;
  scroll-margin-top: 12px;
}

.ai1-thank-page {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 229, 255, 0.12), transparent 32%),
    radial-gradient(circle at 85% 25%, rgba(22, 255, 136, 0.10), transparent 30%),
    linear-gradient(180deg, #07111c 0%, #091827 52%, #07111c 100%);
  color: #f7fbff;
  isolation: isolate;
}

.ai1-thank-page::before,
.ai1-thank-page::after {
  content: "";
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  pointer-events: none;
  z-index: -1;
}

.ai1-thank-page::before {
  top: -10rem;
  left: -12rem;
  background: #00d9ff;
}

.ai1-thank-page::after {
  right: -12rem;
  bottom: -14rem;
  background: #25f28d;
}

.ai1-thank-hero {
  position: relative;
  padding: clamp(4.5rem, 8vw, 6.5rem) 0 clamp(5rem, 9vw, 7rem);
}

.ai1-thank-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  z-index: -3;
}

.ai1-thank-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 13, 23, 0.72), rgba(4, 13, 23, 0.94)),
    radial-gradient(circle at 50% 18%, rgba(0, 225, 255, 0.14), transparent 38%);
  z-index: -2;
}

.ai1-thank-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.ai1-thank-card {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(121, 228, 255, 0.2);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(16, 34, 52, 0.92), rgba(9, 23, 37, 0.96));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 45px rgba(0, 218, 255, 0.08);
  backdrop-filter: blur(18px);
  text-align: center;
  overflow: hidden;
}

.ai1-thank-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(0, 225, 255, 0.65),
    rgba(255, 255, 255, 0.04) 38%,
    rgba(36, 243, 143, 0.45)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.ai1-thank-status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(61, 237, 157, 0.26);
  border-radius: 999px;
  background: rgba(22, 92, 63, 0.22);
  color: #baf8d8;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai1-thank-status__dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: #3cf29a;
  box-shadow: 0 0 0 0 rgba(60, 242, 154, 0.5);
  animation: ai1-thank-pulse 1.8s ease-out infinite;
}

.ai1-thank-icon {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(145deg, rgba(0, 214, 255, 0.22), rgba(33, 242, 142, 0.18));
  border: 1px solid rgba(110, 231, 255, 0.34);
  box-shadow:
    0 0 0 10px rgba(0, 218, 255, 0.04),
    0 0 35px rgba(0, 214, 255, 0.16);
}

.ai1-thank-icon::before,
.ai1-thank-icon::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(99, 228, 255, 0.18);
  animation: ai1-thank-ring 3s ease-out infinite;
}

.ai1-thank-icon::before { inset: -14px; }
.ai1-thank-icon::after {
  inset: -28px;
  animation-delay: 0.8s;
}

.ai1-thank-icon svg {
  width: 48px;
  height: 48px;
  stroke: #7cf3bd;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai1-thank-kicker {
  display: block;
  margin-bottom: 0.9rem;
  color: #73e8ff;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ai1-thank-card h1 {
  max-width: 720px;
  margin: 0 auto 1rem;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.ai1-thank-card .ai1-thank-lead {
  max-width: 680px;
  margin: 0 auto;
  color: rgba(240, 248, 255, 0.78);
  font-size: clamp(1.04rem, 2vw, 1.22rem);
  line-height: 1.75;
}



/* Heading positioned between the site menu and the main thank-you card */
.ai1-thank-intro {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  padding-top: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.ai1-thank-intro__kicker {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: #73e8ff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ai1-thank-intro h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.ai1-thank-intro p {
  max-width: 700px;
  margin: 1rem auto 0;
  color: rgba(236, 245, 252, 0.72);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

/* ============================================================
   TRAFFIC-LIGHT SUMMARY CARDS
============================================================ */

.ai1-thank-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.95rem;
  margin: 2.25rem 0 0;
}

.ai1-thank-summary__item {
  --ai1-light-rgb: 0, 225, 255;
  --ai1-light-colour: #70eaff;

  position: relative;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.45rem 1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(18, 36, 54, 0.82), rgba(10, 25, 40, 0.92));
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
  overflow: hidden;
  isolation: isolate;
}

.ai1-thank-summary__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--ai1-light-rgb), 0.34), transparent 48%),
    linear-gradient(180deg, rgba(var(--ai1-light-rgb), 0.10), transparent 74%);
  opacity: 0;
}

.ai1-thank-summary__item::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--ai1-light-colour);
  box-shadow: 0 0 18px rgba(var(--ai1-light-rgb), 0.82);
  opacity: 0.16;
  transform: scaleX(0.38);
}

.ai1-thank-traffic-light {
  position: absolute;
  top: 0.82rem;
  left: 50%;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  transform: translateX(-50%);
  background: rgba(var(--ai1-light-rgb), 0.20);
  border: 1px solid rgba(var(--ai1-light-rgb), 0.42);
  box-shadow:
    0 0 0 5px rgba(var(--ai1-light-rgb), 0.045),
    0 0 12px rgba(var(--ai1-light-rgb), 0.12);
  opacity: 0.28;
}

.ai1-thank-summary__item--red {
  --ai1-light-rgb: 255, 67, 67;
  --ai1-light-colour: #ff4343;
}

.ai1-thank-summary__item--amber {
  --ai1-light-rgb: 255, 193, 36;
  --ai1-light-colour: #ffc124;
}

.ai1-thank-summary__item--green {
  --ai1-light-rgb: 55, 238, 126;
  --ai1-light-colour: #37ee7e;
}

/* Each card lights for one third of the six-second cycle. */
.ai1-thank-summary__item--red {
  animation: ai1-card-red 3.6s linear infinite;
}

.ai1-thank-summary__item--amber {
  animation: ai1-card-amber 3.6s linear infinite;
}

.ai1-thank-summary__item--green {
  animation: ai1-card-green 3.6s linear infinite;
}

.ai1-thank-summary__item--red::before,
.ai1-thank-summary__item--red::after,
.ai1-thank-summary__item--red .ai1-thank-traffic-light {
  animation: ai1-glow-red 3.6s linear infinite;
}

.ai1-thank-summary__item--amber::before,
.ai1-thank-summary__item--amber::after,
.ai1-thank-summary__item--amber .ai1-thank-traffic-light {
  animation: ai1-glow-amber 3.6s linear infinite;
}

.ai1-thank-summary__item--green::before,
.ai1-thank-summary__item--green::after,
.ai1-thank-summary__item--green .ai1-thank-traffic-light {
  animation: ai1-glow-green 3.6s linear infinite;
}

@keyframes ai1-card-red {
  0%, 30% {
    border-color: rgba(255, 67, 67, 0.95);
    background: linear-gradient(180deg, rgba(78, 24, 34, 0.96), rgba(27, 17, 29, 0.97));
    box-shadow:
      0 14px 32px rgba(0, 0, 0, 0.18),
      0 0 30px rgba(255, 67, 67, 0.38),
      inset 0 0 26px rgba(255, 67, 67, 0.10);
  }
  34%, 100% {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(18, 36, 54, 0.82), rgba(10, 25, 40, 0.92));
    box-shadow:
      0 14px 32px rgba(0, 0, 0, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.025);
  }
}

@keyframes ai1-card-amber {
  0%, 32% {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(18, 36, 54, 0.82), rgba(10, 25, 40, 0.92));
    box-shadow:
      0 14px 32px rgba(0, 0, 0, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.025);
  }
  34%, 64% {
    border-color: rgba(255, 193, 36, 0.95);
    background: linear-gradient(180deg, rgba(78, 61, 18, 0.96), rgba(31, 27, 16, 0.97));
    box-shadow:
      0 14px 32px rgba(0, 0, 0, 0.18),
      0 0 30px rgba(255, 193, 36, 0.38),
      inset 0 0 26px rgba(255, 193, 36, 0.10);
  }
  68%, 100% {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(18, 36, 54, 0.82), rgba(10, 25, 40, 0.92));
    box-shadow:
      0 14px 32px rgba(0, 0, 0, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.025);
  }
}

@keyframes ai1-card-green {
  0%, 66% {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(18, 36, 54, 0.82), rgba(10, 25, 40, 0.92));
    box-shadow:
      0 14px 32px rgba(0, 0, 0, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.025);
  }
  68%, 98% {
    border-color: rgba(55, 238, 126, 0.95);
    background: linear-gradient(180deg, rgba(18, 74, 47, 0.96), rgba(15, 31, 24, 0.97));
    box-shadow:
      0 14px 32px rgba(0, 0, 0, 0.18),
      0 0 30px rgba(55, 238, 126, 0.40),
      inset 0 0 26px rgba(55, 238, 126, 0.11);
  }
  100% {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(18, 36, 54, 0.82), rgba(10, 25, 40, 0.92));
    box-shadow:
      0 14px 32px rgba(0, 0, 0, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.025);
  }
}

@keyframes ai1-glow-red {
  0%, 30% { opacity: 1; }
  34%, 100% { opacity: 0.16; }
}

@keyframes ai1-glow-amber {
  0%, 32% { opacity: 0.16; }
  34%, 64% { opacity: 1; }
  68%, 100% { opacity: 0.16; }
}

@keyframes ai1-glow-green {
  0%, 66% { opacity: 0.16; }
  68%, 98% { opacity: 1; }
  100% { opacity: 0.16; }
}

.ai1-thank-summary__item strong {
  display: block;
  margin-bottom: 0.38rem;
  color: #ffffff;
  font-size: 0.98rem;
  line-height: 1.35;
}

.ai1-thank-summary__item span:not(.ai1-thank-traffic-light) {
  color: rgba(232, 241, 248, 0.66);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ============================================================
   ACTIONS
============================================================ */

.ai1-thank-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.ai1-thank-btn {
  min-width: 190px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.ai1-thank-btn:hover,
.ai1-thank-btn:focus-visible {
  transform: translateY(-2px);
}

.ai1-thank-btn--primary {
  color: #04131d;
  background: linear-gradient(135deg, #6ee9ff, #3af095);
  box-shadow: 0 14px 32px rgba(0, 219, 255, 0.18);
}

.ai1-thank-btn--primary:hover,
.ai1-thank-btn--primary:focus-visible {
  box-shadow: 0 18px 40px rgba(0, 219, 255, 0.26);
}

.ai1-thank-btn--ghost {
  color: #eaf7ff;
  border: 1px solid rgba(173, 235, 255, 0.22);
  background: rgba(255, 255, 255, 0.035);
}

.ai1-thank-btn--ghost:hover,
.ai1-thank-btn--ghost:focus-visible {
  border-color: rgba(112, 231, 255, 0.5);
  background: rgba(87, 214, 255, 0.08);
}

.ai1-thank-note {
  margin: 1.6rem 0 0;
  color: rgba(222, 233, 240, 0.58);
  font-size: 0.88rem;
}

.ai1-thank-note a {
  color: #78e9ff;
}

@keyframes ai1-thank-pulse {
  0% { box-shadow: 0 0 0 0 rgba(60, 242, 154, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(60, 242, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(60, 242, 154, 0); }
}

@keyframes ai1-thank-ring {
  0% {
    transform: scale(0.88);
    opacity: 0;
  }
  25% { opacity: 0.5; }
  100% {
    transform: scale(1.12);
    opacity: 0;
  }
}

@media (max-width: 760px) {
  .ai1-thank-hero {
    padding-top: 6rem;
  }

  .ai1-thank-card {
    border-radius: 22px;
  }

  .ai1-thank-summary {
    grid-template-columns: 1fr;
  }

  .ai1-thank-actions {
    flex-direction: column;
  }

  .ai1-thank-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai1-thank-status__dot,
  .ai1-thank-icon::before,
  .ai1-thank-icon::after {
    animation: none;
  }

  .ai1-thank-summary__item,
  .ai1-thank-summary__item::before,
  .ai1-thank-summary__item::after,
  .ai1-thank-traffic-light {
    animation-duration: 7.2s;
  }

  .ai1-thank-btn {
    transition: none;
  }
}
