/**
 * Contact Us layout only — form chrome is nw-form.css.
 * Split mirrors blogs: fixed side + fluid main (inverted).
 */

body.contact-page {
  --nw-inner-max: 1440px;
  --nw-contact-side: 400px;
}

body.contact-page #enquiry {
  scroll-margin-top: calc(var(--pl-scroll-pad, 176px) + 24px);
}

body.contact-page #enquiry > .container {
  width: calc(100% - var(--page-gutter, 48px) * 2);
  max-width: var(--nw-inner-max, 1440px) !important;
  margin-inline: auto;
  padding-inline: 0;
}

body.contact-page .nw-contact-split {
  display: grid;
  grid-template-columns: var(--nw-contact-side) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  width: 100%;
}

/* ——— Left panel ——— */

body.contact-page .nw-contact-panel {
  position: sticky;
  top: calc(var(--pl-scroll-pad, calc(var(--nw-header-top-h, 50px) + var(--nw-header-main-h, 100px) + 76px)) + 24px);
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--nw-border);
  border-radius: 11px;
  background: #f7f9fc;
}

body.contact-page .nw-contact-panel .nw-section-eyebrow {
  margin: 0;
}

body.contact-page .nw-contact-panel__title {
  margin: 12px 0 0;
  /* Preserved PC visual: clamp(24px, 2vw, 30px) = 28.8px at 1440.
     Do not jump this to --nw-fs-title (22) or --nw-fs-display (40); either
     changes the accepted desktop look. Tablet (nw-tablet.css) and phone
     (max-width 960) already use --nw-fs-display. */
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 650;
  letter-spacing: -0.6px;
  line-height: 1.28;
  color: var(--ink, #171c29);
}

body.contact-page .nw-contact-panel__title > span {
  color: var(--main-color);
}

body.contact-page .nw-contact-ways {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body.contact-page .nw-contact-way {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  padding: 22px 0;
  border-top: 1px solid var(--nw-border);
}

body.contact-page .nw-contact-way:last-child {
  padding-bottom: 0;
}

body.contact-page .nw-contact-way__head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body.contact-page .nw-contact-way__icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  font-size: var(--nw-fs-title);
  line-height: 1;
  color: var(--main-color);
}

body.contact-page .nw-contact-way__icon > .icon {
  display: block;
  line-height: 1;
}

body.contact-page .nw-contact-way__label {
  display: block;
  margin: 0;
  font-size: var(--nw-fs-secondary);
  font-weight: 650;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #5d6b82;
}

body.contact-page .nw-contact-way__body {
  width: 100%;
  min-width: 0;
  margin-top: 10px;
}

body.contact-page .nw-contact-way__value,
body.contact-page a.nw-contact-way__value:hover,
body.contact-page a.nw-contact-way__value:focus {
  display: block;
  margin: 0;
  font-size: var(--nw-fs-body);
  font-weight: 650;
  letter-spacing: -0.25px;
  line-height: 1.35;
  color: var(--ink, #171c29);
  text-decoration: none;
  word-break: break-word;
}

body.contact-page a.nw-contact-way__value {
  cursor: pointer;
}

body.contact-page a.nw-contact-way__value:hover {
  color: var(--main-color);
}

body.contact-page .nw-contact-way__body > p:not(.nw-contact-way__value) {
  margin: 8px 0 0;
  font-size: var(--nw-fs-meta);
  line-height: 1.55;
  color: #5d6b82;
}

body.contact-page .nw-contact-way__value.nw-contact-way__address {
  white-space: pre-line;
  font-size: var(--nw-fs-secondary);
  font-weight: 600;
  line-height: 1.9;
}

body.contact-page .nw-contact-way__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

body.contact-page .nw-contact-way__socials .icon,
body.contact-page .nw-contact-way__socials .icon:hover,
body.contact-page .nw-contact-way__socials .icon:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--nw-border);
  border-radius: 8px;
  background: #fff;
  font-size: 16px;
  color: var(--ink, #171c29);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

body.contact-page .nw-contact-way__socials .icon:hover {
  border-color: #c5d2e8;
  color: var(--main-color);
}

/* ——— Right shell (fields come from nw-form) ——— */

body.contact-page .nw-contact-builder.quote-builder {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding: 32px 36px;
  border: 1px solid var(--nw-border);
  border-radius: 11px;
  background: #fbfcff;
  box-sizing: border-box;
}

body.contact-page .nw-contact-builder .builder-heading h3 > span {
  color: var(--main-color);
}

body.contact-page .nw-contact-builder .builder-delivery-note a {
  margin-left: 4px;
}

@media (max-width: 1279px) { /* official tablet top; was 1200 */
  body.contact-page {
    --nw-contact-side: 360px;
  }

  body.contact-page .nw-contact-builder.quote-builder {
    padding: 28px 30px;
  }
}

@media (max-width: 980px) {
  body.contact-page .nw-contact-split {
    grid-template-columns: 1fr;
  }

  body.contact-page .nw-contact-panel {
    position: static;
    padding: 24px;
  }

  body.contact-page .nw-contact-way {
    padding: 20px 0;
  }

  body.contact-page .nw-contact-way:last-child {
    padding-bottom: 0;
  }

  body.contact-page .nw-contact-builder.quote-builder {
    padding: 24px;
  }
}

/*
 * Phone ≤960 — contact ways as separate cards (PC / tablet panel unchanged).
 */
@media (max-width: 960px) {
  body.contact-page .nw-contact-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  body.contact-page .nw-contact-panel .nw-section-eyebrow {
    display: none;
  }

  body.contact-page .nw-contact-panel__title {
    margin: 0;
    font-size: var(--nw-fs-display);
    letter-spacing: -0.02em;
    line-height: 1.25;
  }

  body.contact-page .nw-contact-ways {
    margin-top: 16px;
    gap: 12px;
  }

  body.contact-page .nw-contact-way {
    padding: 16px;
    border: 1px solid var(--nw-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px #20385e08;
  }

  body.contact-page .nw-contact-way:last-child {
    padding-bottom: 16px;
  }

  body.contact-page .nw-contact-way__head {
    gap: 12px;
  }

  body.contact-page .nw-contact-way__icon {
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef3ff;
    font-size: 20px;
  }

  body.contact-page .nw-contact-way__label {
    font-size: var(--nw-fs-meta);
    letter-spacing: 0.06em;
  }

	body.contact-page .nw-contact-way__body {
		margin-top: 12px;
	}

  body.contact-page .nw-contact-way__value,
  body.contact-page a.nw-contact-way__value:hover,
  body.contact-page a.nw-contact-way__value:focus {
    font-size: var(--nw-fs-body);
  }

  body.contact-page .nw-contact-way__value.nw-contact-way__address {
    font-size: var(--nw-fs-secondary);
    line-height: 1.55;
  }

  body.contact-page .nw-contact-way__body > p:not(.nw-contact-way__value) {
    margin-top: 6px;
    font-size: var(--nw-fs-secondary);
  }

  body.contact-page .nw-contact-way__socials {
    margin-top: 0;
    gap: 10px;
  }

  body.contact-page .nw-contact-way__socials .icon,
  body.contact-page .nw-contact-way__socials .icon:hover,
  body.contact-page .nw-contact-way__socials .icon:focus {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 18px;
  }

  body.contact-page .nw-contact-builder.quote-builder {
    padding: 20px 16px;
    border-radius: 12px;
  }
}
