/* Enroll Now — sticky side tab + enrollment modal, shared by every page (markup is injected by main.js) */

.enroll-fixed {
  position: fixed;
  top: 80%;
  right: 0;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 72px;
  height: 108px;
  padding: 0 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-right: none;
  border-radius: 14px 0 0 14px;
  /* Cropped from the designer's enroll.svg export; gradient fades to coral behind the label */
  background:
    linear-gradient(180deg, rgba(242, 100, 76, 0) 0%, #f2644c 100%),
    url('assets/enroll-cta-bg.jpg') center / cover no-repeat;
  box-shadow: -6px 8px 20px rgba(0, 0, 0, 0.28);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
  cursor: pointer;
  transition: width 0.25s ease, box-shadow 0.25s ease;
}

/* Pulls out slightly from the wall on hover */
.enroll-fixed:hover {
  width: 80px;
  box-shadow: -8px 10px 24px rgba(242, 100, 76, 0.35);
}

/* Enroll Now Modal */
.enroll-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  padding: 24px;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.6);
  animation: enrollFadeIn 0.25s ease;
}

.enroll-modal.is-open {
  display: flex;
}

@keyframes enrollFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

html.enroll-modal-open,
html.enroll-modal-open body {
  overflow: hidden;
}

/* Swoosh background approximated with gradients — swap for the designer's export when available:
   background: url('assets/enroll-modal-bg.jpg') center / cover no-repeat; */
.enroll-modal-frame {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: auto;
  padding: 44px 32px 32px;
  border-radius: 4px;
  background-color: #0a1222;
  background-image:
    radial-gradient(ellipse 45% 55% at 60% 100%, rgba(226, 104, 170, 0.6), transparent 70%),
    radial-gradient(ellipse 55% 70% at 15% 35%, rgba(34, 98, 196, 0.65), transparent 70%),
    radial-gradient(ellipse 40% 60% at 92% 20%, rgba(22, 150, 170, 0.5), transparent 70%),
    repeating-radial-gradient(ellipse at 35% 170%, rgba(255, 255, 255, 0.06) 0 1.5px, transparent 1.5px 7px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.enroll-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  padding: 3px;
  border: none;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  transition: color 0.25s ease;
}

.enroll-close-btn svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.enroll-close-btn:hover,
.enroll-close-btn:focus-visible {
  color: var(--primary-color);
}

.enroll-modal-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 56px 32px;
  border-radius: 4px;
  background-color: rgba(4, 8, 16, 0.72);
  text-align: center;
}

.enroll-modal-title {
  margin-bottom: 24px;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

.enroll-thankyou-title {
  max-width: 560px;
  margin: 0 auto 28px;
}

.enroll-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 620px;
  margin: 0 auto;
}

.enroll-field {
  position: relative;
}

.enroll-field i {
  position: absolute;
  top: 50%;
  left: 22px;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--primary-color);
  pointer-events: none;
}

.enroll-field input {
  width: 100%;
  height: 54px;
  padding: 0 18px 0 50px;
  border: 2px solid transparent;
  border-radius: 4px;
  background-color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  color: #333;
  outline: none;
  transition: border-color 0.25s ease;
}

.enroll-field input::placeholder {
  color: #8a8a8a;
}

.enroll-field input:focus {
  border-color: var(--primary-color);
}

.enroll-submit-btn {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  max-width: 300px;
  height: 50px;
  border: none;
  border-radius: 25px;
  background-color: var(--primary-color);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.enroll-submit-btn:hover,
.enroll-submit-btn:focus-visible {
  background-color: #ff836f;
}

.enroll-submit-btn:disabled {
  background-color: var(--primary-color);
  opacity: 0.7;
  cursor: wait;
}

.enroll-thankyou-btn {
  max-width: 160px;
}

.enroll-form-error {
  grid-column: 1 / -1;
  padding: 10px 14px;
  border-left: 3px solid var(--primary-color);
  border-radius: 4px;
  background-color: rgba(242, 100, 76, 0.15);
  font-size: 0.95rem;
  text-align: left;
  color: #ffffff;
}

@media (max-width: 800px) {
  .enroll-modal {
    padding: 16px;
  }
  .enroll-modal-frame {
    padding: 44px 14px 14px;
  }
  .enroll-modal-panel {
    padding: 24px 18px;
  }
  .enroll-modal-title {
    margin-bottom: 20px;
    font-size: 1.35rem;
  }
  .enroll-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .enroll-field input {
    height: 50px;
    padding-left: 48px;
  }
  .enroll-submit-btn {
    height: 48px;
    margin-top: 4px;
  }
}

@media (max-width: 600px) {
  .enroll-fixed {
    width: 58px;
    height: 88px;
    padding-bottom: 9px;
    border-radius: 12px 0 0 12px;
    font-size: 0.68rem;
  }
  .enroll-fixed:hover {
    width: 58px;
  }
}

@media (max-width: 400px) {
  .enroll-modal-title {
    font-size: 1.2rem;
  }
}
