/* Collaboration route shell (Ghost template) and the form page inside it. */

html:has(.swi-collab-shell),
body:has(.swi-collab-shell) {
  background: #040d16;
}

.swi-collab-shell {
  margin: 0;
  padding: 0;
  background: #040d16;
}

.swi-collab-frame {
  display: block;
  width: 100%;
  height: calc(100dvh - 5.5rem);
  min-height: 640px;
  border: 0;
  background: #040d16;
}

.swi-collab-page {
  position: relative;
  min-height: 100vh;
  margin: 0;
  background: #040d16;
  color: #f4f7f8;
  font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
  font-size: 1.05rem;
  line-height: 1.5;
}

.swi-page-bg {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  pointer-events: none;
}

.swi-collab-page * { box-sizing: border-box; }

.swi-collab-page [hidden] { display: none !important; }

.swi-collab-hero {
  position: relative;
  z-index: 1;
  display: block;
  aspect-ratio: 2 / 1;
  background: transparent;
}

.swi-try {
  position: absolute;
  z-index: 2;
  top: 1.35rem;
  right: 1.5rem;
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: #3ad0ef;
  color: #041018;
  font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(58, 208, 239, 0.18);
}

.swi-try:hover { background: #7fe3f7; color: #041018; }
.swi-try:focus-visible { outline: 3px solid #f2c14d; outline-offset: 3px; }

.swi-collab-hero-copy {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 7vw;
  width: min(640px, 42%);
  margin: 0;
  padding: 0;
  text-align: left;
  transform: translateY(-50%);
}

.swi-kicker {
  margin: 0 0 0.8rem;
  color: #d5dee6;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.swi-collab-hero h1,
.swi-card h2,
.swi-thank h2 {
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
}

.swi-collab-hero h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.swi-cyan { color: #3ad0ef; }
.swi-gold { color: #f2c14d; }

.swi-collab-hero p {
  max-width: 38rem;
  margin: 1.1rem 0 0;
  color: #e7eef3;
  font-size: 1.12rem;
}

.swi-wrap {
  position: relative;
  z-index: 2;
  width: min(1360px, calc(100% - 4vw));
  margin: -13vw auto 0;
  padding: 0 0 5rem;
}

.swi-card {
  width: 100%;
  margin: 0;
  padding: 0 1.6rem 1.4rem;
  border: 1px solid rgba(58, 208, 239, 0.28);
  border-radius: 22px;
  background: #070d14;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.swi-stephead {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 1.35rem 0 0.85rem;
}

.swi-stephead-top {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 2.6rem;
  margin: 0 0 0.5rem;
}

.swi-stephead-top .swi-progress {
  margin: 0;
  text-align: center;
}

.swi-stephead h2 {
  position: absolute;
  right: 0;
  top: 50%;
  width: auto;
  margin: 0;
  text-align: right;
  white-space: nowrap;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  transform: translateY(-50%);
}

.swi-meter {
  width: 100%;
  height: 6px;
  margin: 0;
  border-radius: 999px;
  overflow: hidden;
  background: #13202b;
}

.swi-meter span {
  display: block;
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #3ad0ef, #f2c14d);
}

.swi-progress {
  margin: 0;
  color: #3ad0ef;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.swi-card h2 {
  margin: 0;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.swi-hook {
  margin: 0 0 1.2rem;
  color: #e7eef3;
  font-size: 1.08rem;
  line-height: 1.45;
}

.swi-optional {
  color: #f2c14d;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.swi-field { margin: 0 0 1rem; }

.swi-field label,
.swi-chips-label {
  display: block;
  margin-bottom: 0.45rem;
  color: #3ad0ef;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.swi-field input,
.swi-field textarea {
  width: 100%;
  border: 1px solid rgba(58, 208, 239, 0.35);
  border-radius: 12px;
  background: #040d16;
  color: #f4f7f8;
  font: inherit;
  padding: 0.85rem 0.9rem;
}

.swi-field input::placeholder,
.swi-field textarea::placeholder { color: #8ea0ae; }

.swi-field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.swi-field input:focus,
.swi-field textarea:focus,
.swi-chip:focus-visible,
.swi-button:focus-visible {
  outline: 3px solid #f2c14d;
  outline-offset: 2px;
}

.swi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.swi-chip {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: transparent;
  color: #8ea0ae;
  font: inherit;
  font-weight: 500;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}

.swi-chip[aria-pressed="true"] {
  border-color: #3ad0ef;
  background: #3ad0ef;
  color: #041018;
  font-weight: 700;
}

.swi-error {
  min-height: 1.2rem;
  margin: 0.35rem 0 0;
  color: #ffb4a8;
  font-size: 0.92rem;
}

.swi-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.swi-actions .swi-button:not(.is-quiet) { margin-left: auto; }

.swi-button {
  border: 0;
  border-radius: 999px;
  background: #3ad0ef;
  color: #041018;
  font: inherit;
  font-weight: 700;
  padding: 0.9rem 1.15rem;
  cursor: pointer;
}

.swi-button[disabled] {
  opacity: 0.55;
  cursor: wait;
}

.swi-button.is-quiet {
  background: transparent;
  color: #d5dee6;
}

.swi-save {
  min-height: 1.3rem;
  margin: 0.8rem 0 0;
  color: #8ea0ae;
  font-size: 0.92rem;
}

.swi-thank h2 { margin-top: 0.2rem; }
.swi-thank p { color: #d5dee6; }

.swi-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

@media (max-width: 860px) {
  .swi-collab-hero { aspect-ratio: auto; min-height: 78vw; }
  .swi-collab-hero-copy {
    top: 42%;
    left: 1.25rem;
    width: min(640px, calc(100% - 2.5rem));
  }
  .swi-wrap {
    width: min(1360px, calc(100% - 1.5rem));
    margin-top: 1.25rem;
  }
}
