.signup-shell,
.status-shell {
  padding: clamp(26px, 4vw, 52px) 0 72px;
  background: #ffffff;
}

.signup-header {
  min-height: auto;
  background: #ffffff;
  color: var(--color-navy);
  border-bottom: 1px solid #e6ebf7;
}

.signup-header::after {
  content: none;
}

.signup-header .hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(16px, 2.5vw, 24px) 0;
}

.signup-header .hero-top {
  align-items: center;
}

.signup-header .brand {
  width: clamp(170px, 15vw, 220px);
}

.signup-header .reserved-pill img {
  width: clamp(132px, 11.8vw, 180px);
}

.signup-header .reserved-pill:hover,
.signup-header .reserved-pill:focus-visible {
  box-shadow: 0 8px 14px rgba(25, 31, 74, 0.16);
}

.signup-grid {
  width: min(calc(100% - 2rem), 980px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 1.4rem;
}

.signup-grid.signup-grid-single {
  width: min(calc(100% - 2rem), 760px);
  grid-template-columns: 1fr;
}

.signup-card,
.status-card {
  background: #ffffff;
  border: 1px solid #dce3f3;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: clamp(18px, 2.4vw, 30px);
}

.signup-card h1,
.status-card h1 {
  margin: 0;
  color: var(--color-navy-deep);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.signup-card h1 span,
.status-card h1 span {
  display: block;
  font-weight: 300;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.signup-card h1 strong,
.status-card h1 strong {
  display: block;
  font-weight: 800;
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
}

.signup-card h2 {
  margin: 0;
  color: var(--color-navy-deep);
  text-transform: uppercase;
  line-height: 1.06;
  font-size: clamp(1.2rem, 2vw, 1.62rem);
}

.signup-card p,
.status-card p,
.signup-aside p {
  margin: 0.95rem 0 0;
  color: #37405f;
  line-height: 1.45;
}

.form-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.form-section-title {
  margin: 0.2rem 0 0;
  grid-column: 1 / -1;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-navy-deep);
  letter-spacing: 0.02em;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field[hidden] {
  display: none !important;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field.form-field-checkbox {
  gap: 0;
}

.form-field label {
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-navy);
  letter-spacing: 0.02em;
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid #cbd4eb;
  border-radius: 10px;
  padding: 0.72rem 0.78rem;
  font: inherit;
  color: #111a35;
  background: #fcfdff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-field textarea {
  min-height: 132px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(42, 42, 98, 0.14);
}

.form-field select:disabled {
  background: #eef2fb;
  color: #6b7391;
  cursor: not-allowed;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.72rem;
  border: 1px solid #cbd4eb;
  border-radius: 10px;
  padding: 0.85rem 0.9rem;
  background: #fcfdff;
  cursor: pointer;
}

.checkbox-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.22rem;
  line-height: 1.4;
}

.form-field.form-field-checkbox label,
.form-field.form-field-checkbox .checkbox-required {
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.checkbox-copy label {
  cursor: pointer;
}

.checkbox-row input[type='checkbox'] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.16rem 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--color-navy);
  flex: 0 0 auto;
}

.checkbox-row span,
.checkbox-copy label {
  color: #111a35;
}

.terms-trigger {
  color: var(--color-navy-deep);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.terms-trigger:hover,
.terms-trigger:focus-visible {
  color: #0f2d78;
}

.terms-modal[hidden] {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

.terms-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.terms-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 26, 53, 0.56);
  backdrop-filter: blur(4px);
}

.terms-modal__dialog {
  position: relative;
  width: min(100%, 760px);
  max-height: min(88vh, 820px);
  overflow: auto;
  background: #ffffff;
  border: 1px solid #dce3f3;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(17, 26, 53, 0.28);
  padding: clamp(20px, 3vw, 30px);
}

.terms-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e6ebf7;
}

.terms-modal__eyebrow {
  margin: 0;
  color: #5b6383;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terms-modal__header h2 {
  margin: 0.3rem 0 0;
  color: var(--color-navy-deep);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.1;
}

.terms-modal__close {
  border: 1px solid #c8d2ea;
  border-radius: 999px;
  background: #ffffff;
  color: var(--color-navy);
  padding: 0.58rem 1rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.terms-modal__close:hover,
.terms-modal__close:focus-visible {
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(42, 42, 98, 0.12);
}

.terms-modal__content {
  margin-top: 1.15rem;
}

.terms-modal__section + .terms-modal__section {
  margin-top: 1rem;
}

.terms-modal__section h3 {
  margin: 0;
  color: var(--color-navy-deep);
  font-size: 1rem;
}

.terms-modal__section p {
  margin: 0.45rem 0 0;
  color: #37405f;
  line-height: 1.55;
}

.terms-modal__section a {
  color: var(--color-navy-deep);
  font-weight: 700;
}

.form-actions {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.submit-btn,
.link-btn {
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-navy);
  color: #ffffff;
  padding: 0.72rem 1.35rem;
  font-size: 0.93rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, opacity 200ms ease;
}

.submit-btn:hover,
.submit-btn:focus-visible,
.link-btn:hover,
.link-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(25, 31, 74, 0.24);
}

.submit-btn[disabled],
.link-btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.link-btn {
  background: transparent;
  border: 1px solid #aab5d8;
  color: var(--color-navy);
  text-transform: none;
  font-size: 0.88rem;
  letter-spacing: 0;
}

.form-message,
.resend-message,
.status-note {
  min-height: 1.35rem;
  margin-top: 0.72rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-message.success,
.resend-message.success,
.status-note.success {
  color: #0f7f44;
}

.form-message.error,
.resend-message.error,
.status-note.error {
  color: #b4252b;
}

.signup-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.signup-aside h2 {
  margin: 0;
  color: var(--color-navy-deep);
  text-transform: uppercase;
  line-height: 1.06;
  font-size: clamp(1.2rem, 2vw, 1.62rem);
}

.small-help {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: #4e5775;
}

.status-shell {
  min-height: calc(100vh - 220px);
  display: grid;
  align-items: center;
}

.status-wrap {
  width: min(calc(100% - 2rem), 700px);
  margin: 0 auto;
}

.status-actions {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.status-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  text-align: center;
}

@media (max-width: 900px) {
  .signup-grid {
    grid-template-columns: 1fr;
  }

  .status-shell {
    min-height: auto;
    padding-bottom: 48px;
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .submit-btn,
  .link-btn,
  .status-actions a {
    width: 100%;
  }

  .terms-modal {
    padding: 0.7rem;
  }

  .terms-modal__header {
    flex-direction: column;
    align-items: stretch;
  }
}
