.office-page,
.office-page * {
  box-sizing: border-box;
}

.office-page {
  color: #171715;
}

.office-wrap {
  width: min(1240px, calc(100% - clamp(36px, 8vw, 112px)));
  margin-inline: auto;
}

.office-eyebrow {
  margin: 0 0 24px;
  color: #7a1f1f;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.office-hero {
  background: #fff;
  padding-block: clamp(56px, 5vw, 76px) clamp(68px, 7vw, 106px);
}

.office-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, .8fr);
  align-items: center;
  gap: clamp(48px, 6vw, 104px);
}

.office-hero-copy {
  min-width: 0;
}

.office-hero h1 {
  margin: 0 0 24px;
  font-size: clamp(42px, 4.2vw, 60px);
  font-weight: 300;
  letter-spacing: -.055em;
  line-height: 1.12;
  text-transform: none;
}

.office-hero h1 span {
  display: block;
  color: inherit;
}

.office-hero-lead {
  max-width: 48ch;
  margin: 0 0 18px;
  font-size: clamp(18px, 1.65vw, 21px);
  font-weight: 400;
  line-height: 1.55;
}

.office-hero-text {
  max-width: 61ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
}

.office-hero-action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 26px;
}

.office-primary,
.office-page #office-next,
.office-page button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 56px;
  padding: 16px 22px;
  border: 1px solid #7a1f1f;
  border-radius: 0;
  background: #7a1f1f;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 150ms ease;
}

.office-primary:active,
.office-page #office-next:active,
.office-page button[type="submit"]:active {
  transform: scale(.985);
}

@media (hover:hover) and (pointer:fine) {
.office-primary:hover,
.office-page #office-next:hover,
.office-page button[type="submit"]:hover {
  border-color: #171715;
  background: #171715;
  color: #fff;
}

}

.office-hero .office-primary {
  border-color: #171715;
  background: #fff;
  color: #171715;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
}

@media (hover:hover) and (pointer:fine) {
.office-hero .office-primary:hover {
  border-color: #7a1f1f;
  background: #7a1f1f;
  color: #fff;
}

}

.office-primary:focus-visible,
.office-page button:focus-visible,
.office-page input:focus-visible,
.office-page select:focus-visible,
.office-page textarea:focus-visible,
.office-page summary:focus-visible {
  outline: 2px solid #7a1f1f;
  outline-offset: 3px;
}

.office-hero-action p {
  max-width: 24ch;
  margin: 0;
  color: #62625c;
  font-size: 12px;
  line-height: 1.55;
}

.office-hero-portrait {
  width: 100%;
  max-width: 445px;
  margin: 0 0 0 auto;
}

.office-hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 28%;
  background: #e8e8e6;
}

.office-hero-portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #d2d0c9;
  padding-top: 16px;
  font-size: 12px;
  line-height: 1.5;
}

.office-hero-portrait strong {
  font-weight: 600;
}

.office-hero-portrait span {
  max-width: 22ch;
  color: #62625c;
  text-align: right;
}

.office-service {
  background: var(--paper-muted);
  padding-block: clamp(72px, 8vw, 116px);
}

.office-service-intro {
  max-width: 860px;
}

.office-service h2,
.office-enquiry h2 {
  margin: 0 0 24px;
  font-size: clamp(34px, 3.7vw, 50px);
  font-weight: 300;
  letter-spacing: -.04em;
  line-height: 1.18;
}

.office-service-intro > p:last-child,
.office-enquiry-copy > p:not(.office-eyebrow, .office-enquiry-signature) {
  max-width: 63ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
}

.office-service-steps {
  max-width: 1040px;
  margin-top: clamp(42px, 5vw, 70px);
  border-top: 1px solid #d6d4cd;
}

.office-service-steps article {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  border-bottom: 1px solid #d6d4cd;
  padding-block: 30px 32px;
}

.office-step-number {
  padding-top: 1px;
  color: #9c6967;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 300;
  letter-spacing: -.04em;
  line-height: 1;
}

.office-service-steps h3 {
  margin: 0 0 10px;
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.35;
}

.office-service-steps p {
  max-width: 76ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
}

.office-enquiry {
  padding-block: clamp(72px, 8vw, 114px);
  background: var(--paper-muted);
}

.office-enquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(42px, 6vw, 96px);
}

.office-enquiry-copy {
  padding-top: 18px;
}

.office-enquiry-copy h2 {
  max-width: 14ch;
}

.office-enquiry-signature {
  margin: 38px 0 0;
  border-top: 1px solid #c9c6bd;
  padding-top: 16px;
  color: #7a1f1f;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.office-form-panel {
  scroll-margin-top: 24px;
  min-width: 0;
  border: 1px solid #e2e1dc;
  border-radius: 16px;
  background: #fff;
  padding: clamp(24px, 3.5vw, 48px);
  box-shadow: none;
}

.office-form-intro {
  margin: 0 0 28px;
  color: #62625c;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

#office-search-form fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

#office-search-form [hidden] {
  display: none !important;
}

#office-search-form legend {
  margin-bottom: 28px;
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 300;
  letter-spacing: -.025em;
  line-height: 1.35;
}

.office-step {
  margin: 0 0 12px;
  color: #7a1f1f;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.5;
  text-transform: none;
}

.office-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
}

.office-fields label {
  grid-template-rows: auto 1fr;
}

.office-fields label,
.office-extra label {
  display: grid;
  gap: 9px;
  min-width: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

#office-search-form input:not([type="checkbox"]),
#office-search-form select,
#office-search-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  border: 1px solid #b6b5af;
  border-radius: 8px;
  background: #fff;
  color: #171715;
  padding: 13px 14px;
  font: inherit;
  font-size: 16px;
  font-weight: 300;
}

#office-search-form textarea {
  resize: vertical;
}

#office-search-form input:not([type="checkbox"]):focus,
#office-search-form select:focus,
#office-search-form textarea:focus {
  border-color: #7a1f1f;
  background: var(--paper-muted);
}

.office-hint {
  margin: 18px 0 0;
  color: #62625c;
  font-size: 12px;
  line-height: 1.65;
}

.office-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 20px;
}

.office-chips button {
  min-height: 44px;
  border: 1px solid #d0cec7;
  border-radius: 8px;
  background: var(--paper-muted);
  padding: 9px 12px;
  color: #171715;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.office-honeypot {
  position: absolute !important;
  left: -10000px;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
}

.office-page #office-next,
.office-page button[type="submit"] {
  width: 100%;
  min-height: 52px;
  border-radius: 8px;
  justify-content: space-between;
  margin-top: 8px;
  text-align: left;
  font-weight: 400;
}

.office-page button:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.office-summary {
  margin: 0 0 24px;
  border: 1px solid #e2e1dc;
  border-radius: 8px;
  background: var(--paper-muted);
  padding: 14px 18px;
}

.office-summary p {
  margin: 5px 0;
  font-size: 13px;
  line-height: 1.55;
}

.office-extra {
  margin: 24px 0 0;
  border-block: 1px solid #dedcd5;
  padding: 16px 0;
}

.office-extra summary {
  cursor: pointer;
  font-size: 13px;
  line-height: 1.6;
}

.office-extra label {
  margin-top: 16px;
}

#office-contact .office-consent {
  display: flex;
  align-items: start;
  gap: 11px;
  margin-top: 22px;
  font-size: 13px;
  line-height: 1.6;
}

.office-consent input {
  flex: none;
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  accent-color: #7a1f1f;
}

.office-actions {
  display: flex;
  flex-direction: column-reverse;
  align-items: start;
  gap: 12px;
  margin-top: 18px;
}

.office-page #office-back {
  min-height: 40px;
  border: 0;
  background: transparent;
  padding: 8px 0;
  color: #7a1f1f;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.office-page #office-back:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#office-result {
  scroll-margin-top: 24px;
  margin: 24px 0 0;
  border: 1px solid #7a1f1f;
  border-radius: 8px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.office-form-note {
  margin-top: 22px;
}

@media (max-width: 920px) {
  .office-hero-layout,
  .office-enquiry-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .office-hero-copy {
    max-width: 720px;
  }

  .office-hero-portrait {
    max-width: 360px;
    margin-left: 0;
  }

  .office-enquiry-copy {
    max-width: 640px;
    padding-top: 0;
  }
}

@media (max-width: 600px) {
  .office-hero {
    padding-block: 52px 64px;
  }

  .office-hero-layout {
    gap: 42px;
  }

  .office-hero h1 {
    font-size: clamp(36px, 9.4vw, 48px);
    letter-spacing: -.045em;
  }

  .office-hero-lead {
    font-size: 18px;
  }

  .office-hero-text,
  .office-service-steps p {
    font-size: 15px;
  }

  .office-hero-action {
    align-items: stretch;
  }

  .office-primary {
    width: 100%;
  }

  .office-hero-action p {
    max-width: none;
  }

  .office-hero-portrait {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: none;
  }

  .office-hero-portrait img {
    flex: none;
    width: 96px;
    height: 120px;
    object-fit: cover;
    object-position: 50% 34%;
  }

  .office-hero-portrait figcaption {
    display: block;
    border-top: 0;
    padding: 0;
  }

  .office-hero-portrait strong,
  .office-hero-portrait span {
    display: block;
    text-align: left;
  }

  .office-hero-portrait span {
    margin-top: 6px;
  }

  .office-service-steps article {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding-block: 26px;
  }

  .office-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .office-form-panel {
    padding: 24px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .office-primary,
  .office-page #office-next,
  .office-page button[type="submit"] {
    transition: none;
  }
  .office-primary:active,
  .office-page #office-next:active,
  .office-page button[type="submit"]:active { transform: none; }
}

:is(.office-primary,.office-page #office-next,.office-page button[type="submit"]):focus-visible { transition:none; }

/* Native selection, validation and keyboard support are retained. */
#office-search-form select {
  appearance: none;
  padding-right: 38px;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%2362625c' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

#office-search-form select:required:invalid {
  color: #62625c;
}

.office-chips:empty {
  margin: 0 0 24px;
}

.office-form-panel input,
.office-form-panel textarea {
  caret-color: #7a1f1f;
}

.office-form-panel ::selection {
  background: #7a1f1f;
  color: #fff;
}

@supports (appearance: base-select) {
  #office-search-form select,
  #office-search-form select::picker(select) {
    appearance: base-select;
  }

  #office-search-form select {
    background-image: none;
    padding-right: 14px;
    align-items: center;
    gap: 12px;
  }

  #office-search-form select::picker-icon {
    color: #62625c;
  }

  #office-search-form select::picker(select) {
    margin-block: 6px;
    padding: 6px;
    border: 1px solid #d0cec7;
    border-radius: 10px;
    background: #fff;
    color: #171715;
    font: inherit;
  }

  #office-search-form option {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
  }

  #office-search-form option:checked,
  #office-search-form option:hover,
  #office-search-form option:focus {
    background: #f3efec;
    color: #7a1f1f;
  }

  #office-search-form option:disabled {
    color: #62625c;
  }
}
