:root {
  --red: #e30613;
  --deep-red: #b8000a;
  --yellow: #ffd400;
  --cream: #fffdf2;
  --white: #ffffff;
  --ink: #251c1d;
  --muted: #706365;
  --line: rgba(227, 6, 19, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);

  background:
    linear-gradient(
      135deg,
      var(--red),
      var(--deep-red)
    );

  font-family:
    "DM Sans",
    Arial,
    sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* PAGE */

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;

  background:
    radial-gradient(
      circle at 85% 8%,
      rgba(255, 212, 0, 0.3),
      transparent 25%
    );
}

/* REGISTRATION PANEL */

.registration-panel {
  position: relative;

  display: grid;

  grid-template-columns:
    minmax(300px, 0.78fr)
    minmax(480px, 1.35fr);

  width: min(1120px, 100%);
  max-height: calc(100vh - 56px);
  overflow: auto;

  border:
    1px solid rgba(255, 255, 255, 0.35);

  border-radius: 26px;

  background: var(--cream);

  box-shadow:
    0 32px 100px rgba(60, 0, 4, 0.46);

  animation:
    panelIn 0.4s ease-out both;
}

/* GRAYED-OUT FORM */

.registration-panel.is-locked
> :not(.coming-soon-notice) {
  filter: grayscale(1);
  opacity: 0.42;
  user-select: none;
  pointer-events: none;
}

.registration-panel.is-locked::after {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 8;

  border-radius: inherit;

  background:
    rgba(31, 31, 31, 0.48);

  backdrop-filter: blur(2px);
}

/* FRONT NOTICE */

.coming-soon-notice {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 10;

  width:
    min(620px, calc(100% - 40px));

  padding:
    clamp(25px, 5vw, 42px);

  border:
    3px solid var(--yellow);

  border-radius: 22px;

  color: var(--ink);

  background:
    rgba(255, 253, 242, 0.98);

  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42);

  text-align: center;

  transform:
    translate(-50%, -50%);
}

.notice-crest {
  width: 76px;
  height: 76px;
  object-fit: contain;

  filter:
    drop-shadow(
      0 7px 12px rgba(0, 0, 0, 0.18)
    );
}

.coming-soon-notice h2 {
  margin: 0;
  color: var(--deep-red);

  font-family:
    "Barlow Condensed",
    Arial,
    sans-serif;

  font-size:
    clamp(2.2rem, 6vw, 3.5rem);

  line-height: 0.95;
  text-transform: uppercase;
}

.notice-copy {
  max-width: 510px;
  margin: 15px auto 22px;

  color: var(--muted);

  line-height: 1.6;
}

/* CONTACT INFORMATION */

.notice-contact-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 12px;
}

.notice-contact-grid a {
  display: grid;
  place-items: center;

  min-height: 125px;
  padding: 16px;

  border:
    1px solid var(--line);

  border-radius: 14px;

  color: var(--deep-red);
  background: #ffffff;

  text-decoration: none;

  transition:
    transform 0.2s,
    border-color 0.2s;
}

.notice-contact-grid a:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}

.notice-contact-grid span {
  display: grid;
  place-items: center;

  width: 36px;
  height: 36px;
  margin-bottom: 8px;

  border-radius: 50%;

  color: var(--deep-red);
  background: var(--yellow);

  font-size: 1.1rem;
}

.notice-contact-grid strong,
.notice-contact-grid small {
  display: block;
}

.notice-contact-grid small {
  margin-top: 5px;

  color: var(--muted);

  line-height: 1.35;
}

.notice-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  margin-top: 18px;
  padding: 0 24px;

  border-radius: 999px;

  color: #ffffff;
  background: var(--red);

  font-weight: 800;
  text-decoration: none;
}

.notice-home-button:hover {
  background: var(--deep-red);
}

/* PANEL ANIMATION */

@keyframes panelIn {

  from {
    opacity: 0;

    transform:
      translateY(20px)
      scale(0.985);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }
}

/* CLOSE BUTTON */

.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;

  width: 44px;
  height: 44px;

  border:
    1px solid rgba(184, 0, 10, 0.15);

  border-radius: 50%;

  color: var(--deep-red);

  background:
    rgba(255, 255, 255, 0.88);

  font-size: 29px;
  line-height: 1;

  cursor: pointer;
}

.close-button:hover,
.close-button:focus-visible {
  color: #ffffff;
  background: var(--red);

  outline:
    3px solid var(--yellow);

  outline-offset: 2px;
}

/* LEFT INTRODUCTION PANEL */

.intro-panel {
  position: sticky;
  top: 0;
  align-self: start;

  min-height: 100%;
  padding: 48px 36px;
  overflow: hidden;

  color: #ffffff;

  background:
    radial-gradient(
      circle at 0 100%,
      rgba(255, 212, 0, 0.23),
      transparent 34%
    ),
    linear-gradient(
      150deg,
      var(--red),
      var(--deep-red)
    );
}

.intro-panel::after {
  content: "";

  position: absolute;
  right: -120px;
  bottom: -125px;

  width: 300px;
  height: 300px;

  border:
    45px solid rgba(255, 212, 0, 0.1);

  border-radius: 50%;
}

.crest {
  width: 88px;
  height: 88px;
  object-fit: contain;

  filter:
    drop-shadow(
      0 10px 18px rgba(0, 0, 0, 0.28)
    );
}

.eyebrow {
  margin: 22px 0 7px;

  color: var(--yellow);

  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow.red {
  margin-top: 0;
  color: var(--red);
}

h1,
h2,
legend {
  font-family:
    "Barlow Condensed",
    Arial,
    sans-serif;

  text-transform: uppercase;
}

h1 {
  max-width: 310px;
  margin: 0;

  font-size:
    clamp(3rem, 6vw, 4.7rem);

  line-height: 0.88;
}

.intro-copy {
  margin: 22px 0 30px;

  color:
    rgba(255, 255, 255, 0.82);

  line-height: 1.65;
}

/* PROCESS STEPS */

.process-list {
  position: relative;
  z-index: 1;

  display: grid;
  gap: 17px;
}

.process-list > div {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.process-list span {
  flex: 0 0 34px;

  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;

  border-radius: 50%;

  color: var(--deep-red);
  background: var(--yellow);

  font-weight: 800;
}

.process-list p {
  margin: 0;
}

.process-list strong,
.process-list small {
  display: block;
}

.process-list small {
  margin-top: 3px;

  color:
    rgba(255, 255, 255, 0.68);

  line-height: 1.4;
}

/* FORM PANEL */

.form-panel {
  padding:
    48px
    clamp(24px, 5vw, 58px);

  background: var(--cream);
}

.form-heading {
  padding-right: 45px;
}

.form-heading h2,
.success-message h2 {
  margin: 0;

  color: var(--deep-red);

  font-size:
    clamp(2.3rem, 5vw, 3.5rem);

  line-height: 1;
}

.form-heading > p:last-child {
  margin: 9px 0 28px;
  color: var(--muted);
}

/* FORM */

form {
  display: grid;
  gap: 25px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  width: 100%;
  margin-bottom: 15px;
  padding-bottom: 8px;

  border-bottom:
    2px solid var(--yellow);

  color: var(--red);

  font-size: 1.25rem;
  font-weight: 800;
}

.form-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 16px;
}

label {
  display: grid;
  gap: 7px;

  color: #443638;

  font-size: 0.86rem;
  font-weight: 700;
}

.full-width {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;

  border:
    1px solid #d8cbcc;

  border-radius: 11px;

  color: var(--ink);
  background: #ffffff;

  outline: none;
}

input,
select {
  min-height: 48px;
  padding: 0 13px;
}

textarea {
  resize: vertical;
  padding: 13px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--red);

  box-shadow:
    0 0 0 3px rgba(227, 6, 19, 0.12);
}

/* CONSENT */

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  font-weight: 500;
  line-height: 1.5;
}

.consent-row input {
  flex: 0 0 19px;

  width: 19px;
  min-height: 19px;
  margin-top: 2px;

  accent-color: var(--red);
}

/* BUTTONS */

.submit-button,
.secondary-button {
  min-height: 52px;

  border: 0;
  border-radius: 12px;

  color: #ffffff;
  background: var(--red);

  font-weight: 800;
  cursor: pointer;

  box-shadow:
    0 10px 24px rgba(184, 0, 10, 0.22);
}

.submit-button:hover,
.secondary-button:hover {
  background: var(--deep-red);
  transform: translateY(-1px);
}

.privacy-note {
  margin: -10px 0 0;

  color: var(--muted);

  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

/* SUCCESS MESSAGE */

.success-message {
  display: grid;
  place-items: center;

  min-height: 530px;

  text-align: center;
}

.success-message[hidden] {
  display: none;
}

.success-message
> p:not(.eyebrow) {
  max-width: 520px;

  color: var(--muted);

  line-height: 1.65;
}

.success-icon {
  display: grid;
  place-items: center;

  width: 76px;
  height: 76px;
  margin-bottom: 20px;

  border-radius: 50%;

  color: var(--deep-red);
  background: var(--yellow);

  font-size: 2.2rem;
  font-weight: 900;
}

.secondary-button {
  width: min(320px, 100%);
  margin-top: 12px;
  padding: 0 20px;
}

.home-link {
  margin-top: 16px;

  color: var(--red);

  font-weight: 800;
}

/* TABLET AND MOBILE */

@media (max-width: 820px) {

  .page-shell {
    display: block;
    padding: 0;
  }

  .registration-panel {
    display: block;

    width: 100%;
    max-height: none;
    min-height: 100vh;

    border: 0;
    border-radius: 0;
  }

  .intro-panel {
    position: relative;

    min-height: auto;
    padding: 38px 20px 32px;
  }

  .crest {
    width: 68px;
    height: 68px;
  }

  h1 {
    max-width: 100%;
    font-size: 3.2rem;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .form-panel {
    padding: 34px 20px 44px;
  }

  .registration-panel.is-locked::after {
    position: fixed;
    border-radius: 0;
  }

  .coming-soon-notice {
    position: fixed;
    max-height: calc(100vh - 28px);
    overflow-y: auto;
  }
}

/* SMALL MOBILE */

@media (max-width: 560px) {

  .form-grid {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: auto;
  }

  .notice-contact-grid {
    grid-template-columns: 1fr;
  }

  .notice-contact-grid a {
    min-height: 104px;
  }
}

/* REDUCE ANIMATION */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* THREE CONTACT/INFORMATION CARDS */

.notice-contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.notice-subject-button {
  min-width: 0;
  min-height: 68px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;

  padding: 10px;

  border: 1px solid rgba(227, 6, 19, 0.18);
  border-radius: 10px;

  background: #fff;
  color: #b8000c;

  font-family: "DM Sans", sans-serif;
  text-align: center;
  cursor: pointer;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.notice-subject-button:hover {
  transform: translateY(-2px);
  border-color: #ffd400;
  background: #fff8d8;
}

.notice-subject-button > span {
  width: 22px;
  height: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: #ffd400;
  color: #b8000c;
}

.notice-subject-button strong {
  font-size: 0.72rem;
  line-height: 1;
  white-space: nowrap;
}

.notice-subject-button small {
  font-size: 0.6rem;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .notice-contact-grid {
    grid-template-columns: 1fr;
  }
}
/* SUBJECT OFFERINGS POPUP */

.admission-subject-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 16px;

  background: rgba(20, 10, 10, 0.82);
  backdrop-filter: blur(6px);
}

.admission-subject-overlay.is-open {
  display: flex;
}

.admission-subject-modal {
  width: min(96%, 900px);
  height: min(94vh, 900px);

  display: flex;
  flex-direction: column;
  overflow: hidden;

  border: 4px solid #ffd400;
  border-radius: 20px;

  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.admission-subject-header {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 14px;

  padding: 12px 16px;

  background: linear-gradient(135deg, #b8000c, #e30613);
  color: #fff;
}

.admission-subject-header img {
  width: 56px;
  height: 56px;

  padding: 4px;
  object-fit: contain;

  border-radius: 9px;
  background: #ffd400;
}

.admission-subject-header small {
  color: #ffd400;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.admission-subject-header h2 {
  margin: 2px 0 0;

  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
  text-transform: uppercase;
}

.admission-subject-header p {
  margin: 3px 0 0;
  font-size: 0.8rem;
}

.admission-subject-close {
  width: 40px;
  height: 40px;

  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.14);
  color: #fff;

  font-size: 1.6rem;
  cursor: pointer;
}

.admission-subject-close:hover {
  background: #ffd400;
  color: #9f0610;
}

.admission-subject-pdf {
  min-height: 0;
  flex: 1;

  padding: 7px;
  background: #e5e5e5;
}

.admission-subject-pdf iframe {
  width: 100%;
  height: 100%;

  display: block;
  border: 0;
  border-radius: 8px;

  background: #fff;
}

body.admission-subject-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .admission-subject-overlay {
    padding: 6px;
  }

  .admission-subject-modal {
    width: 100%;
    height: 96vh;

    border-width: 3px;
    border-radius: 14px;
  }
}
/* KEEP ALL THREE CARDS CONTAINED */
.notice-contact-grid > a,
.notice-contact-grid > button {
  min-width: 0;
  overflow: hidden;
}

/* SAME HEADING SIZE ON ALL CARDS */
.notice-contact-grid strong,
.notice-subject-button strong,
.card-email {
  max-width: 100%;
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
}

/* SAME DESCRIPTION SIZE ON ALL CARDS */
.notice-contact-grid small,
.notice-subject-button small {
  font-size: 0.60rem;
  line-height: 1.3;
  text-align: center;
}