/* Contact: the enquiry form (shared with the careers application form), the locations and the subject cards.
   Builds on static/css/site.css (.form, .field, .aside-box, .hair-grid); never edits it. */

.form { width: 100%; max-width: 640px; }
.form-heading { margin: 0 0 6px; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.05; letter-spacing: -.04em; }
.form .notice { margin: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field .hint { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.field .hint a { color: var(--oxblood); border-bottom: 1px solid var(--oxblood); }
.field .req { color: var(--oxblood); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #a3261a; }
.field select { min-height: 50px; cursor: pointer; }
.field textarea { min-height: 150px; resize: vertical; }
.field input[type="file"] { padding: 10px 16px; font-size: 14px; cursor: pointer; }
.field input[type="file"]::file-selector-button { margin-right: 14px; padding: 8px 14px; border: 1px solid var(--line); background: var(--bone); color: var(--ink); font: inherit; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.field-check { grid-template-columns: 20px minmax(0, 1fr); column-gap: 14px; align-items: start; }
.field-check input[type="checkbox"] { width: 20px; height: 20px; margin: 1px 0 0; padding: 0; accent-color: var(--oxblood); }
.field-check label { color: var(--muted-dark); font-size: 14px; font-weight: 400; line-height: 1.55; letter-spacing: 0; text-transform: none; }
.field-check .hint, .field-check .error { margin-top: 6px; }
.required-note { color: var(--muted); font-size: 12px; }
.form .button { justify-self: start; }

/* locations beside the form */
.locations-column .eyebrow { margin-bottom: 24px; }
.location-list { display: grid; border: 1px solid var(--line); background: #fff; }
.location-card { padding: 28px 30px; border-bottom: 1px solid var(--line); }
.location-card:last-child { border-bottom: 0; }
.location-card .kicker { display: block; color: var(--oxblood); font-size: 8px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.location-card h3 { margin: 14px 0 12px; font-size: 22px; letter-spacing: -.03em; }
.location-card address { color: var(--muted-dark); font-size: 14px; line-height: 1.65; font-style: normal; }
.contact-lines { display: grid; gap: 10px; margin: 18px 0; }
.contact-lines > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; font-size: 14px; }
.contact-lines dt { padding-top: 3px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.contact-lines dd { margin: 0; color: var(--ink); line-height: 1.5; }
.contact-lines a:hover, .location-card .mail:hover { color: var(--oxblood); }
.location-card .mail { display: inline-block; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: clamp(17px, 1.6vw, 21px); letter-spacing: -.02em; transition: color .18s; }
.location-card .small { margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* subject cards: rows of three, each card draws its own bottom line */
.subject-grid { border-bottom: 0; }
.subject-grid .hair-card { min-height: 300px; border-bottom: 1px solid var(--line); transition: background .18s; }
.subject-grid .hair-card:hover, .subject-grid .hair-card:focus-visible { background: #ffffff8c; }
.subject-grid .hair-card:nth-child(3n) { border-right: 0; }
.subject-grid .hair-card .text-link { color: var(--oxblood); }

/* buttons inside running text keep their own colours (.prose a would paint them oxblood and underline them) */
.prose a.button { border-bottom: 0; }
.prose a.button-solid { color: #fff; }
.prose a.button-dark { color: var(--ink); }
.prose a.button-dark:hover { color: #fff; }

/* thank-you pages */
.link-list { width: 100%; margin: 0 0 8px; padding: 0; list-style: none; }
.link-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.link-list li:last-child { border-bottom: 0; }
.link-list a { color: var(--oxblood); }
.aside-box > p { margin: 0 0 14px; color: var(--muted-dark); font-size: 14px; line-height: 1.65; }
.aside-box > p:last-child { margin-bottom: 0; }
.aside-box > ul + h3 { margin-top: 30px; }

@media (width <= 1220px) {
  .subject-grid .hair-card, .subject-grid .hair-card:nth-child(3n) { border-right: 0; }
  .subject-grid .hair-card:last-child { border-bottom: 1px solid var(--line); }
  .subject-grid .hair-card { min-height: 0; }
}
@media (width <= 580px) {
  .field-row { grid-template-columns: 1fr; }
  .contact-lines > div { grid-template-columns: 1fr; gap: 4px; }
  .location-card { padding: 22px 20px; }
}
