/* ==========================================================================
   Epic Web Works, forms
   Shared by the public contact page and the admin panel.
   ========================================================================== */

.contact-layout { display: grid; gap: var(--space-8); }

@media (min-width: 960px) {
  .contact-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: start; }
}

.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
}

.form-grid { display: grid; gap: var(--space-5); }

@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field { display: grid; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: var(--text-sm);
  font-weight: 620;
  color: var(--ink);
}

.req { color: var(--cyan); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8125rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-size: var(--text-base);
  font-family: inherit;
  color: var(--ink);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.field textarea { resize: vertical; min-height: 8rem; line-height: 1.6; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-tint);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); }

.field-hint { font-size: var(--label-xs); color: var(--ink-faint); line-height: 1.5; }
.field-error { font-size: var(--label-xs); font-weight: 600; color: #b3261e; }

/* Budget choices, styled as selectable chips rather than bare radios */
.choice-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.choice { position: relative; cursor: pointer; }

.choice input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.choice span {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  font-size: var(--text-sm);
  font-weight: 590;
  color: var(--ink-soft);
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.choice:hover span { border-color: var(--cyan); color: var(--cyan); }

.choice input:checked + span {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--paper);
}

/* Keyboard focus must stay visible even though the input itself is hidden. */
.choice input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.form-note { font-size: var(--label-xs); color: var(--ink-faint); max-width: 30ch; }

/* Honeypot. Hidden from people without display:none, which some bots skip. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Notices */
.notice {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--r-md);
  margin-bottom: var(--space-6);
}

.notice p { font-size: var(--text-sm); color: var(--ink-mute); margin-top: 0.25rem; }
.notice strong { color: var(--ink); }
.notice--success { background: var(--cyan-tint); border: 1px solid rgba(9, 95, 112, 0.2); }
.notice--error { background: #fdecea; border: 1px solid #f5c2bd; }
.notice--error strong { color: #8c1d18; }

/* Contact sidebar */
.contact-aside { display: grid; gap: var(--space-5); }

.aside-card {
  padding: var(--space-6);
  border-radius: var(--r-lg);
  background: var(--sand);
  border: 1px solid var(--line);
}

.aside-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 640;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: var(--space-4);
}

.next-steps { display: grid; gap: var(--space-4); counter-reset: step; }

.next-steps li {
  position: relative;
  padding-left: 2.25rem;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--ink-mute);
  counter-increment: step;
}

.next-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 0.625rem 0.625rem 0.625rem 0.2rem;
  background: var(--cyan-tint);
  color: var(--cyan);
  font-size: var(--label-xs);
  font-weight: 700;
}

.next-steps strong { color: var(--ink); font-weight: 620; }

.direct-list { display: grid; gap: var(--space-3); }

.direct-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
}

.direct-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.direct-list span:first-child { color: var(--ink-faint); }
.direct-list a { color: var(--cyan); font-weight: 600; }
.direct-list a:hover { border-bottom: 1px solid currentColor; }
