/* Submit page: cream panel housing the auth + form widget, sitting on the
   contact page's red field. */

.submit-panel {
  max-width: 44rem;
  margin: clamp(2rem, 6vw, 4rem) auto clamp(3rem, 8vw, 6rem);
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2.75rem);
  background: #faf7ef;
  color: #111;
  font-family: "NB International", Arial, sans-serif;
  border-radius: 10px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35);
}
.submit-panel *,
.submit-panel *::before,
.submit-panel *::after { box-sizing: border-box; }

.submit-intro {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  line-height: 1.55;
  color: #111;
}
.submit-intro p { margin: 0; }

.submit-app a:not(.sa-btn) { display: inline; color: #111; }

.sa-tabs {
  display: flex;
  border-bottom: 1px solid rgba(17, 17, 17, 0.35);
  margin-bottom: 1.5rem;
}
.sa-tab {
  flex: 1;
  background: none;
  border: 0;
  padding: 0.9rem 0.5rem;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #111;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s;
}
.sa-tab:hover { opacity: 0.85; }
.sa-tab.is-active { opacity: 1; border-bottom-color: #111; }

.sa-field { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.sa-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: #111;
}
.sa-input,
.sa-textarea,
.sa-select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.55);
  padding: 0.6rem 0;
  font: inherit;
  font-size: 1rem;
  color: #111;
  outline: none;
  border-radius: 0;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.sa-input:focus,
.sa-textarea:focus,
.sa-select:focus { border-bottom-color: #a04; }
.sa-textarea { resize: vertical; min-height: 6rem; }
.sa-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }

.sa-btn {
  display: inline-block;
  text-align: center;
  margin-top: 0.8rem;
  background: #111;
  color: #faf7ef;
  border: 0;
  padding: 1rem 2rem;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
  width: 100%;
}
.sa-btn:hover { opacity: 0.85; }
.sa-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Two-button CTA layout used on /submit after the marketing copy.
   Stacks on mobile, side-by-side on wider panels. */
.sa-cta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
@media (min-width: 480px) {
  .sa-cta-row { grid-template-columns: 1fr 1fr; }
}
.sa-cta-row .sa-btn { margin-top: 0; }

/* Secondary variant of .sa-btn — cream paper, ink border, inverts
   on hover so it reads as the partner action to the filled primary. */
.sa-btn-secondary {
  background: transparent;
  color: #111;
  border: 1px solid #111;
}
.sa-btn-secondary:hover {
  background: #111;
  color: #faf7ef;
  opacity: 1;
}

.sa-error {
  color: #a04;
  font-size: 0.85rem;
  margin-top: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-left: 2px solid #a04;
  background: rgba(160, 0, 68, 0.06);
}
.sa-success {
  color: #060;
  font-size: 0.85rem;
  margin-top: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-left: 2px solid #060;
  background: rgba(0, 96, 0, 0.06);
}

.sa-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin: 1.75rem 0 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
}
.sa-divider::before,
.sa-divider::after { content: ""; height: 1px; background: rgba(17, 17, 17, 0.35); }

.sa-greeting {
  font-family: "Neue Brucke", Arial, sans-serif;
  font-size: 1.8rem;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
  line-height: 1;
}
.sa-greeting-sub { font-size: 0.9rem; opacity: 0.6; margin: 0 0 1.5rem; }
.sa-linkbtn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: #111;
  cursor: pointer;
  text-decoration: underline;
}

.sa-card {
  border: 1px solid rgba(17, 17, 17, 0.2);
  padding: 1rem 1.1rem;
  margin-bottom: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.sa-card-title {
  font-family: "Neue Brucke", Arial, sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  margin: 0;
}
.sa-pill {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border: 1px solid #111;
}

.sa-progress {
  height: 2px;
  background: rgba(17, 17, 17, 0.18);
  margin-top: 0.5rem;
  overflow: hidden;
}
.sa-progress-bar {
  height: 100%;
  width: 0%;
  background: #111;
  transition: width 0.2s linear;
}

.sa-file-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 0.4rem;
  font-size: 0.85rem;
}
.sa-file-input { display: none; }
.sa-file-trigger {
  display: inline-block;
  padding: 0.6rem 1rem;
  border: 1px solid #111;
  cursor: pointer;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.sa-note { font-size: 0.8rem; opacity: 0.65; margin-top: 0.4rem; }
.sa-hidden { display: none !important; }

/* Compact form fields on mobile so labels and inputs don't crowd */
@media (max-width: 600px) {
  .sa-row { grid-template-columns: 1fr; gap: 0; }
  .sa-tab { padding: 0.85rem 0.25rem; font-size: 0.7rem; letter-spacing: 0.18em; }
  .sa-greeting { font-size: 1.5rem; }
}

/* Unlock the page wrapper, but ONLY on the submit page. Contact uses
   `pw h-screen` + `overflow: clip` because the page fits in one viewport;
   the submit form is taller, so release the clamp. Earlier this targeted
   `.pw, .pw.h-screen, .pw.black` unconditionally, which leaked onto the
   home page and broke GSAP ScrollTrigger's pinned cinema-strip (the
   panels stacked top-to-bottom instead of layering). All overrides are
   now scoped behind [data-page="submit"]. */
html:has([data-page="submit"]),
html.lenis:has([data-page="submit"]) {
  overflow: auto !important;
  height: auto !important;
  overscroll-behavior: auto !important;
}
html:has([data-page="submit"]) body {
  overflow: auto !important;
  height: auto !important;
}
[data-page="submit"].pw,
[data-page="submit"] [data-taxi=""] {
  overflow: visible !important;
  height: auto !important;
  min-height: 100svh;
}

/* Override contact-s's red field — submit is a form, the red is too loud.
   Match the rest of the site's deep-black ground. */
.submit-s {
  background-color: #0a0a0a !important;
  color: #faf7ef !important;
  height: auto !important;
  min-height: 100svh;
  justify-content: flex-start !important;
  padding-left: clamp(1rem, 4vw, 3rem);
  padding-right: clamp(1rem, 4vw, 3rem);
  padding-top: clamp(7rem, 16vw, 12rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  gap: 0;
}
/* The rollover heading and decorative lines were drawn for the red field. */
.submit-s .contact-h,
.submit-s .roll-cont-eyeb { color: #faf7ef; }
.submit-s .line.black { background-color: #faf7ef !important; }

/* Lighter shadow on dark ground; the panel reads as a sheet of paper. */
.submit-panel { box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6); }
