/* =========================================================
   MATRIX PROPERTIES LTD — Request a Service + Confirmation
   Builds on styles.css, pages.css, details.css, services.css
   ========================================================= */

/* ---------- Request page layout ---------- */
.rq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 20px; align-items: start; padding-top: 14px; padding-bottom: 18px; }
.rq-main .crumbs { margin-bottom: 16px; }
.page-request .sd-back { display: none; }
.rq-title { font-size: clamp(32px, 3.1vw, 46px); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.rq-sub { font-size: clamp(17px, 1.6vw, 23px); font-weight: 300; color: #2b3d7d; margin-top: 8px; }

.rq-form {
  margin-top: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  box-shadow: 0 6px 24px rgba(15, 35, 95, .05); padding: 14px 18px 12px 16px;
}
.rq-step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 26px; padding: 0 0 16px; }
.rq-step + .rq-step { border-top: 1px solid var(--line); padding-top: 18px; }
.rq-step__n {
  width: 48px; height: 48px; border-radius: 50%; background: #e6effb;
  display: grid; place-items: center; font-size: 22px; font-weight: 600; color: var(--blue);
}
.rq-step h2 { font-size: 22px; font-weight: 600; margin-top: 6px; }
.rq-step__sub { font-size: 15.5px; color: var(--muted); margin: 4px 0 12px; }
.rq-step__body { padding-right: 4px; }

.rq-select {
  position: relative; display: flex; align-items: center; height: 46px;
  border: 1px solid #cfd6e2; border-radius: 4px; background: #fff;
}
.rq-select:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 95, 208, .12); }
.rq-select__icon { position: absolute; left: 16px; width: 26px; height: 26px; color: var(--blue); pointer-events: none; }
.rq-select select {
  appearance: none; -webkit-appearance: none; width: 100%; height: 100%; border: 0; background: transparent; outline: none;
  font: inherit; font-size: 16px; font-weight: 600; color: var(--navy); padding: 0 44px 0 60px; cursor: pointer;
}
.rq-select__chev { position: absolute; right: 18px; width: 18px; height: 18px; color: var(--blue); pointer-events: none; }
.rq-help { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--navy); margin-top: 10px; }
.rq-help svg { width: 21px; height: 21px; color: var(--blue); }
.rq-help button {
  border: 0; background: none; padding: 0; font: inherit; color: var(--blue); font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

.rq-form .vfield { margin-bottom: 12px; }
.rq-form .vfield__label { font-size: 15px; font-weight: 400; margin-bottom: 6px; }
.rq-form .vfield__label em { color: var(--navy); font-size: 15px; }
.rq-form .vfield input { height: 34px; padding: 4px 12px; font-size: 14.5px; }
.rq-form .vfield textarea { min-height: 82px; padding: 8px 12px; font-size: 14.5px; }
.rq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }

.rq-radios { border: 0; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; }
.rq-radios legend { float: left; width: 100%; padding: 0; }
.radio { display: inline-flex; align-items: center; gap: 12px; font-size: 15.5px; color: var(--navy); cursor: pointer; }
.radio { position: relative; }
.rq-form .radio input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.radio span { width: 24px; height: 24px; border-radius: 50%; border: 1.6px solid #7f8aa0; display: grid; place-items: center; transition: border-color .15s; }
.radio input:checked + span { border-color: var(--blue); border-width: 2px; }
.radio input:checked + span::after { content: ""; width: 13px; height: 13px; border-radius: 50%; background: var(--blue); }
.radio input:focus-visible + span { box-shadow: 0 0 0 3px rgba(11, 95, 208, .2); }
.rq-radios.is-invalid .vfield__error { display: block; width: 100%; }

.rq-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 4px 0 0 6px; }
.rq-privacy { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
.rq-privacy svg { width: 18px; height: 18px; color: var(--navy); flex-shrink: 0; }
.rq-privacy a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.rq-submit { height: 42px; padding: 0 22px; font-size: 16.5px; gap: 18px; min-width: 292px; }
.rq-submit .ico--lg { width: 22px; height: 22px; }

/* ---------- What happens next (shared) ---------- */
.nextsteps { background: linear-gradient(180deg, #edf3fd, #e6eefb); border: 1px solid #e0e9f8; border-radius: 8px; padding: 24px 24px 22px; }
.nextsteps h2 { font-size: 30px; font-weight: 700; letter-spacing: -.015em; }
.nextsteps__sub { font-size: 17px; color: var(--muted); margin-top: 4px; }
.nextsteps ol { list-style: none; margin: 16px 0 0; padding: 0; }
.nextsteps li { position: relative; display: grid; grid-template-columns: 46px 46px minmax(0, 1fr); gap: 16px; padding-bottom: 22px; }
.nextsteps li:last-child { padding-bottom: 0; }
.nextsteps li:not(:last-child)::before { content: ""; position: absolute; left: 22px; top: 50px; bottom: 4px; width: 2px; background: #6d9be0; }
.nextsteps__n, .nextsteps__icon {
  width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(15, 35, 95, .06);
}
.nextsteps__n { font-size: 22px; font-weight: 600; color: var(--blue); }
.nextsteps__icon svg { width: 24px; height: 24px; color: var(--blue); }
.nextsteps h3 { font-size: 16.5px; font-weight: 600; margin-top: 4px; }
.nextsteps p { font-size: 15px; color: var(--muted); margin-top: 4px; line-height: 1.4; }

.rq-aside { display: grid; gap: 14px; }

/* Prefer to speak to us */
.speak { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 20px 24px 18px; }
.speak h2 { font-size: 29px; font-weight: 700; letter-spacing: -.015em; }
.speak > p { font-size: 17px; color: var(--muted); margin-top: 6px; line-height: 1.3; }
.speak__row { display: flex; align-items: center; gap: 22px; margin-top: 14px; }
.speak__call { display: flex; align-items: center; gap: 14px; color: var(--navy); font-size: 15.5px; padding-right: 22px; border-right: 1px solid var(--line); }
.speak__call span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.speak__call b { font-weight: 500; }
.speak__call span:last-child { font-weight: 600; white-space: nowrap; }
.speak__bubble { width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.speak__bubble svg { width: 22px; height: 22px; }
.speak__call:hover .speak__bubble { background: var(--blue-dark); }
.speak__wa { display: flex; align-items: center; gap: 30px; }
.speak__wa-icon { width: 36px; height: 36px; color: var(--wa); }
.speak__wa .btn { padding: 10px 14px; font-size: 15.5px; gap: 10px; border-radius: 4px; }
.speak__loc { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 15px; color: var(--navy); }
.speak__loc svg { width: 20px; height: 20px; color: var(--blue); }

/* Brand card */
.brandcard { position: relative; overflow: hidden; background: #0f2273; border-radius: 8px; color: #fff; padding: 44px 24px 58px; min-height: 164px; }
.brandcard__bar { display: block; width: 72px; height: 5px; border-radius: 3px; background: var(--amber); margin-bottom: 18px; }
.brandcard p { position: relative; font-size: 24px; font-weight: 600; }
.brandcard__art { position: absolute; right: 18px; bottom: -6px; width: 132px; height: 142px; color: rgba(255, 255, 255, .35); }

/* ---------- Confirmation page ---------- */
.page-confirm { background: #f3f6fb; }
.page-confirm .header { background: #fff; }
.cf { padding-top: 14px; padding-bottom: 16px; }
.cf .crumbs { margin-bottom: 16px; }
.cf-card { background: #fff; border-radius: 10px; box-shadow: 0 6px 30px rgba(15, 35, 95, .07); padding: 22px 26px 16px; text-align: center; }
.cf-check { width: 82px; height: 82px; color: #1fa648; }
.cf-title { font-size: clamp(30px, 3.1vw, 46px); font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }
.cf-sub { font-size: clamp(17px, 1.7vw, 25px); font-weight: 300; color: var(--navy); margin-top: 6px; }
.cf-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 20px; text-align: left; }
.nextsteps--lg { padding: 22px 24px; }
.nextsteps--lg ol { margin-top: 20px; }
.nextsteps--lg li { padding-bottom: 30px; }
.nextsteps--lg h3 { font-size: 20px; }
.nextsteps--lg p { font-size: 17px; max-width: 330px; }

.summary { border: 1px solid var(--line); border-radius: 8px; padding: 18px 22px 10px; }
.summary__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.summary h2 { font-size: 28px; font-weight: 700; letter-spacing: -.015em; }
.summary__head p { font-size: 17px; color: var(--muted); margin-top: 2px; }
.summary__example { background: #e4eefc; color: var(--blue); font-size: 14.5px; font-weight: 500; padding: 5px 14px; border-radius: 20px; white-space: nowrap; }
.summary__example[hidden] { display: none; }
.summary__label { font-size: 16px; color: var(--navy); margin-top: 16px; }
.summary__ref {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px;
  background: #eef3fb; border: 1px solid #dfe7f4; border-radius: 6px; padding: 6px 8px 6px 18px;
}
.summary__ref strong { font-size: clamp(20px, 2vw, 28px); font-weight: 700; color: var(--navy); letter-spacing: .01em; }
.summary__copy {
  display: inline-flex; align-items: center; gap: 12px; border: 1px solid #dfe7f4; background: #fff; border-radius: 6px;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--blue); padding: 8px 16px; cursor: pointer; white-space: nowrap;
}
.summary__copy:hover { border-color: var(--blue); }
.summary__copy svg { width: 22px; height: 22px; }
.summary__keep { display: flex; align-items: center; gap: 14px; font-size: 15.5px; color: var(--muted); margin-top: 8px; padding-left: 4px; }
.summary__keep svg { width: 20px; height: 20px; color: var(--blue); }
.summary__rows { margin: 12px 0 0; border-top: 1px solid var(--line); }
.summary__rows div { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.summary__rows div:last-child { border-bottom: 0; }
.summary__rows dt { display: flex; align-items: center; gap: 22px; font-size: 16px; color: var(--muted); }
.summary__rows dd { margin: 0; font-size: 17px; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.summary__icon { width: 40px; height: 40px; border-radius: 50%; background: #eaf1fc; display: grid; place-items: center; flex-shrink: 0; }
.summary__icon svg { width: 21px; height: 21px; color: var(--blue); }
.status { display: inline-flex; align-items: center; gap: 10px; background: #fdecc4; color: #5b3d00; border-radius: 20px; padding: 6px 14px; font-size: 15.5px; font-weight: 600; }
.status svg { width: 19px; height: 19px; }

.cf-actions { display: flex; justify-content: center; gap: 18px; margin-top: 16px; }
.cf-actions .btn { min-width: 242px; height: 48px; font-size: 17px; gap: 14px; border-width: 1.5px; }

.addmore {
  display: flex; align-items: center; gap: 24px; margin-top: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 110px 12px 136px;
}
.addmore__icon { width: 64px; height: 56px; flex-shrink: 0; }
.addmore__text { margin-right: auto; padding-right: 30px; border-right: 1px solid var(--line); }
.addmore h2 { font-size: 21px; font-weight: 600; }
.addmore p { font-size: 17px; color: var(--muted); }
.addmore__call { margin-left: 20px; }
.addmore .speak__wa .btn { padding: 12px 18px; font-size: 17px; }

/* ---------- Tablet ---------- */
@media (max-width: 1180px) {
  .rq-layout { grid-template-columns: minmax(0, 1fr) 380px; }
  .speak__row { flex-wrap: wrap; }
  .speak__call { border-right: 0; padding-right: 0; }
  .addmore { padding: 12px 24px; flex-wrap: wrap; }
  .summary__rows div { grid-template-columns: 190px minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .rq-layout { grid-template-columns: minmax(0, 1fr); }
  .cf-cols { grid-template-columns: minmax(0, 1fr); }
  .addmore__text { border-right: 0; flex-basis: 60%; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  body.page-request, body.page-confirm { padding-bottom: 72px; }

  .rq-layout { padding-top: 10px; gap: 12px; }
  .rq-main .crumbs { display: none; }
  .page-request .sd-back { display: inline-flex; color: var(--navy); }
  .rq-title { font-size: clamp(22px, 6.6vw, 30px); letter-spacing: -.025em; }
  .rq-sub { font-size: 16px; margin-top: 4px; line-height: 1.3; }

  .rq-form { padding: 10px 12px 12px; margin-top: 12px; }
  .rq-step { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding-bottom: 10px; }
  .rq-step + .rq-step { padding-top: 12px; }
  .rq-step__n { width: 36px; height: 36px; font-size: 18px; margin-top: 2px; }
  .rq-step h2 { font-size: 18px; margin-top: 2px; }
  .rq-step__sub { font-size: 13px; margin: 2px 0 6px; }
  .rq-select { height: 42px; }
  .rq-select__icon { left: 10px; width: 22px; height: 22px; }
  .rq-select select { font-size: 14.5px; padding-left: 42px; padding-right: 36px; }
  .rq-select__chev { right: 12px; }
  .rq-help { font-size: 13.5px; gap: 10px; }
  .rq-help svg { width: 18px; height: 18px; }
  .rq-form .vfield { margin-bottom: 8px; }
  .rq-form .vfield__label, .rq-form .vfield__label em { font-size: 14px; margin-bottom: 4px; }
  .rq-form .vfield input { height: 40px; }
  .rq-form .vfield textarea { min-height: 64px; }
  .rq-grid { grid-template-columns: minmax(0, 1fr); }
  .rq-radios { gap: 6px 22px; }
  .radio { font-size: 14.5px; gap: 10px; }
  .radio span { width: 22px; height: 22px; }
  .radio input:checked + span::after { width: 12px; height: 12px; }
  .rq-foot { flex-direction: column; align-items: stretch; gap: 10px; padding: 0; }
  .rq-privacy { font-size: 12.5px; gap: 10px; }
  .rq-submit { width: 100%; min-width: 0; height: 46px; font-size: 16px; }

  .nextsteps { padding: 14px 16px 16px; }
  .nextsteps h2 { font-size: 22px; }
  .nextsteps__sub { font-size: 14px; }
  .nextsteps ol { margin-top: 10px; }
  .nextsteps li { grid-template-columns: 36px 36px minmax(0, 1fr); gap: 12px; padding-bottom: 12px; }
  .nextsteps li:not(:last-child)::before { left: 17px; top: 40px; }
  .nextsteps__n, .nextsteps__icon { width: 36px; height: 36px; }
  .nextsteps__n { font-size: 18px; }
  .nextsteps__icon svg { width: 19px; height: 19px; }
  .nextsteps h3 { font-size: 14.5px; margin-top: 0; }
  .nextsteps p { font-size: 13px; margin-top: 2px; }
  .speak, .brandcard { display: none; }

  /* Confirmation (mobile design) */
  .page-confirm { background: #fff; }
  body.page-confirm { padding-bottom: 0; }
  .page-confirm .actionbar { display: none; }
  .cf { padding-top: 8px; }
  .cf .crumbs { display: flex; font-size: 14px; margin-bottom: 2px; }
  .cf-card { background: none; box-shadow: none; padding: 0; border-radius: 0; }
  .cf-check { width: 46px; height: 46px; }
  .cf-title { font-size: clamp(21px, 6.4vw, 28px); line-height: 1.15; margin-top: 2px; letter-spacing: -.025em; }
  .cf-sub { font-size: 16px; color: #2b3d7d; line-height: 1.3; margin-top: 4px; padding: 0 10px; }
  .cf-cols { gap: 10px; margin-top: 12px; }
  .summary { padding: 12px 14px 4px; box-shadow: 0 4px 18px rgba(15, 35, 95, .05); }
  .summary h2 { font-size: 20px; }
  .summary__head p { font-size: 14px; }
  .summary__example { font-size: 12px; padding: 4px 10px; }
  .summary__label { font-size: 13px; margin-top: 10px; color: var(--muted); }
  .summary__ref { padding: 5px 5px 5px 10px; margin-top: 4px; gap: 6px; }
  .summary__ref strong { font-size: clamp(16px, 4.6vw, 20px); white-space: nowrap; }
  .summary__copy { font-size: 12.5px; padding: 6px 8px; gap: 6px; }
  .summary__copy svg { width: 17px; height: 17px; }
  .summary__keep { font-size: 13px; gap: 10px; margin-top: 6px; padding-left: 0; }
  .summary__keep svg { width: 18px; height: 18px; }
  .summary__rows { margin-top: 8px; }
  .summary__rows div { grid-template-columns: 158px minmax(0, 1fr); gap: 8px; padding: 6px 0; }
  .summary__rows dt { gap: 14px; font-size: 13.5px; white-space: nowrap; }
  .summary__rows dd { font-size: 14.5px; }
  .summary__icon { width: 32px; height: 32px; }
  .summary__icon svg { width: 17px; height: 17px; }
  .status { font-size: 13px; padding: 5px 12px; gap: 7px; }
  .status svg { width: 16px; height: 16px; }
  .nextsteps--lg { padding: 12px 14px 14px; }
  .nextsteps--lg h2 { font-size: 21px; }
  .nextsteps--lg .nextsteps__sub { font-size: 14px; }
  .nextsteps--lg h3 { font-size: 15px; }
  .nextsteps--lg p { font-size: 13.5px; }
  .nextsteps--lg li { padding-bottom: 14px; }
  .cf-actions { flex-direction: column; gap: 8px; margin-top: 8px; }
  .cf-actions .btn { min-width: 0; width: 100%; height: 42px; font-size: 16px; }

  .addmore {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0;
    padding: 10px 14px; margin-top: 10px; box-shadow: 0 4px 18px rgba(15, 35, 95, .05);
  }
  .addmore__icon { width: 44px; height: 38px; margin-right: 14px; }
  .addmore__text { flex: 1 1 calc(100% - 60px); padding: 0; border: 0; margin: 0; }
  .addmore h2 { font-size: 16px; }
  .addmore p { font-size: 13px; }
  .addmore__call, .addmore .speak__wa { display: flex; align-items: center; align-self: stretch; padding-top: 10px; border-top: 1px solid var(--line); }
  .addmore__call { flex: 1 1 auto; margin: 0; gap: 8px; font-size: 13.5px; padding-right: 8px; border-right: 0; }
  .addmore__call .speak__bubble { width: 36px; height: 36px; }
  .addmore__call .speak__bubble svg { width: 19px; height: 19px; }
  .addmore .speak__wa { flex: 0 0 auto; gap: 10px; padding-left: 12px; position: relative; }
  .addmore .speak__wa::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 4px; width: 1px; background: var(--line); }
  .addmore .speak__wa-icon { width: 30px; height: 30px; }
}
@media (max-width: 400px) {
  .addmore .speak__wa-icon { display: none; }
  .addmore .speak__wa .btn { padding: 8px 10px; font-size: 14px; gap: 6px; }
}

@media (max-width: 380px) {
  .summary__ref { flex-wrap: wrap; }
  .summary__rows div { grid-template-columns: 128px minmax(0, 1fr); }
  .summary__rows dt { white-space: normal; gap: 10px; }
  .addmore__call { flex-basis: 100%; padding-right: 0; }
  .addmore .speak__wa { flex: 1 1 100%; justify-content: flex-start; }
  .addmore .speak__wa { padding-left: 0; }
  .addmore .speak__wa::before { display: none; }
}

/* Shown on the confirmation page when the request could not be saved to the database */
.cf-unsaved { margin: 0 0 14px; padding: 10px 14px; border-left: 4px solid #d99a0b; background: #fff8e8; color: #4a3505; font-size: 14.5px; line-height: 1.45; }
