/* ==========================================================================
   ValderTech — styles specific to the website intake form (start.html).
   Everything else on the page comes from styles.css.
   ========================================================================== */

/* ------------------------------------------------------- what happens next -- */

.in-steps {
  list-style: none;
  margin: 28px 0 8px;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  counter-reset: in-step;
}

.in-step {
  position: relative;
  padding: 16px 18px 16px 52px;
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius-sm);
  background: var(--vt-white);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--vt-slate);
}

.in-step::before {
  counter-increment: in-step;
  content: counter(in-step);
  position: absolute;
  left: 16px;
  top: 15px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--vt-mist);
  color: var(--vt-blue-deep);
  font-family: var(--vt-mono);
  font-size: 0.8rem;
  font-weight: 500;
}

.in-step strong {
  display: block;
  margin-bottom: 3px;
  font-weight: 600;
  color: var(--vt-navy);
}

/* ------------------------------------------------------------------ form -- */

/* Sections for the path not chosen. JS sets the attribute; without JS every
   section shows and the form still submits. */
.in-fieldset[hidden] {
  display: none;
}

/* The two ways to start, as a pair of larger tiles. */
.in-modes {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.in-choice--tall {
  align-items: flex-start;
  padding: 16px 18px;
  line-height: 1.5;
}

.in-choice--tall strong {
  display: block;
  margin-bottom: 3px;
  font-weight: 600;
  color: var(--vt-navy);
}

.in-form {
  max-width: 860px;
}

.in-fieldset {
  border: 0;
  margin: 0;
  padding: 30px 0 18px;
  border-top: 1px solid var(--vt-line-soft);
}

.in-fieldset:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

/* A legend renders inside the fieldset's top border by default; floating it
   makes it flow like an ordinary heading above the fields. */
.in-fieldset legend {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 4px;
  font-family: var(--vt-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: var(--ls-heading);
  color: var(--vt-navy);
}

.in-lede {
  clear: both;
  margin: 0 0 20px;
  font-size: var(--fs-small);
  color: var(--vt-slate);
}

/* Native select, styled to match .vt-input, with its own chevron so the
   browser's doesn't fight the border radius. */
.in-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6880' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.in-select:invalid {
  color: var(--vt-placeholder);
}

.in-textarea--short {
  min-height: 112px;
}

/* Checkbox and radio groups as a grid of bordered options, so a long list
   reads as choices rather than a column of tiny boxes. */
.in-choices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.in-choices--row {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}

.in-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius-sm);
  background: var(--vt-white);
  font-size: var(--fs-small);
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.15s var(--vt-ease), background-color 0.15s var(--vt-ease);
}

.in-choice:hover {
  border-color: var(--vt-blue);
}

.in-choice:has(input:checked) {
  border-color: var(--vt-blue);
  background: var(--vt-mist);
}

.in-choice:has(input:focus-visible) {
  outline: 3px solid var(--vt-blue);
  outline-offset: 1px;
}

.in-choice input {
  flex: none;
  margin: 2px 0 0;
  width: 16px;
  height: 16px;
  accent-color: var(--vt-blue-deep);
}

.in-submit {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 10px;
}

.in-submit .vt-field-note {
  margin: 0;
}

@media (max-width: 520px) {
  .in-submit .vt-btn {
    width: 100%;
    text-align: center;
  }
}
