/* ════════════════════════════════════════════════════════════════════════
   CRTV DEI — Get Started page
   Contact form. Sharp constructivist styling.
   Depends on shared.css, navbar.css, page.css
   ════════════════════════════════════════════════════════════════════════ */

.gs {
  background: var(--paper);
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
  border-top: 1px solid var(--rule);
}
.gs__inner {
  max-width: 980px;
  margin: 0 auto;
}
.gs__header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.gs__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 1.5rem 0;
}
.gs__sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.55;
  opacity: 0.85;
  max-width: 60ch;
}

.gs__form {
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Section grouping inside form */
.gs-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
fieldset.gs-section {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
legend.gs-section__label {
  display: block;
  width: 100%;
}
.gs-section__label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0.5rem;
}

/* Field row — two fields side by side */
.gs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 640px) {
  .gs-row { grid-template-columns: 1fr; }
}

/* Single field */
.gs-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.gs-field__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.gs-field__label .required {
  color: var(--blue);
  margin-left: 0.15rem;
}

.gs-input,
.gs-textarea,
.gs-select {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 0.85rem 1rem;
  outline: none;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  width: 100%;
}
.gs-input::placeholder,
.gs-textarea::placeholder {
  color: var(--ink);
  opacity: 0.4;
}
.gs-input:focus,
.gs-textarea:focus,
.gs-select:focus {
  background: var(--paper-2);
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}
.gs-textarea {
  min-height: 8rem;
  resize: vertical;
  font-family: var(--font-body);
}
.gs-input--error {
  border-color: #B91C1C;
  box-shadow: inset 0 0 0 1px #B91C1C;
}
.gs-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230A0A0A' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.gs-field__help {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0.6;
  margin-top: 0.25rem;
}

/* Checkbox grid — services */
.gs-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 2px solid var(--ink);
}
@media (max-width: 640px) {
  .gs-checkboxes { grid-template-columns: 1fr; }
}

.gs-check {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  position: relative;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background 160ms ease;
}
.gs-check:hover { background: var(--paper-2); }
.gs-checkboxes .gs-check:nth-child(even) { border-right: none; }
.gs-checkboxes .gs-check:nth-last-child(-n+2) { border-bottom: none; }
@media (max-width: 640px) {
  .gs-check { border-right: none; }
  .gs-checkboxes .gs-check { border-bottom: 1px solid var(--rule); }
  .gs-checkboxes .gs-check:last-child { border-bottom: none; }
}

.gs-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.gs-check__box {
  width: 20px;
  height: 20px;
  border: 2px solid var(--ink);
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 160ms ease;
}
.gs-check__box::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
  transform: rotate(-45deg) translate(1px, -2px);
  opacity: 0;
  transition: opacity 160ms ease;
}
.gs-check input[type="checkbox"]:checked + .gs-check__box {
  background: var(--blue);
  border-color: var(--blue);
}
.gs-check input[type="checkbox"]:checked + .gs-check__box::after { opacity: 1; }
.gs-check input[type="checkbox"]:focus-visible + .gs-check__box {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* "Other" service: conditional input that appears below */
.gs-check--other {
  grid-column: 1 / -1;
  flex-wrap: wrap;
  align-items: stretch;
  padding: 0;
  border-right: none !important;
  border-top: 1px solid var(--rule);
  border-bottom: none !important;
}
.gs-check--other > .gs-check__row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  width: 100%;
}
.gs-check--other .gs-other-input {
  flex-basis: 100%;
  padding: 0 1.25rem 1.25rem;
}

/* Opt-in checkbox (large, standalone) */
.gs-optin {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  position: relative;
}
.gs-optin input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.gs-optin__box {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--ink);
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.gs-optin__box::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
  transform: rotate(-45deg) translate(1px, -2px);
  opacity: 0;
  transition: opacity 160ms ease;
}
.gs-optin input[type="checkbox"]:checked + .gs-optin__box {
  background: var(--blue);
  border-color: var(--blue);
}
.gs-optin input[type="checkbox"]:checked + .gs-optin__box::after { opacity: 1; }
.gs-optin .required { color: var(--blue); font-weight: 700; }

.gs-legal {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--ink);
  opacity: 0.7;
  margin-top: -1rem;
}
.gs-legal a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Submit button */
.gs-submit {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1.3rem 2rem;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
  align-self: flex-start;
}
.gs-submit:hover:not(:disabled) {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
}
.gs-submit:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Loading spinner */
.submit-loading i {
  margin-right: 0.4rem;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Form message */
.form-message {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  border: 2px solid var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.form-message-success {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--ink);
}
.form-message-error {
  background: var(--blue);
  color: var(--paper);
  border-color: var(--blue);
}
.form-message a {
  color: inherit;
  text-decoration: underline;
  font-weight: 700;
}
.form-message i { margin-top: 0.15rem; }
