/* Altered Balance — form pages (/apply and /contact)
   The generated bundle has no form styling of its own, so these are built from
   the same tokens the rest of the site uses. Kept outside /assets/ because
   _headers caches that folder immutably for a year. */

.form-page{
  padding: clamp(3rem, 6vw, 5rem) max(6vw, 1.5rem) clamp(4rem, 7vw, 6rem);
  max-width: 1180px;
  margin: 0 auto;
}
.form-layout{
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 900px){
  .form-layout{ grid-template-columns: 1fr; gap: 2rem; }
}

.form-intro h1{ margin-bottom: 1rem; }
.form-intro .page-lead{ max-width: 42ch; }
.form-aside{
  margin-top: 2.5rem;
  border-top: 1px solid rgba(237,238,240,.14);
  padding-top: 1.75rem;
}
.form-aside p:last-child{ margin-bottom: 0; }
.form-steps{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.form-steps li{
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: .85rem;
  font-size: .95rem;
  line-height: 1.6;
  color: rgba(237,238,240,.78);
}
.form-steps b{
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: #a8abaf;
}

/* ── The form card ── */
.form-card{
  background: #212223;
  border: 1px solid rgba(237,238,240,.14);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.form-card > p:first-of-type{
  color: rgba(237,238,240,.74);
  font-size: .95rem;
  line-height: 1.65;
}
.field{ margin-bottom: 1.15rem; }
.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 620px){ .field-row{ grid-template-columns: 1fr; gap: 0; } }
.field label{
  display: block;
  margin-bottom: .45rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #a8abaf;
}
.field .optional{
  letter-spacing: .04em;
  text-transform: none;
  font-weight: 400;
  color: rgba(237,238,240,.45);
}
.field input,
.field select,
.field textarea{
  width: 100%;
  padding: .85rem .95rem;
  background: #1f2021;
  border: 1px solid rgba(237,238,240,.14);
  border-radius: 0;
  color: #edeef0;
  font-family: Inter, 'DM Sans', Arial, sans-serif;
  font-size: .95rem;
  line-height: 1.5;
  transition: border-color .2s, background .2s;
}
.field input::placeholder,
.field textarea::placeholder{ color: rgba(237,238,240,.34); }
.field input:focus,
.field select:focus,
.field textarea:focus{
  outline: none;
  border-color: #edeef0;
  background: #212223;
}
.field select{
  appearance: none;
  cursor: pointer;
  padding-right: 2.4rem;
  background-image:
    linear-gradient(45deg, transparent 50%, #a8abaf 50%),
    linear-gradient(135deg, #a8abaf 50%, transparent 50%);
  background-position: calc(100% - 19px) 55%, calc(100% - 13px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field select option{ background: #212223; color: #edeef0; }
.field textarea{ min-height: 8rem; resize: vertical; }

.consent{
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin: 1.3rem 0;
  font-size: .88rem;
  line-height: 1.55;
  color: rgba(237,238,240,.74);
}
.consent input{
  width: 1.05rem;
  height: 1.05rem;
  margin-top: .16rem;
  flex: none;
  accent-color: #edeef0;
}
.form-card .button{ width: 100%; }

/* Screen-reader-only, for the honeypot label */
.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.form-msg{
  margin-top: 1rem;
  padding: .9rem 1.1rem;
  border: 1px solid rgba(237,238,240,.14);
  background: rgba(237,238,240,.05);
  font-size: .9rem;
  line-height: 1.55;
}
.form-msg[hidden]{ display: none; }
.form-msg.is-error{ border-color: #7a4b47; color: #f2a09a; }
.form-msg.is-ok{ border-color: #4a6670; color: #edeef0; }

.form-done{
  background: #212223;
  border: 1px solid rgba(237,238,240,.14);
  border-left: 3px solid #4a6670;
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.form-done h2{ margin-bottom: .75rem; }
.form-done p{ color: rgba(237,238,240,.78); line-height: 1.65; }
.form-done[hidden]{ display: none; }
