/* Popup shell */
.registration-screen {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 34px;
  overflow-y: auto;
  z-index: 1000020;
}
.registration-screen--open {
  display: flex;
}
.registration-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1;
}
.registration-close {
  background: none;
  border: 0;
  cursor: pointer;
  position: absolute;
  top: 33px;
  right: 26px;
  z-index: 51;
  transition: transform 0.15s linear;
  transform: rotate(0);
  padding: 0;
  width: 30px;
  height: 30px;
  border-radius: 60px;
}
.registration-popup {
  position: relative;
  background-color: #F0F3FF;
  color: #000;
  border-radius: 24px;
  max-width: 870px;
  width: 100%;
  margin: 0 auto;
  padding: 61.5px 78px 61.5px 60px;
  display: flex;
  justify-content: space-between;
  box-shadow: 0 0 10px -5px #333;
  z-index: 955;
}

/* Columns */
.registration-col--form {
  max-width: 100%;
  flex: 0 0 100%;
  font-size: 18px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  letter-spacing: -0.18px;
}

.registration {
  margin-top: 48px;
}

/* Heading */
.registration-heading {
  width: 100%;
  font-weight: 400;
  font-size: 52px;
  line-height: 130%;
  margin-bottom: 0;
  margin-top: 0;
  max-width: 500px;
  text-align: left;
}
.register-card--success .registration-heading {
  max-width: none;
}
.registration-text {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 150%;
  margin-top: 16px;
  display: none;
}
.register-card--success .registration-text {
  display: block;
}

/* Form */
.registration__row {
  display: flex;
  margin-bottom: 16px;
  gap: 10px;
  align-items: center;
}
.form .input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
  justify-content: space-between;
  margin: 0 auto;
}
.form input {
  border: none;
  border-radius: 6px;
  padding: 12px 16px;
  font-weight: 400;
  font-size: 20px;
  line-height: 150%;
  color: #000;
  max-height: 54px;
}
.form input::placeholder {
  color: #666666;
}
.form input:-webkit-autofill,
.form input:-webkit-autofill:hover,
.form input:-webkit-autofill:active,
.form input:-webkit-autofill:focus {
  background-color: #FFFFFF !important;
}
.form .input-group input {
  width: 100%;
  border: 1px solid #fff;
  background-color: #fff;
}
.form .w-100 {
  width: 100%;
}
.form input:focus {
  box-shadow: none;
  border: 1px solid #6c6cff !important;
  outline: none !important;
  border-radius: 8px;
}
.form-label {
  font-size: 14px;
}
.form input.has-error {
  color: #EA4335;
}

.action {
  display: flex;
  align-items: center;
  flex: 0 0 198px;
}
.button-submit {
  background-color: #000;
  border: none;
  color: #fff;
  font-weight: 400;
  font-size: 16px;
  line-height: 160%;
  padding: 16px 36px;
  height: 58px;
  width: 198px;
}

.output-mess {
  color: #B63546;
  font-size: 14px;
  margin-top: 5px;
  line-height: 20px;
  display: none;
}
.registration__agree {
  display: block;
  font-size: 12px;
  line-height: 150%;
  width: 100%;
}
.registration__agree a {
  color: inherit;
  text-decoration: underline;
}

.registration-sucess .registration-popup {
  color: #000;
  position: relative;
}
.registration__shapes {
  position: absolute;
  right: 0;
  bottom: 0;
  border-radius: 0 0 24px 0;
}
.success-heading {
  font-size: 72px;
  font-weight: 400;
  line-height: 115%;
  margin-bottom: 41px;
}
.success-text {
  font-size: 24px;
  line-height: 150%;
  margin-bottom: 0;
  /* Keep the subtext clear of the corner shapes (.registration__shapes) */
  max-width: 440px;
}
.registration-success--has-calendar .success-text {
  margin-bottom: 41px;
}
.e26-live--livestream-day .add-to-calendar {
  display: none !important;
}
.e26-live--livestream-day .registration-success--has-calendar .success-text {
  margin-bottom: 0;
}
@media (max-width: 850px) {
  .success-text {
    max-width: calc(100% - 238px);
  }
}

/* Add to calendar - shown inside the success popup only, once registration completes
   (the popup itself stays display:none until then, via .registration-screen--open). Both
   timezone links are in the DOM; ls-registration.js reveals only the visitor's own via
   getNearestTimezone(), the same 'ny' / 'london' buckets used for the hidden timezone field. */
.add-to-calendar {
}
.add-to-calendar__timezone {
  display: none;
}

/* The register card's own add-to-calendar copy stays hidden until closeSuccessScreen()
   in ls-registration.js reveals it, once the visitor dismisses the success popup. */
.register-card .add-to-calendar {
  display: none;
  margin-top: 48px;
}

/* FOR LS REGISTER: e26-live only has one AddEvent id this year (see the 'zj03cnhl4hww'
   data-id in e26-live.php) - the 'london'/'sydney' buckets were dropped from its markup, and
   this forces the remaining 'ny' one to always show, overriding revealAddToCalendar()'s
   per-visitor inline style in ls-registration.js for visitors outside that bucket. That
   function stays as-is since the multi-timezone flow elsewhere (templates/registration-popup.php)
   still needs it. */
.registration-success .add-to-calendar__timezone.ny,
.register-card .add-to-calendar__timezone.ny {
  display: block !important;
}
.add-to-calendar .addeventatc {
  background-color: transparent !important;
  color: #000 !important;
  padding: 0 0 2px 32px !important;
  font-size: 19px !important;
  line-height: 150%;
  font-family: inherit !important;
  font-weight: 400 !important;
  display: inline-flex !important;
  align-items: center;
  transition: opacity 0.2s ease-in-out !important;
  box-shadow: none !important;
  text-transform: capitalize;
  border-bottom: 1px solid #000;
}
.add-to-calendar .addeventatc:hover,
.add-to-calendar .addeventatc:active {
  color: #000 !important;
  opacity: 0.85;
}
.add-to-calendar .addeventatc .addeventatc_icon {
  background: url(../images/e26/cal_icon.png) no-repeat !important;
  top: 0 !important;
  left: 0 !important;
  width: 24px;
  height: 24px;
}

@media (max-width: 1280px) {
  .register-card--success .registration-heading {
    font-size: 40px;
  }
}
@media (max-width: 1100px) {
  .registration {
    margin-top: 24px;
  }
  .registration-heading {
    font-size: 32px;
    margin-bottom: 0;
    max-width: 315px;
  }
  .register-card--success .registration-heading {
    font-size: 32px;
  }
  .registration__row {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    margin-bottom: 12px;
    gap: 12px;
  }
  .action {
    align-items: flex-start;
    flex: 0 0 auto;
  }
  .button-submit {
    font-size: 12px;
    padding: 12px 26px;
    width: auto;
    height: auto;
  }
  .form input {
    font-size: 14px;
    max-height: 45px;
  }
}
@media (max-width: 850px) {
  .registration__shapes {
    bottom: -1px;
    border-radius: 0 0 24px 0;
    max-width: 238px;
  }
  .register-card .add-to-calendar {
    margin-top: 24px;
  }
}
@media (max-width: 767px) {
  .registration__shapes {
    display: none;
  }
  .success-heading {
    font-size: 36px;
    margin-bottom: 26px;
  }
  .success-text {
    font-size: 20px;
    max-width: none;
  }
  .registration-success--has-calendar .success-text {
    margin-bottom: 26px;
  }
  .registration-close {
    top: 12px;
    right: 8px;
  }
  .registration-close svg {
    width: 24px;
    height: 24px;
  }
  .add-to-calendar .addeventatc {
    font-size: 18px!important;
  }
}

/* Quick-registration loading overlay (Braze one-click flow). Shown while body has the .qreg
   class, which header-2026.php adds on page load when the URL carries a valid uid/token/qreg=1,
   and ls-registration.js removes once the auto-submit resolves (success or failure). */
.qreg-wrapper {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: #fff;
  z-index: 1000021;
  padding: 34px;
}
body.qreg .qreg-wrapper {
  display: flex;
}
/* body.qreg is set by the inline script right after <body> opens, before any content is
   parsed, so hiding the page here keeps slow connections from painting it ahead of the
   .qreg-wrapper markup. The wrapper opts back in; removing .qreg reveals everything. */
body.qreg {
  visibility: hidden;
}
body.qreg .qreg-wrapper {
  visibility: visible;
}
.qreg-box {
  width: 580px;
  max-width: 100%;
  padding: 90px 20px 120px;
  border-radius: 24px;
  background: #F0F3FF;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
/* Own class rather than .loader: that one is toggled by $('.loader') in ls-registration.js
   for the submit button's spinner, and jQuery selects by class regardless of context, so
   sharing it here would make setLoading() fight over this spinner's visibility too. */
.qreg-loader {
  width: 16px;
  height: 16px;
  position: absolute;
  bottom: 62px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  color: #fff;
  background: #D25DDC;
  box-shadow: 32px 0, -32px 0, 64px 0;
  margin-left: -17px;
}
.qreg-loader::after {
  content: '';
  position: absolute;
  left: -32px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 10px;
  background: #D25DDC;
  animation: ls-registration-move 3s linear infinite alternate;
}
.qreg-box__text {
  color: #000;
  font-size: 25px;
  font-weight: 300;
  line-height: 125%;
  letter-spacing: -0.266px;
  margin-top: 0;
  margin-bottom: 0;
  text-align: center;
  transition: opacity 0.3s ease-in-out;
}
@media (max-width: 767px) {
  .qreg-box {
    padding: 70px 20px 100px;
  }
  .qreg-box__text {
    font-size: 20px;
  }
}

/* Spinner */
.loader {
  width: 16px;
  height: 16px;
  position: relative;
  left: -66px;
  border-radius: 50%;
  color: #fff;
  background: #D25DDC;
  box-shadow: 32px 0, -32px 0, 64px 0;
}
.loader::after {
  content: '';
  position: absolute;
  left: -32px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 10px;
  background: #D25DDC;
  animation: ls-registration-move 3s linear infinite alternate;
}
@keyframes ls-registration-move {
  0%, 5% {
    left: -32px;
    width: 16px;
  }
  15%, 20% {
    left: -32px;
    width: 48px;
  }
  30%, 35% {
    left: 0px;
    width: 16px;
  }
  45%, 50% {
    left: 0px;
    width: 48px;
  }
  60%, 65% {
    left: 32px;
    width: 16px;
  }
  75%, 80% {
    left: 32px;
    width: 48px;
  }
  95%, 100% {
    left: 64px;
    width: 16px;
  }
}

/* Responsive */
@media (max-width: 991px) {
  .registration-col--shape {
    display: none !important;
  }
  .registration-col--form {
    max-width: 100%;
    flex: 0 0 100%;
  }
}
@media (max-width: 767px) {
  .registration-popup {
    min-height: auto;
    padding: 40px 20px 40px;
    align-items: center;
  }
  .registration-screen {
    padding: 15px;
  }
}
@media (max-width: 450px) {
  .loader {
    left: 33px;
    top: -6px;
  }
}
