/* Contact, second version: the branching enquiry, the FAQ list, the office.
 *
 * Replaces what page-hero.css, form-block.css, group-links.css and
 * contact-block.css were doing on /contact/.
 */

[hidden] {
  display: none !important;
}

/* ---------------------------------------------------------------- layout  */
.pl-enquiry__grid {
  display: grid;
  gap: var(--sp-6);
  align-items: start;
}

@media (min-width: 64rem) {
  .pl-enquiry__grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--sp-8);
  }
}

.pl-enquiry__title {
  font-size: var(--step-3);
  margin: var(--sp-2) 0 0;
  max-width: 15ch;
}

.pl-enquiry__lead {
  margin-top: var(--sp-2);
  max-width: 44ch;
  text-wrap: pretty;
}

/* ----------------------------------------------------------------- panels  */
.pl-panel {
  background: var(--c-surface);
  color: var(--c-text);
  border-left: 3px solid var(--c-text);
  padding: var(--sp-3);
  margin-top: var(--sp-4);
}

.pl-panel > * + * { margin-top: var(--sp-1); }

.pl-panel--plain {
  border-left: 0;
  padding-left: 0;
  padding-bottom: 0;
  border-top: var(--rule) solid var(--c-rule);
  padding-top: var(--sp-3);
}

.pl-panel__phone {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.pl-panel__small {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
}

/* ------------------------------------------------------------------ card  */
.pl-card {
  border: var(--rule) solid var(--c-rule);
  padding: var(--sp-4) var(--sp-3);
  background: var(--c-surface);
}

@media (min-width: 48rem) {
  .pl-card { padding: var(--sp-4); }
}

/* --------------------------------------------------------------- the trap */
.pl-quote__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pl-nojs {
  display: none;
}

noscript .pl-nojs {
  display: block;
}

/* -------------------------------------------------------------- progress  */
.pl-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--c-rule);
}

.pl-steps__bar {
  display: flex;
  gap: 6px;
  flex: 1;
  max-width: 220px;
}

.pl-steps__seg {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: rgba(10, 37, 64, 0.12);
  cursor: pointer;
  border: 0;
  padding: 0;
  transition: all 0.25s ease;
}

.pl-steps__seg:hover {
  background: rgba(143, 191, 212, 0.6);
}

.pl-steps__seg.is-done {
  background: var(--pl-sky, #8FBFD4);
}

.pl-steps__seg.is-current {
  background: var(--pl-navy, #0A2540);
  box-shadow: 0 0 0 2px rgba(143, 191, 212, 0.4);
}

.pl-steps__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-text);
  text-transform: uppercase;
}

/* ----------------------------------------------------------------- fields  */
.pl-fields {
  display: grid;
  gap: var(--sp-3);
}

@media (min-width: 40rem) {
  .pl-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-field--wide { grid-column: 1 / -1; }
}

.pl-field > label.label,
.pl-field legend.label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-1);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-text);
}

.pl-field__optional {
  font-size: 0.75rem;
  font-weight: normal;
  color: var(--c-text-muted);
}

.pl-field input,
.pl-field select,
.pl-field textarea {
  border: 1px solid var(--c-rule);
  border-radius: 4px;
  padding: 0.65rem 0.85rem;
  font-size: 0.9375rem;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pl-field input:focus,
.pl-field select:focus,
.pl-field textarea:focus {
  outline: none;
  border-color: var(--pl-navy, #0A2540);
  box-shadow: 0 0 0 3px rgba(143, 191, 212, 0.35);
}

.pl-field input[type="number"] { font-family: var(--font-mono); }

.pl-field textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.pl-field fieldset {
  border: 0;
  padding: 0;
}

.pl-field__note {
  margin-top: var(--sp-1);
  font-size: 0.8125rem;
  color: var(--c-text-muted);
}

.pl-field__error {
  margin-top: var(--sp-1);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #ba2a15;
}

.pl-field.is-invalid input,
.pl-field.is-invalid textarea {
  border: 1px solid #ba2a15;
}

/* ------------------------------------------------------------- file upload */
.pl-upload-box {
  position: relative;
  border: 2px dashed var(--c-rule);
  border-radius: 6px;
  padding: var(--sp-3) var(--sp-2);
  text-align: center;
  background: rgba(143, 191, 212, 0.05);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.pl-upload-box:hover,
.pl-upload-box:focus-within {
  border-color: var(--pl-sky, #8FBFD4);
  background: rgba(143, 191, 212, 0.12);
}

.pl-upload-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.pl-upload-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.pl-upload-icon {
  color: var(--pl-navy, #0A2540);
  opacity: 0.7;
}

.pl-upload-text {
  font-size: 0.875rem;
  color: var(--c-text);
}

.pl-upload-hint {
  font-size: 0.75rem;
  color: var(--c-text-muted);
}

.pl-file-chips {
  list-style: none;
  margin: var(--sp-2) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.pl-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--c-rule);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  color: var(--c-text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pl-file-chip__name {
  font-weight: 500;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pl-file-chip__size {
  color: var(--c-text-muted);
  font-family: var(--font-mono);
}

/* ------------------------------------------------------------------ chips  */
.pl-choices {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}

.pl-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--sp-2);
  border: var(--rule) solid var(--c-rule);
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  background: #fff;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition);
}

.pl-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.pl-chip:hover { border-color: var(--c-text); }

.pl-chip:has(input:checked),
.pl-chip.is-on {
  background: var(--c-text);
  color: var(--c-surface);
  border-color: var(--c-text);
}

.pl-chip:has(input:focus-visible) {
  outline: 2px solid var(--c-focus);
  outline-offset: 3px;
}

@media (max-width: 39.99rem) {
  .pl-choices--stack { flex-direction: column; }
  .pl-choices--stack .pl-chip { justify-content: center; }
}

.pl-router { margin-bottom: var(--sp-4); }
.pl-router legend.label { font-size: var(--step-0); }

/* ----------------------------------------------------------------- so far  */
.pl-sofar {
  margin-top: 0;
  margin-bottom: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: 4px;
}

.pl-sofar p { font-size: 0.9375rem; }

/* ----------------------------------------------------------------- review  */
.pl-review { margin-bottom: var(--sp-4); }
.pl-review__group + .pl-review__group { margin-top: var(--sp-3); }
.pl-review__group > .label { display: block; margin-bottom: var(--sp-1); }

.pl-review__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-2);
  padding: 10px 0;
  border-bottom: var(--rule) solid var(--c-rule);
  align-items: center;
}

.pl-review__key {
  flex: 0 0 9rem;
  font-size: 0.8125rem;
  color: var(--c-text-muted);
}

.pl-review__val { flex: 1 1 12rem; font-size: 0.9375rem; }

.pl-review__edit {
  font-size: 0.8125rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: 0;
  padding: 4px 8px;
  cursor: pointer;
  color: var(--pl-navy, #0A2540);
  font-weight: 500;
}

/* --------------------------------------------------------------- consents  */
/* The consent box.
 *
 * It used to borrow .pl-panel, whose rule sits on the left edge only — a bar
 * down one side of a box that has no other border reads as an accident rather
 * than a decision. It also carried a 4px radius, and tokens.css marks --radius
 * immutable at 0.
 *
 * So: a hairline the whole way round, paper inside, and the brand doing the
 * work instead of the border. The sky band across the top is the accent, the
 * navy is in the heading and the tick itself, and nothing is asymmetric. */
.pl-consents {
  padding: var(--sp-3);
  margin-bottom: var(--sp-4);
  border: var(--rule) solid var(--c-rule);
  border-top: 3px solid var(--pl-sky);
  border-radius: 0;
  background: var(--pl-paper, #ffffff);
}

.pl-consents > * + * { margin-top: var(--sp-2); }

.pl-consent {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  cursor: pointer;
}

.pl-consent input {
  margin-top: 4px;
  accent-color: var(--pl-navy, #0A2540);
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.pl-consent__head {
  display: block;
  font-weight: 600;
  color: var(--pl-navy, #0A2540);
}

.pl-consent__body {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.6;
  max-width: 56ch;
}

.pl-consents__note { font-size: 0.8125rem; }

/* ---------------------------------------------------------------- actions  */
.pl-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

#pl-next {
  min-height: 44px;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
}

#pl-back,
.pl-actions .btn--secondary,
.btn--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0.6rem 1.35rem;
  background: #ffffff;
  color: var(--pl-navy, #0A2540);
  border: 1.5px solid var(--c-rule, #cbd5e1);
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

#pl-back:hover,
.pl-actions .btn--secondary:hover,
.btn--secondary:hover {
  border-color: var(--pl-navy, #0A2540);
  background: rgba(10, 37, 64, 0.05);
  transform: translateX(-2px);
}

.pl-actions__aside {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  max-width: 34ch;
  margin-left: auto;
}

/* ------------------------------------------------------------ trade mark   */
.pl-tradeflag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: var(--rule) solid var(--c-state);
  padding: 4px var(--sp-1);
  margin-bottom: var(--sp-2);
}

/* ----------------------------------------------------------- confirmation  */
.pl-done__mark { width: 44px; height: 44px; background: var(--c-water); }

.pl-done__title {
  font-size: var(--step-2);
  margin: var(--sp-2) 0;
  max-width: 20ch;
}

.pl-timeline { list-style: none; padding: 0; margin: 0; }
.pl-timeline li {
  display: flex;
  gap: var(--sp-2);
  padding-bottom: var(--sp-2);
}

.pl-timeline__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--c-rule);
  margin-top: 5px;
  flex-shrink: 0;
}

.pl-timeline__dot.is-done {
  background: var(--pl-sky, #8FBFD4);
  border-color: var(--pl-navy, #0A2540);
}

.pl-timeline__when {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
}

.pl-done__links { font-size: 0.875rem; }

/* ------------------------------------------------------------- the FAQs --- */
.pl-faq__title {
  font-size: var(--step-2);
  margin: var(--sp-1) 0 var(--sp-4);
}

.pl-faq__cols {
  display: grid;
  gap: var(--sp-4);
}

@media (min-width: 48rem) {
  .pl-faq__cols {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
  }
}

.pl-faq__list {
  display: flex;
  flex-direction: column;
}

.pl-faq__item {
  border-top: var(--rule) solid var(--c-rule);
  padding: var(--sp-2) 0;
}

.pl-faq__item:last-child {
  border-bottom: var(--rule) solid var(--c-rule);
}

.pl-faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: var(--sp-1) 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  cursor: pointer;
}

.pl-faq__q::after {
  content: "+";
  font-size: 1.25rem;
  font-family: var(--font-mono);
  color: var(--c-text-muted);
  margin-left: var(--sp-1);
}

.pl-faq__q[aria-expanded="true"]::after {
  content: "−";
}

.pl-faq__a {
  padding-top: var(--sp-1);
  padding-bottom: var(--sp-2);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--c-text-muted);
}

.pl-faq__foot {
  margin-top: var(--sp-4);
  font-size: 0.875rem;
  color: var(--c-text-muted);
}

/* ------------------------------------------------------------- the office - */
.pl-office__grid {
  display: grid;
  gap: var(--sp-6);
  align-items: start;
}

@media (min-width: 48rem) {
  .pl-office__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }
}

.pl-office__col > * + * { margin-top: var(--sp-2); }
.pl-office__address { font-style: normal; line-height: 1.6; }
.pl-office__small { font-size: 0.8125rem; }

.pl-office__figure {
  margin: 0;
}

.pl-office__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border: 1px solid var(--c-rule);
  border-radius: 4px;
}

.pl-office__caption {
  font-size: 0.75rem;
  margin-top: var(--sp-1);
}

/* ---------------------------------------------------------------- safety   */
.pl-safety {
  border-top: var(--rule) solid var(--c-rule);
  padding: var(--sp-6) 0;
}

.pl-safety__inner {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}

.pl-safety__bar {
  width: 4px;
  height: 48px;
  background: var(--pl-sky, #8FBFD4);
  flex-shrink: 0;
}

.pl-safety__body {
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 60ch;
}
