/* ============================================================
     IMPORTANT FIX:
     Put the gradient on .crp-page (wrapper from base.html),
     NOT on .crp-hero. This way footer also sits on the gradient.
     ============================================================ */

/* Full-page background: fixed layer avoids seam between content and shared footer */
/* body.crp-body {
    position: relative;
    background-color: #3a006a;
  } */

/* body.crp-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      radial-gradient(
        500px 320px at 62% 50%,
        rgba(92, 214, 255, 0.55),
        rgba(92, 214, 255, 0) 60%
      ),
      radial-gradient(
        500px 320px at 40% 50%,
        rgba(207, 72, 255, 0.55),
        rgba(207, 72, 255, 0) 60%
      ),
      radial-gradient(
        1200px 700px at 50% 12%,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0) 55%
      ),
      linear-gradient(135deg, #3a006a 0%, #5a1796 40%, #2d6db8 100%);
  } */


/* body.crp-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      radial-gradient( */
/* 520px 360px at 68% 72%,
        rgba(92, 214, 255, 0.58),
        rgba(92, 214, 255, 0) 62% */
/* ),
      radial-gradient(
        520px 360px at 32% 72%,
        rgba(207, 72, 255, 0.58),
        rgba(207, 72, 255, 0) 62%
      ),
      radial-gradient(
        1200px 700px at 50% 12%,
        rgba(255, 255, 255, 0.10),
        rgba(255, 255, 255, 0) 55%
      ),
      linear-gradient(135deg, #3a006a 0%, #5a1796 40%, #2d6db8 100%);
    background-repeat: no-repeat;
    animation: crpCardGlowOrbit 32s linear infinite;
    will-change: background-position;
  } */

/*
  body.crp-body .crp-page {
    min-height: 100svh;
    background: transparent;
  } */

/* body.crp-body .crp-page { */
/* min-height: auto;
  background: transparent;
} */


/* Make sure footer stays transparent */
/* body.crp-body .footer-main {
    background: transparent !important;
  } */

body.crp-body .container-fluid {
  background: transparent;
}

body.crp-body {
  background: #150723 !important;
}

body.crp-body .cssToVideo {
  --css-video-scale: 20;
  --css-video-width: 192px;
  --css-video-height: 115px;
  position: fixed;
  top: calc(50% - (var(--css-video-height) * var(--css-video-scale) / 2));
  left: calc(50% - (var(--css-video-width) * var(--css-video-scale) / 2));
  z-index: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: visible;
  pointer-events: none;
  transform: scale(var(--css-video-scale));
  transform-origin: top left;
}

body:not(.crp-body) .cssToVideo {
  display: none;
}

body.crp-body .crp-page {
  position: relative;
  z-index: 1;
  background: transparent;
}

/* ===== Hero wrapper (NO background here now) ===== */
.crp-hero {
  /* flex: 1 1 auto; takes available space above footer */
  /* display: flex; */
  /* flex-direction: column; */
  color: #fff;
  background: transparent;
  /* IMPORTANT */
}

/* ===== Top logo ===== */
.crp-top {
  padding-top: 50px;
  padding-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.crp-top img {
  width: 220px;
  max-width: 220px;
  height: auto;
  opacity: 0.95;
}

/* ===== Center card ===== */
.crp-center {
  /* flex: 1; */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 24px;
  position: relative;
}

/* card-sized wrapper that owns the glow */
.crp-card-shell {
  position: relative;
  width: min(980px, 96vw);
  /* overflow: hidden; */
}

.crp-card {
  position: relative;
  z-index: 2;
  /* isolation: isolate; */
  width: 100%;
  min-height: var(--crp-white-card-fixed-height);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 26px;
  box-shadow:
    0 30px 92px rgba(0, 0, 0, 0.15),
    0 10px 40px rgba(255, 255, 255, 0.6),
    0 0 80px rgba(255, 255, 255, 0.35),
    inset 0 2px 6px rgba(255, 255, 255, 0.8),
    inset 0 -6px 14px rgba(0, 0, 0, 0.08);

  padding: clamp(22px, 3.5vw, 42px);
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.crp-card:not(.home-reveal-ready) .crp-card-kicker,
.crp-card:not(.home-reveal-ready) .crp-trio-item,
.crp-card:not(.home-reveal-ready) .crp-input-wrap,
.crp-card:not(.home-reveal-ready) form>.invalid-feedback.d-block,
.crp-card:not(.home-reveal-ready) .row.text-start>[class*='col-'],
.crp-card:not(.home-reveal-ready) .mb-3.text-start,
.crp-card:not(.home-reveal-ready) .form-check {
  opacity: 0;
  visibility: hidden;
}




.crp-card>* {
  position: relative;
  z-index: 3;
}

.crp-card::before,
.crp-card::after {
  content: none;
}

.crp-card-kicker {
  font-size: 14px;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #111;
  text-transform: uppercase;
  margin-bottom: 45px;
}

/* ===== Icons + labels line ===== */
.crp-trio {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* gap: 4px; */
  /* width: 100%; */
  width: min(720px, 100%);
  margin: 0 auto;
  /* margin-bottom: 10px; */
}

.crp-trio-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  text-align: center;
}

.crp-trio-item img {
  display: block;
}

.crp-trio:not(.trio-sequence-ready) .crp-trio-item:nth-child(2),
.crp-trio:not(.trio-sequence-ready) .crp-trio-item:nth-child(3) {
  opacity: 0;
}

.crp-trio.trio-sequence-ready .crp-trio-item:nth-child(2),
.crp-trio.trio-sequence-ready .crp-trio-item:nth-child(3) {
  opacity: 1;
}

.crp-trio-icon {
  width: 46px;
  height: 46px;
}

.crp-trio-label {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 35px);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #4a158b;
  text-transform: uppercase;
  line-height: 1;
  width: 100%;
  text-align: center;
}

@media (min-width: 1025px) {
  .crp-trio-item:nth-child(2) {
    padding-right: 10px;
  }

  .crp-trio-item:nth-child(3) img {
    padding-right: 8px;
  }
}

.crp-subtitle {
  margin: 6px 0 22px;
  font-size: 16px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 280ms ease,
    transform 280ms ease,
    visibility 0s linear 280ms;
  padding-top: 20px;
  padding-bottom: 15px;
}

#submitBtn {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 280ms ease,
    transform 280ms ease,
    visibility 0s linear 280ms;
}

.crp-card.trio-form-ready #submitBtn {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 280ms ease,
    transform 280ms ease,
    visibility 0s linear 0s;
}


.crp-card.trio-form-ready .crp-subtitle {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 280ms ease,
    transform 280ms ease,
    visibility 0s linear 0s;
}


/* ===== Input with gradient border ===== */
.crp-input-wrap {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 3px;
  border-radius: 10px;
  background: linear-gradient(135deg, #B500DF 0%, #00FFFF 100%);
  /* box-shadow:
      0 0 20px rgba(181, 0, 223, 0.35),
      0 0 40px rgba(0, 255, 255, 0.25); */
  position: relative;
}

.crp-input {
  width: 100%;
  height: 58px;
  border: 0 !important;
  border-radius: 8px !important;
  /* background: #fff !important; */
  background-color: #fff !important;
  color: #111 !important;
  font-size: 20px !important;
  filter: drop-shadow(10px 10px 15px rgba(0, 0, 0, 0.3));
  padding: 0 22px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crp-input:focus {
  outline: none !important;
  box-shadow: none !important;
}

.crp-input::placeholder {
  color: transparent;
  opacity: 0;
}

.crp-input.is-auto-typing::placeholder {
  color: #111;
  opacity: 0.65;
}


.crp-input.is-auto-typing {
  caret-color: transparent;
  background-image: linear-gradient(#111, #111);
  background-repeat: no-repeat;
  background-size: 1px 22px;
  background-position: calc(22px + var(--cursor-x, 0px)) 50%;
  animation: intro-caret-blink 0.8s steps(1) infinite;
}

@keyframes intro-caret-blink {
  0% {
    background-image: linear-gradient(#111, #111);
  }

  50% {
    background-image: none;
  }

  100% {
    background-image: linear-gradient(#111, #111);
  }
}


.crp-btn:disabled {
  background: #f3cc84 !important;
  color: rgba(17, 17, 17, 0.65) !important;
  cursor: not-allowed;
  opacity: 1;
  transform: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.crp-btn:not(.btn-fill-wipe):hover:not(:disabled) {
  background: #E68200 !important;
  transform: translateY(-1px);
}

/* ===== Button ===== */
.crp-btn {
  margin-top: 16px;
  background-color: #ff9300 !important;
  background-image: none;
  color: #111 !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 10px 34px !important;
  font-weight: 900 !important;
  font-size: 17px !important;
  min-width: 220px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  transition:
    background-color 900ms ease,
    opacity 300ms ease,
    box-shadow 300ms ease,
    transform 180ms ease;
}

/* Keep bootstrap invalid feedback readable */
.invalid-feedback {
  color: #b00020;
  font-weight: 700;
}

@media (max-width: 640px) {
  .crp-trio {
    gap: 18px;
  }

  .crp-trio-item {
    min-width: auto;
  }

  .crp-trio-label {
    font-size: 22px;
  }
}

@media (max-width: 1024px) {
  body.crp-body .container-fluid {
    padding-bottom: clamp(16px, 4vh, 32px);
  }

  .crp-center {
    align-items: flex-start;
    padding: 14px 16px clamp(24px, 6vh, 48px);
  }

  .crp-trio {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .crp-trio-item {
    min-width: auto;
    width: 100%;
    max-width: 320px;
  }
}

/* --- Footer alignment fix (full width + centered content) --- */

body.crp-body .footer-main .container-fluid {
  max-width: 1200px;
  /* optional */
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}

/* If footer-main itself is a flex container in base.html */
body.crp-body .footer-main {
  width: 100%;
  margin: 0;
  padding: 0;
  /* remove any gap */
  background: transparent !important;
  display: block;
  /* avoid flex weirdness on footer itself */
}

/* Center footer content without creating a “panel” */
body.crp-body .footer-main .container.position-relative {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px 0;
  /* small internal padding only */
  text-align: center;
  background: transparent !important;
}
