/* LINQWALL subpages (contact, privacy policy, thanks, 404), 2026-10-13.
   Loaded after site.min.css + linqwall-theme.css, so the header and footer are exactly the TOP page ones.
   Colours: --linqwall-navy / --linqwall-blue / --linqwall-pale (linqwall-theme.css). */
.lw-subpage {
  --lw-ink: #14213d;
  --lw-text: #1f2937;
  --lw-muted: #556070;
  --lw-line: #d8e0ea;
  --lw-soft: #f3f7fb;
  --lw-error: #c4161c;
}

/* The TOP footer keeps 95px below it for the floating bar, which only the top page has. */
.lw-subpage .footer {
  margin-bottom: 0;
}

.lw-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.lw-nowrap {
  white-space: nowrap;
}

.lw-main {
  display: block;
  color: var(--lw-text);
}

.lw-main *,
.lw-main *::before,
.lw-main *::after,
.lw-pagetitle,
.lw-breadcrumb {
  box-sizing: border-box;
}

/* ---- title band + breadcrumb ----------------------------------------------------------------------------- */
.lw-pagetitle {
  position: relative;
  overflow: hidden;
  padding: 52px 0 48px;
  background: linear-gradient(115deg, var(--linqwall-navy) 0%, #00509f 58%, var(--linqwall-blue) 100%);
  color: #fff;
}

.lw-pagetitle::after {
  /* The LINQWALL mark (favicon.svg geometry) as a quiet watermark. */
  content: '';
  position: absolute;
  top: 50%;
  right: max(24px, calc(50% - 560px));
  width: 210px;
  height: 184px;
  transform: translateY(-50%);
  opacity: 0.14;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64.349 56.377'%3E%3Cpath fill='%23fff' d='M41.764 56.377L56.764 18.792L64.349 18.792L49.349 56.377ZM22.585 0L7.585 37.585L0 37.585L15 0ZM50.494 0L31.022 48.792L16.882 48.792L36.354 0L28.652 0L6.153 56.377L35.697 56.377L58.196 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}

.lw-pagetitle .inner {
  position: relative;
  z-index: 1;
}

.lw-pagetitle__label {
  margin-bottom: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.82);
}

.lw-pagetitle__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.lw-breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--lw-line);
  font-size: 13px;
  color: var(--lw-muted);
}

.lw-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.lw-breadcrumb li + li::before {
  content: '/';
  margin-right: 8px;
  color: #a5b1bf;
}

.lw-breadcrumb a {
  color: var(--linqwall-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lw-breadcrumb a:hover {
  text-decoration: none;
}

/* ---- sections, cards, buttons ------------------------------------------------------------------------------ */
.lw-section {
  padding: 64px 0 88px;
}

.lw-section--soft {
  background: var(--lw-soft);
}

.lw-card {
  background: #fff;
  border: 1px solid var(--lw-line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 65, 144, 0.06);
}

.lw-card__title {
  padding: 18px 32px;
  border-bottom: 1px solid var(--lw-line);
  border-radius: 10px 10px 0 0;
  background: var(--linqwall-navy);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 32px;
  border: 2px solid var(--linqwall-navy);
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.lw-btn--primary {
  background: var(--linqwall-navy);
  color: #fff;
}

.lw-btn--primary:hover {
  background: #00336f;
  border-color: #00336f;
}

.lw-btn--ghost {
  background: #fff;
  color: var(--linqwall-navy);
}

.lw-btn--ghost:hover {
  background: var(--linqwall-pale);
}

.lw-btn:focus-visible,
.lw-subpage a:focus-visible,
.lw-file__button:focus-visible {
  outline: 3px solid var(--linqwall-blue);
  outline-offset: 3px;
}

.lw-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

/* ---- contact page ------------------------------------------------------------------------------------------- */
.lw-contact-intro {
  max-width: 920px;
  margin: 0 auto 40px;
  text-align: center;
}

.lw-lead {
  font-size: 17px;
  line-height: 2;
}

.lw-lead strong {
  color: var(--linqwall-navy);
}

.lw-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.lw-points li {
  padding: 22px 18px 20px;
  background: #fff;
  border: 1px solid var(--lw-line);
  border-top: 4px solid var(--linqwall-blue);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--lw-ink);
}

.lw-points__num {
  display: block;
  margin-bottom: 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: #00669a;
}

.lw-contact-tel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto 32px;
  padding: 22px 32px;
  background: #fff;
  border: 2px solid var(--linqwall-pale);
  border-left: 6px solid var(--linqwall-navy);
  border-radius: 8px;
}

.lw-contact-tel__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--lw-ink);
}

.lw-contact-tel__hours {
  font-size: 14px;
  color: var(--lw-muted);
}

.lw-contact-tel__number {
  flex-shrink: 0;
}

.lw-contact-tel__number img {
  display: block;
  width: 247px;
  height: auto;
}

.lw-contact-form {
  max-width: 920px;
  margin: 0 auto;
}

/* ---- form ---------------------------------------------------------------------------------------------------- */
.lw-form {
  padding: 32px 40px 40px;
}

.lw-form__legend {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--lw-muted);
}

.lw-form__fields {
  min-width: 0;
}

.lw-field {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 8px 28px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #e7ecf2;
}

.lw-field--top {
  align-items: start;
}

.lw-field--top .lw-field__label {
  padding-top: 12px;
}

.lw-field__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--lw-ink);
  line-height: 1.5;
}

.lw-req,
.lw-opt {
  display: inline-block;
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.lw-req {
  background: var(--lw-error);
  color: #fff;
}

.lw-opt {
  background: #e9eef4;
  color: var(--lw-muted);
}

.lw-form__legend .lw-req {
  margin-right: 4px;
}

.lw-form input:not([type='checkbox']):not([type='file']),
.lw-form select,
.lw-form textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #b9c4d1;
  border-radius: 6px;
  background: #fff;
  color: var(--lw-text);
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lw-form textarea {
  min-height: 250px;
  resize: vertical;
}

.lw-form ::placeholder {
  color: #8995a3;
  opacity: 1;
}

.lw-form input:focus,
.lw-form select:focus,
.lw-form textarea:focus {
  outline: none;
  border-color: var(--linqwall-blue);
  box-shadow: 0 0 0 3px rgba(0, 148, 213, 0.22);
}

.lw-form .is-invalid input,
.lw-form .is-invalid textarea {
  border-color: var(--lw-error);
  background: #fff7f7;
}

.lw-select {
  position: relative;
  max-width: 360px;
}

.lw-select::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--linqwall-navy);
  border-bottom: 2px solid var(--linqwall-navy);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.lw-form select {
  appearance: none;
  padding-right: 44px;
  cursor: pointer;
}

.lw-field__hint {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--lw-muted);
}

.lw-field__error {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--lw-error);
}

.lw-field__error::before {
  content: '! ';
}

.lw-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.lw-file__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.lw-file__button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 2px solid var(--linqwall-navy);
  border-radius: 6px;
  background: #fff;
  color: var(--linqwall-navy);
  font-weight: 700;
  cursor: pointer;
}

.lw-file__button:hover {
  background: var(--linqwall-pale);
}

.lw-file__input:focus-visible + .lw-file__button {
  outline: 3px solid var(--linqwall-blue);
  outline-offset: 3px;
}

.lw-file__list {
  display: grid;
  gap: 6px;
  width: 100%;
}

.lw-file__list:empty {
  display: none;
}

.lw-file__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: var(--lw-soft);
  border-radius: 6px;
  font-size: 14px;
}

.lw-file__name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.lw-file__remove {
  flex-shrink: 0;
  padding: 4px 12px;
  border: 1px solid #b9c4d1;
  border-radius: 4px;
  background: #fff;
  color: var(--lw-text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.lw-honeypot {
  display: none;
}

.lw-consent {
  padding: 28px 0 8px;
  text-align: center;
}

.lw-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
}

.lw-check input {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--linqwall-navy);
}

.lw-check a {
  color: var(--linqwall-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lw-check .lw-req {
  margin-left: 8px;
  vertical-align: 2px;
}

.lw-turnstile {
  display: flex;
  justify-content: center;
  min-height: 0;
  margin-top: 20px;
}

.lw-form__actions {
  margin-top: 24px;
  text-align: center;
}

.lw-btn--submit {
  width: min(100%, 420px);
  min-height: 64px;
  font-size: 18px;
}

.lw-btn--submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.lw-form.is-sending .lw-btn--submit,
.is-sending .lw-btn--submit {
  opacity: 0.75;
  cursor: progress;
}

.lw-form__status {
  min-height: 1.7em;
  margin-top: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.lw-form__status[data-state='error'] {
  color: var(--lw-error);
}

.lw-form__status[data-state='success'] {
  color: #0a7a3d;
}

.lw-form__status[data-state='sending'] {
  color: var(--linqwall-navy);
}

/* Intake switch (worker/index.js). Closed (default, production until approved): fields disabled, notice instead of
   the submit button. Open: the form works. */
.lw-form__closed {
  display: none;
}

[data-lw-intake='closed'] .lw-form__closed {
  display: block;
}

[data-lw-intake='closed'] .lw-form__closed--actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

[data-lw-intake='closed'] .lw-form__actions,
[data-lw-intake='closed'] .lw-turnstile,
[data-lw-intake='closed'] .lw-form__legend {
  display: none;
}

[data-lw-intake='closed'] .lw-form__fields {
  opacity: 0.55;
}

[data-lw-intake='closed'] .lw-file__button {
  cursor: not-allowed;
}

.lw-form__closed[role='note'] {
  margin-bottom: 20px;
  padding: 20px 24px;
  border: 2px solid var(--linqwall-blue);
  border-radius: 8px;
  background: var(--linqwall-pale);
  color: var(--lw-ink);
  line-height: 1.85;
}

.lw-form__closed-title {
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--linqwall-navy);
}

.lw-form__closed a:not(.lw-btn) {
  color: var(--linqwall-navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lw-form__closed--actions .lw-btn {
  text-decoration: none;
}

/* ---- thanks / 404 -------------------------------------------------------------------------------------------- */
.lw-message-box {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 56px;
  text-align: center;
  line-height: 1.9;
}

.lw-message-box__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--linqwall-navy);
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.lw-message-box__title {
  margin-bottom: 18px;
  font-size: 26px;
  font-weight: 700;
  color: var(--lw-ink);
}

.lw-message-box p + p {
  margin-top: 10px;
}

.lw-message-box__note {
  margin-top: 24px !important;
  font-size: 14px;
  color: var(--lw-muted);
}

.lw-message-box a:not(.lw-btn) {
  color: var(--linqwall-navy);
  font-weight: 700;
}

/* ---- privacy policy ------------------------------------------------------------------------------------------ */
.policy-content {
  display: grid;
  gap: 40px;
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 56px;
  background: #fff;
  border: 1px solid var(--lw-line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 65, 144, 0.06);
}

.policy-content section {
  display: grid;
  gap: 14px;
}

.policy-content h2 {
  padding: 2px 0 2px 16px;
  border-left: 5px solid var(--linqwall-navy);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--lw-ink);
}

.policy-content p,
.policy-content li,
.policy-content td,
.policy-content th,
.policy-info {
  line-height: 1.9;
}

.policy-content ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.6em;
}

.policy-content ol li {
  list-style: decimal;
}

.policy-content ol li::marker {
  color: var(--linqwall-navy);
  font-weight: 700;
}

.policy-info {
  margin: 0;
  padding: 20px 24px;
  background: var(--linqwall-pale);
  border-radius: 8px;
  font-style: normal;
}

.policy-date {
  text-align: right;
  font-weight: 700;
}

.email-image {
  display: inline-block;
  width: 242px;
  height: 16px;
  margin-left: 4px;
  vertical-align: -2px;
}

.table-wrap {
  overflow-x: auto;
}

.policy-content table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.policy-content th,
.policy-content td {
  padding: 14px 16px;
  border: 1px solid var(--lw-line);
  text-align: left;
  vertical-align: top;
}

.policy-content th {
  width: 210px;
  background: var(--linqwall-pale);
  color: var(--lw-ink);
  font-weight: 700;
}

/* ---- tablet / phone ------------------------------------------------------------------------------------------ */
@media (max-width: 960px) {
  .lw-field {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 8px 20px;
  }
}

@media (max-width: 767px) {
  .lw-pagetitle {
    padding: 30px 0 28px;
  }

  .lw-pagetitle::after {
    right: 12px;
    width: 120px;
    height: 105px;
  }

  .lw-pagetitle__label {
    font-size: 11px;
  }

  .lw-pagetitle__title {
    font-size: 20px;
    letter-spacing: 0.02em;
  }

  .lw-breadcrumb {
    font-size: 12px;
  }

  .lw-breadcrumb ol {
    min-height: 38px;
  }

  .lw-section {
    padding: 36px 0 56px;
  }

  .lw-lead {
    font-size: 15px;
    line-height: 1.9;
    text-align: left;
  }

  .lw-points {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  .lw-points li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-top-width: 1px;
    border-left: 4px solid var(--linqwall-blue);
    font-size: 13px;
    text-align: left;
  }

  .lw-points li br {
    display: none;
  }

  .lw-points__num {
    margin: 0;
  }

  .lw-contact-intro {
    margin-bottom: 24px;
  }

  .lw-contact-tel {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 18px 16px;
    text-align: center;
  }

  .lw-contact-tel__number img {
    width: min(247px, 100%);
    margin: 0 auto;
  }

  .lw-card__title {
    padding: 14px 18px;
    font-size: 17px;
  }

  .lw-form {
    padding: 20px 16px 28px;
  }

  .lw-field {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }

  .lw-field--top .lw-field__label {
    padding-top: 0;
  }

  .lw-select {
    max-width: none;
  }

  .lw-form textarea {
    min-height: 280px;
  }

  .lw-consent {
    text-align: left;
  }

  .lw-btn {
    width: 100%;
    padding: 0 12px;
    font-size: 15px;
  }

  .lw-message-box,
  .policy-content {
    padding: 28px 18px;
  }

  .lw-message-box {
    text-align: left;
  }

  .lw-message-box__title {
    font-size: 18px;
    text-align: center;
  }

  .policy-content {
    gap: 32px;
  }

  .policy-content h2 {
    font-size: 19px;
  }

  .email-image {
    margin-left: 0;
  }
}
