/* Shared service-request flow. The dialog and contact page use the same controls. */
.inquiry-dialog {
  width: 840px;
  max-width: calc(100vw - 28px);
  max-height: calc(100dvh - 32px);
  border: 1px solid #cfb477;
  border-radius: 16px;
  box-shadow: 0 28px 110px #031b37a6;
  background: #faf7f0;
}
.inquiry-dialog::backdrop { background: #031b37b8; backdrop-filter: blur(8px); }
.request-dialog-heading {
  position: relative;
  padding: 30px 42px 27px;
  color: #f5eedd;
  background: linear-gradient(115deg, #082d4b, #0b5277);
  border-bottom: 2px solid var(--gold-light);
}
.request-dialog-heading .eyebrow { margin: 0 48px 12px 0; font-size: 10px; color: #e3c78e; }
.request-dialog-heading h2 { margin: 0; color: #fffaf0; font-size: clamp(36px, 4.8vw, 49px); }
.request-dialog-heading > p:last-child { margin: 10px 0 0; font-size: 14px; }
.request-dialog-controls { position: sticky; top: 0; height: 0; z-index: 5; }
.request-dialog-controls .close-button {
  right: 15px;
  top: 15px;
  width: 38px;
  height: 38px;
  border: 1px solid #ffffff40;
  border-radius: 50%;
  color: white;
  background: #082d4b;
  font-size: 27px;
}
.request-dialog-controls .close-button:hover { background: #0b5277; }
.request-dialog-shell > .request-panel { padding: 0 42px 20px; }

.request-progress { margin: 0 0 28px; padding-top: 22px; }
.request-progress ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0 0 14px;
  list-style: none;
}
.request-progress li { min-width: 0; }
.request-progress button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #6b6c6b;
  line-height: 1.35;
}
.request-progress button:disabled { cursor: default; color: #777872; opacity: .8; }
.request-progress button[aria-current] { color: var(--navy); }
.request-progress button.is-complete { color: #71602f; }
.request-progress-dot {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border: 1px solid #9a9c97;
  border-radius: 50%;
}
.request-progress button[aria-current] .request-progress-dot {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 0 0 4px #082d4b12;
}
.request-progress .is-complete .request-progress-dot { background: #b38a38; border-color: #b38a38; }
.request-progress-track { height: 3px; background: #e4dfd2; overflow: hidden; border-radius: 3px; }
.request-progress-track > span {
  display: block;
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #c29a44, #e2c989);
  transition: width .25s ease;
}
.request-wizard { margin: 0; }
.request-wizard .request-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.request-accessible-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.request-step h3 {
  margin: 0 0 22px;
  color: var(--navy);
  font-size: clamp(32px, 4vw, 41px);
  line-height: 1.08;
}
.request-step h3:focus { outline: none; }
.request-step-count { margin: 0 0 10px; font-size: 11px; color: #786642; letter-spacing: .07em; }
.request-step-help { margin: -9px 0 22px; font-size: 14px; line-height: 1.6; color: #61686b; }
.request-wizard label {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 7px;
  margin-top: 18px;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.request-wizard label > span[aria-hidden] { display: inline; margin-right: auto; color: #94671b; }
.request-wizard label > .request-optional { display: inline; font-size: 11px; font-weight: 400; color: #777b7a; }
.request-wizard input, .request-wizard select, .request-wizard textarea {
  min-width: 0;
  width: 100%;
  min-height: 50px;
  background: #fffefa;
  border: 1px solid #cfc9bc;
  border-radius: 7px;
  font-size: 16px;
  padding: 12px 13px;
  transition: border-color .15s, box-shadow .15s;
}
.request-wizard textarea { min-height: 100px; line-height: 1.5; }
.request-wizard input:hover, .request-wizard select:hover, .request-wizard textarea:hover { border-color: #a99b7d; }
.request-wizard input:focus, .request-wizard select:focus, .request-wizard textarea:focus {
  outline: 2px solid #bd97423d;
  outline-offset: 1px;
  border-color: #a47b2c;
}
.request-wizard .form-row { gap: 18px; margin: 0; }
.request-service-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.request-service-options > button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  min-height: 128px;
  padding: 14px 8px 12px;
  border: 1px solid #d7cdb6;
  border-radius: 10px;
  background: #fffdf8;
  color: var(--navy);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  transition: border-color .18s, background .18s, transform .18s;
}
.request-service-options > button:hover { transform: translateY(-2px); border-color: #b48c3c; background: #fff9e9; }
.request-service-options > button[aria-pressed="true"] {
  background: #f7edda;
  border-color: #a77923;
  box-shadow: inset 0 0 0 1px #b48c3c;
}
.request-service-options .equipment-icon { flex: 0 0 64px; width: 64px; height: 64px; aspect-ratio: 1; }
.request-service-tick {
  position: absolute;
  right: 8px;
  top: 7px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-size: 12px;
}
.request-service-options [aria-pressed="true"] .request-service-tick { display: flex; }
.request-schedule { margin-top: 26px; padding: 1px 20px 18px; border: 1px solid #ded2b9; border-radius: 10px; background: #f3ecdf; }
.request-date-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.request-date-options button {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid #c4b698;
  border-radius: 6px;
  background: #fffdf8;
  color: var(--navy);
  font-size: 13px;
}
.request-date-options button[aria-pressed="true"] { color: #fffdf8; background: var(--navy); border-color: var(--navy); }
.request-schedule-note, .request-privacy { margin: 16px 0 0; font-size: 12px; line-height: 1.65; color: #666b6b; }
.request-privacy a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.request-review-card { padding: 16px 18px; margin-top: 12px; border: 1px solid #dcd2bd; border-radius: 8px; background: #fffdf8; }
.request-review-label { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.request-review-label h4 { margin: 0; font: 600 11px/1.5 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #795f2a; }
.request-review-label button { min-height: 32px; border: 0; background: transparent; font-size: 12px; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.request-review-card > p { margin: 6px 0 0; font-size: 14px; color: var(--navy); white-space: pre-wrap; overflow-wrap: anywhere; }
.request-review-card .request-review-service { font-weight: 600; }
.request-review-card .request-review-message { max-height: 150px; overflow-y: auto; color: #525b61; font-size: 13px; line-height: 1.6; }
.request-flow-actions { display: flex; align-items: center; gap: 16px; border-top: 1px solid #ded2b9; margin-top: 28px; padding-top: 21px; }
.request-flow-actions .button { gap: 26px; border-radius: 6px; font: 500 16px/1.4 var(--sans); padding: 12px 22px; min-height: 50px; }
.request-back { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--navy); font-size: 14px; }
.request-required { margin-right: auto; font-size: 10px; color: #777872; }
.request-wizard .request-status { margin: 12px 0 0; font-size: 13px !important; line-height: 1.65; min-height: 0; }
.request-status:empty { margin: 0; }
.request-email-fallback { margin-top: 10px; font-size: 14px; }
.request-wizard[aria-busy="true"] .request-continue { opacity: .75; cursor: wait; }
.request-success { padding: 45px 5px; text-align: center; }
.request-success-check { display: flex; align-items: center; justify-content: center; width: 62px; height: 62px; margin: 0 auto 25px; border-radius: 50%; background: #e4eddf; color: #366a3b; font-size: 30px; }
.request-success .eyebrow { color: #56714a; margin-bottom: 12px; }
.request-success h3 { font-size: 44px; margin: 0 0 14px; }
.request-success > p:not(.eyebrow) { max-width: 40ch; margin: 0 auto 25px; }
.contact-form-card .request-progress { padding-top: 0; }
.contact-form-card { border-radius: 12px; box-shadow: 0 12px 44px #072d4b08; }
.contact-form-card > h2 { font-size: clamp(35px, 3.8vw, 44px); }

@media (max-width: 600px) {
  .request-dialog-heading { padding: 27px 22px 23px; }
  .request-dialog-heading > p:last-child { max-width: 27ch; font-size: 12px; }
  .request-dialog-shell > .request-panel { padding: 0 20px 20px; }
  .request-progress { padding-top: 16px; margin-bottom: 23px; }
  .request-progress ol { gap: 7px; margin-bottom: 12px; }
  .request-progress button { gap: 7px; flex-direction: column; align-items: flex-start; justify-content: flex-start; min-height: 48px; font-size: 11px; }
  .request-progress-dot { flex-basis: 7px; width: 7px; height: 7px; }
  .request-step h3 { font-size: 34px; margin-bottom: 20px; }
  .request-service-options { gap: 8px; }
  .request-service-options > button { min-height: 115px; padding: 13px 5px 10px; gap: 9px; font-size: 11px; }
  .request-service-options .equipment-icon { width: 52px; height: 52px; flex-basis: 52px; }
  .request-service-tick { width: 16px; height: 16px; top: 5px; right: 5px; font-size: 10px; }
  .request-wizard .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .request-schedule { padding-inline: 13px; }
  .request-date-options { gap: 6px; }
  .request-date-options button { padding-inline: 10px; font-size: 12px; }
  .request-flow-actions { gap: 13px; flex-wrap: wrap; margin-top: 24px; }
  .request-required { flex-basis: 100%; order: -1; }
  .request-flow-actions .request-continue { margin-left: auto; min-width: 155px; }
  .request-progress-track > span { transition-duration: .15s; }
}

@media (prefers-reduced-motion: reduce) {
  .request-progress-track > span, .request-service-options > button { transition: none; }
  .request-service-options > button:hover { transform: none; }
}

.request-field-label { display: flex; justify-content: space-between; gap: 10px; margin: 18px 0 7px; font-size: 13px; font-weight: 600; color: var(--navy); }
.request-field-label .request-optional { font-size: 11px; font-weight: 400; color: #777b7a; }

.request-address-help,
.request-address-status {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: #61686b;
}
.request-address-status { color: var(--navy); }
.request-address-status:empty { margin: 0; }
.request-address-matches {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  border: 1px solid #d7cdb6;
  border-radius: 7px;
  background: #fffefa;
}
.request-address-matches li + li { border-top: 1px solid #e5ded1; }
.request-address-matches button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 14px;
  text-align: left;
}
.request-address-matches button:hover,
.request-address-matches button:focus-visible { background: #f7edda; }
