/* McKay's Garage appointment form: consistent, accessible sitewide form treatment. */
.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  width: 100%;
}
.form-shell > .contact-card,
.form-shell > .form-card { min-width: 0; }
.form-shell > .contact-card {
  border: 1px solid #171717;
  border-bottom: 0;
}
.form-shell > .contact-card .contact-details > div { min-width: 0; overflow-wrap: anywhere; }
.form-shell > .contact-card .contact-details a { overflow-wrap: anywhere; text-underline-offset: 3px; }
.form-shell > .contact-card .contact-details a:hover,
.form-shell > .contact-card .contact-details a:focus-visible { color: #ffad76; }
.form-shell > .contact-card .muted { line-height: 1.65; }
.form-shell > .form-card {
  width: 100%;
  border: 1px solid #d9d2c8;
  border-top: 5px solid #e7341d;
  background: #fff;
  padding: clamp(26px, 4.2vw, 52px);
  box-shadow: 0 16px 38px rgba(20, 17, 14, .05);
}
.form-shell > .form-card > .eyebrow { margin-bottom: 10px; }
.form-shell > .form-card h2 {
  max-width: 23ch;
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.form-shell > .form-card > .muted {
  max-width: 70ch;
  margin: 0 0 32px;
  font-size: 1rem;
  line-height: 1.65;
  color: #514b45;
}
.form-shell .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
  align-items: start;
}
.form-shell .field { min-width: 0; display: grid; gap: 8px; }
.form-shell .field.full { grid-column: 1 / -1; }
.form-shell .field label {
  color: #24201d;
  font-size: .93rem;
  line-height: 1.4;
  font-weight: 750;
}
.form-shell .field input,
.form-shell .field select,
.form-shell .field textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid #c8bfb4;
  border-radius: 6px;
  background: #fcfbf9;
  color: #24201d;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.form-shell .field textarea {
  min-height: 160px;
  resize: vertical;
}
.form-shell .field input::placeholder,
.form-shell .field textarea::placeholder { color: #77716b; opacity: 1; }
.form-shell .field input:hover,
.form-shell .field select:hover,
.form-shell .field textarea:hover { border-color: #8b8176; }
.form-shell .field input:focus,
.form-shell .field select:focus,
.form-shell .field textarea:focus {
  outline: none;
  border-color: #c82c19;
  box-shadow: 0 0 0 4px rgba(231, 52, 29, .14);
  background: #fff;
}
.form-shell .field input:focus-visible,
.form-shell .field select:focus-visible,
.form-shell .field textarea:focus-visible { outline: none; }
.form-shell .field input[type="date"] { color-scheme: light; }
.form-shell .field[data-turnstile] { overflow: visible; }
.form-shell .field .btn-full {
  width: 100%;
  min-height: 56px;
  margin-top: 4px;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1.4;
  box-shadow: 0 5px 12px rgba(175, 40, 19, .15);
  transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.form-shell .field .btn-full:hover { background: #c92714; box-shadow: 0 7px 16px rgba(175, 40, 19, .2); }
.form-shell .field .btn-full:focus-visible {
  outline: 3px solid #171717;
  outline-offset: 3px;
}
.form-shell .field .btn-full:disabled { opacity: .65; cursor: wait; box-shadow: none; }
.form-shell .form-status { margin-top: 12px; color: #9f2716; line-height: 1.55; }
.form-shell .form-status:empty { display: none; }
.form-shell .form-note { margin-top: 16px; font-size: .92rem; line-height: 1.55; }
.form-shell .form-note a { color: #27211b; font-weight: 750; text-underline-offset: 3px; }
.form-shell .form-note a:hover,
.form-shell .form-note a:focus-visible { color: #c92714; }

@media (min-width: 921px) {
  .form-shell > .contact-card > .contact-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(22px, 3vw, 48px);
    row-gap: 22px;
  }
  .form-shell > .form-card { padding: clamp(34px, 4vw, 52px); }
}
@media (max-width: 920px) {
  .form-shell > .contact-card { padding: 30px; }
  .form-shell > .contact-card h2 { margin: 8px 0 12px; }
  .form-shell > .contact-card .contact-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
    margin-top: 25px;
  }
}
@media (max-width: 699px) {
  .form-shell > .contact-card { padding: 26px 22px; }
  .form-shell > .contact-card .contact-details { grid-template-columns: 1fr; gap: 15px; }
  .form-shell > .form-card { padding: 28px 22px; }
  .form-shell > .form-card > .muted { margin-bottom: 25px; }
  .form-shell .form-grid { grid-template-columns: minmax(0, 1fr); gap: 19px; }
  .form-shell .field.full { grid-column: 1; }
  .form-shell .field input,
  .form-shell .field textarea,
  .form-shell .field select { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .form-shell .field input,
  .form-shell .field select,
  .form-shell .field textarea,
  .form-shell .field .btn-full { transition: none; }
}
