/* Quote journey: readable controls and a persistent mobile action. */
.ohm-site-header #mobile-menu-btn, .ohm-site-header #mobile-menu-button { min-width:48px; min-height:48px; }
.ohm-site-header #mobile-menu { max-height:calc(100vh - 100px); max-height:calc(100dvh - 100px); overflow-y:auto; overscroll-behavior:contain; }
.ohm-site-header #mobile-menu a { display:flex; align-items:center; min-height:48px; }
.ohm-site-header .group:focus-within > .invisible { visibility:visible; opacity:1; }
footer a { overflow-wrap:anywhere; }
@media (pointer:coarse) {
 .ohm-site-header .xl\:flex { display:none; }
 .ohm-site-header #mobile-menu-btn, .ohm-site-header #mobile-menu-button { display:block; }
 .ohm-site-header #mobile-menu:not(.hidden) { display:block; }
}
.quote-intro { padding-block: 2.5rem; }
.quote-intro h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
.quote-intro .inline-flex { display: none; }
.quote-card { grid-column: 1; grid-row: 1; background: #fff; padding: 2rem; border: 1px solid #dbe4ee; border-radius: 1rem; box-shadow: 0 12px 32px #102a4310; min-width: 0; }
.quote-contact-info { grid-column: 2; grid-row: 1; }
.quote-layout { align-items: start; }
.quote-card input:not([type=radio]), .quote-card select, .quote-card textarea { font-size: 1rem; min-height: 48px; }
.quote-card [hidden] { display: none !important; }
.reply-choice legend { font-weight: 600; margin-bottom: .5rem; }
.reply-choice label { display: inline-flex; align-items: center; gap: .75rem; min-height: 48px; padding: .5rem 1rem; margin-right: .5rem; border: 1px solid #b6c6d6; border-radius: .5rem; cursor: pointer; }
.reply-choice label:has(:checked) { border-color: #164e87; background: #edf5ff; }
.reply-choice input { accent-color: #164e87; width: 20px; height: 20px; }
#contact-form { scroll-margin-top: 100px; }
.mobile-quote-bar { display: none; }
@media (max-width: 767px) {
 body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
 .quote-intro { padding-block: 1.5rem; }
 .quote-intro p { font-size: 1rem; }
 .quote-layout.quote-layout { display: flex; flex-direction: column; gap: 2rem; }
 .quote-card { order: -1; width: 100%; padding: 1.25rem; }
 .quote-card h2 { font-size: 1.5rem; margin-bottom: 1rem; }
 .mobile-quote-bar { position: fixed; inset: auto 0 0; display: grid; grid-template-columns: 1fr 2fr; gap: .75rem; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #dbe4ee; z-index: 1000; box-shadow: 0 -4px 20px #102a4315; }
 .mobile-quote-bar a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: .5rem; font: 600 1rem/1.3 system-ui, sans-serif; color: #164e87; border: 1px solid #164e87; }
 .mobile-quote-bar a:last-child { background: #c94709; color: white; border-color: #c94709; }
 #stickyCTA { display: none !important; }
}

.service-question-panel { margin-block: 1rem; padding: 1rem; background: #f2f7fc; border: 1px solid #b5c7dc; border-radius: .75rem; min-width: 0; }
.service-question-panel > legend { font-size: 1.125rem; font-weight: 700; padding-inline: .25rem; }
.service-question-help { font-size: .875rem; line-height: 1.5; color: #475569; margin-bottom: 1rem; }
.service-question { margin-block: 1.25rem; min-width: 0; }
.service-question > legend { font-weight: 600; margin-bottom: .5rem; }
.service-question-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.service-answer { display: flex; align-items: center; gap: .6rem; min-height: 48px; max-width: 100%; padding: .6rem .75rem; background: white; border: 1px solid #767676; border-radius: .5rem; cursor: pointer; line-height: 1.4; }
.service-answer:has(:checked) { background: #deedff; border-color: #164e87; }
.quote-card .service-answer input { width: 20px; height: 20px; min-height: 20px; flex-shrink: 0; accent-color: #164e87; }
.service-question input[type=file] { max-width: 100%; font-size: 1rem; }
.service-question input:focus-visible { outline: 3px solid #0b57d0; outline-offset: 3px; }

/* Four-step enquiry: quiet colour, illustrated choices and clear progress. */
.wizard-layout.wizard-layout { grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr); gap: 2.5rem; }
.quote-wizard-card { border-radius: 1.5rem; padding: 2rem; box-shadow: 0 16px 60px #173c7010; }
.quote-wizard-card > h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; color: #52657c; margin-bottom: 1.5rem; }
.quote-wizard-page .quote-intro { background: #eef4fc; color: #15375e; }
.quote-wizard-page .quote-intro > .absolute { display: none; }
.quote-wizard-page .quote-intro p { color: #52657c; }
.quote-wizard-page .quote-intro h1 { text-shadow: none; font-size: clamp(2rem,4vw,3rem); }
.quote-wizard-page .quote-contact-info { background: #f4f7fb; padding: 1.5rem; border-radius: 1.5rem; }
.quote-wizard-page .quote-contact-info h2 { font-size: 1.4rem; }
.quote-wizard [hidden] { display: none !important; }
.wizard-progress { margin-bottom: 1.5rem; }
.wizard-progress ol { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); list-style: none; padding: 0; margin: 0; }
.wizard-progress li { position: relative; text-align: center; }
.wizard-progress li:not(:last-child)::after { content: ''; height: 2px; position: absolute; inset: 22px -50% auto 50%; background: #dce5ef; z-index: 0; }
.wizard-progress button { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .6rem; width: 100%; min-height: 72px; font-size: .875rem; font-weight: 600; color: #64748b; background: transparent; }
.step-circle { width: 44px; height: 44px; border: 2px solid #dce5ef; border-radius: 50%; background: white; display: grid; place-items: center; font-size: 1rem; }
.wizard-progress [aria-current=step] { color: #15375e; }
.wizard-progress [aria-current=step] .step-circle { background: #15375e; border-color: #15375e; color: white; box-shadow: 0 0 0 5px #edf3fc; }
.wizard-progress .is-complete .step-circle { background: #e2f3ed; border-color: #aacdbf; color: #255b48; }
.wizard-progress button:disabled { cursor: default; }
.wizard-progress button:focus-visible { outline: 3px solid #0b57d0; outline-offset: 3px; border-radius: .75rem; }
.wizard-step-status { font-size: .875rem; color: #516780; margin-bottom: 1.75rem; }
.wizard-eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; font-weight: 700; color: #52657c; margin-bottom: .5rem; }
.quote-wizard h3 { font-size: clamp(1.65rem,3vw,2.1rem); font-weight: 750; line-height: 1.2; color: #15375e; margin-bottom: 1rem; scroll-margin-top: 130px; }
.quote-wizard h3:focus { outline: none; }
.wizard-description { color: #52657c; line-height: 1.6; margin-bottom: 1.5rem; }
.quote-wizard section > div, .quote-wizard section > fieldset { margin-bottom: 1.5rem; }
.category-legend { font-weight: 600; margin-bottom: .75rem; color: #243b53; }
.category-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; }
.category-card, .quote-wizard .service-answer { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .65rem; min-height: 132px; padding: 1rem .65rem; text-align: center; border: 1.5px solid #d4dfea; border-radius: 1rem; background: #f8fafd; color: #233b55; cursor: pointer; transition: border-color .15s, background-color .15s; }
.category-card:nth-child(3n+2) { background: #f2f8f5; }
.category-card:nth-child(3n) { background: #fcf5ef; }
.category-card:hover, .quote-wizard .service-answer:hover { border-color: #708da9; }
.category-card:has(:checked), .quote-wizard .service-answer:has(:checked) { border: 2px solid #245b88; background: #edf5ff; padding: calc(1rem - .5px) calc(.65rem - .5px); }
.category-card:focus-within, .quote-wizard .service-answer:focus-within { outline: 3px solid #0b57d0; outline-offset: 3px; }
.quote-card .category-card input, .quote-card .service-answer input { position: absolute; top: .6rem; right: .6rem; width: 18px; height: 18px; min-height: 18px; accent-color: #245b88; }
.choice-caption { font-size: .9rem; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.choice-art { display: grid; place-items: center; width: 62px; height: 62px; color: #427298; border-radius: 1rem; background: #e6effa; }
.choice-art svg { width: 48px; height: 48px; }
.art-house,.art-terrace,.art-room,.art-check { background: #e4f0e9; color: #527862; }
.art-boiler,.art-kitchen,.art-light { background: #faebdf; color: #a26743; }
.art-flat,.art-bath,.art-floor { background: #eeebf8; color: #77639b; }
.art-number { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.quote-wizard .service-question-panel { background: transparent; border: 0; padding: 0; margin-block: 1.5rem; }
.quote-wizard .service-question-panel > legend { font-size: 1.05rem; color: #15375e; padding: 0; }
.quote-wizard .service-question-help { margin-top: .6rem; }
.quote-wizard .service-question { margin-block: 1.5rem; }
.quote-wizard .service-question > legend { font-size: 1rem; margin-bottom: .75rem; }
.quote-wizard .service-question-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; }
.quote-wizard input:not([type=radio]):not([type=checkbox]):not([type=hidden]), .quote-wizard select, .quote-wizard textarea { border-color: #8da2b8; border-radius: .75rem; width: 100%; padding: .85rem; font-size: 1rem; }
.quote-wizard .reply-choice { margin-top: 1.5rem; }
.wizard-fee-note { padding: 1rem 1.1rem; border-radius: .9rem; background: #fdf5eb; border: 1px solid #eed9bd; color: #665035; font-size: .875rem; line-height: 1.6; margin-block: 1.5rem; }
.wizard-fee-note strong { display: block; color: #513d28; margin-bottom: .25rem; }
.wizard-actions { display: flex; gap: .75rem; position: sticky; bottom: 0; z-index: 20; padding-block: 1rem; background: white; border-top: 1px solid #e3eaf2; margin-top: 1.5rem; }
.wizard-actions button { min-height: 52px; padding: .8rem 1.5rem; border-radius: .8rem; font-weight: 650; font-size: 1rem; }
.wizard-next,.wizard-send { margin-left: auto; flex: 1; max-width: 320px; background: #15375e; color: white; border: 1px solid #15375e; }
.wizard-send { background: #b94715; border-color: #b94715; }
.wizard-back { background: white; color: #15375e; border: 1px solid #8da2b8; }
.wizard-actions button:focus-visible,.review-edit:focus-visible { outline: 3px solid #0b57d0; outline-offset: 3px; }
.wizard-actions button:disabled { opacity: .65; cursor: wait; }
.wizard-review { background: #f3f7fc; border: 1px solid #dce5ef; border-radius: 1rem; padding: 1.25rem; margin-top: 2rem; }
.wizard-review h4 { color: #15375e; font-size: 1.125rem; font-weight: 700; margin-bottom: .75rem; }
.review-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; border-top: 1px solid #dce5ef; }
.review-row dt { font-size: .8rem; font-weight: 650; color: #52657c; margin-bottom: .2rem; }
.review-row dd { font-size: .95rem; color: #233b55; overflow-wrap: anywhere; white-space: pre-wrap; }
.review-row > div { min-width: 0; }
.review-edit { color: #164e87; text-decoration: underline; min-height: 48px; min-width: 48px; font-weight: 600; }
@media (max-width: 767px) {
 .quote-wizard-page .mobile-quote-bar { display: none; }
 .quote-wizard-page { padding-bottom: env(safe-area-inset-bottom); }
 .quote-wizard-card { padding: 1.25rem; border-radius: 1.25rem; }
 .quote-wizard-card > h2 { font-size: .8rem; }
 .category-grid,.quote-wizard .service-question-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .category-card,.quote-wizard .service-answer { min-height: 128px; }
 .wizard-progress button { font-size: .75rem; gap: .5rem; }
 .wizard-progress { margin-inline: -.4rem; }
 .wizard-step-status { margin-bottom: 1.25rem; }
 .wizard-actions { margin-inline: -.5rem; padding-inline: .5rem; padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
 .wizard-actions button { padding-inline: 1.1rem; }
 .quote-wizard .grid { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
 .category-card,.quote-wizard .service-answer { transition: none; }
}

.quote-wizard { scroll-margin-top: 130px !important; }
.quote-wizard #service-question-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Tablets and split view: give the enquiry the available width, then adapt cards locally. */
.quote-wizard { container: quote-form / inline-size; }
.quote-wizard-page .quote-contact-info { min-width: 0; }
.quote-wizard-page .quote-contact-info a { overflow-wrap: anywhere; }
.quote-wizard-page #mobile-menu-btn { min-width: 48px; min-height: 48px; display: grid; place-items: center; flex-shrink: 0; }
.quote-wizard-page #mobile-menu { max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain; }
.quote-wizard-page #mobile-menu a { min-height: 48px; display: flex; align-items: center; }
.quote-wizard-page .quote-desktop-nav .group:focus-within > .absolute { visibility: visible; opacity: 1; transform: translateY(0); }
.review-row > dl { min-width: 0; }
html:has(.quote-wizard-page) { scroll-padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1280px) and (pointer: fine) {
 .quote-wizard-page #mobile-menu-btn { display: none; }
}
@media (pointer: coarse) {
 .quote-wizard-page .quote-desktop-nav { display: none; }
 .quote-wizard-page #mobile-menu:not(.hidden) { display: block; }
 .wizard-actions { padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 768px) and (max-width: 1199px) {
 .wizard-layout.wizard-layout { grid-template-columns: minmax(0,1fr); gap: 2rem; }
 .wizard-layout .quote-contact-info { grid-column: 1; grid-row: 2; }
 .wizard-layout .quote-wizard-card { width: 100%; }
}
@container quote-form (max-width: 32rem) {
 .category-grid,.quote-wizard .service-question-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .quote-wizard .grid { grid-template-columns: minmax(0,1fr); }
}
/* Leave more room to type in landscape or a reduced-height keyboard viewport. */
@media (max-height: 560px) {
 .quote-wizard-page .wizard-actions { position: static; }
}

.quote-wizard-page footer a { overflow-wrap: anywhere; }
.category-card:last-child { grid-column: 1 / -1; min-height: 76px; flex-direction: row; gap: 1rem; }
.category-card:last-child .choice-art { width: 44px; height: 44px; }
.category-card:last-child .choice-art svg { width: 34px; height: 34px; }
.art-plumbing { background: #e2f1f4; color: #4d7b87; }

/* Visual job choices retain native radio semantics and the existing service values. */
.job-choices { min-width:0; margin-top:2rem; padding-top:1.5rem; border-top:1px solid #dce5ef; }
.job-choices > legend { padding-top:1rem; font-size:1.1rem; }
.job-group-title { color:#52657c; font-size:.875rem; font-weight:650; margin:1.25rem 0 .65rem; }
.job-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; }
.job-card { position:relative; display:flex; align-items:center; gap:.85rem; min-height:100px; padding:1rem 2rem 1rem .9rem; border:1.5px solid #c2cfdd; border-radius:1rem; background:#f8fafd; cursor:pointer; color:#233b55; }
.job-card:hover { border-color:#708da9; }
.job-card:has(:checked) { background:#edf5ff; border-color:#245b88; box-shadow:inset 0 0 0 1px #245b88; }
.job-card:focus-within { outline:3px solid #0b57d0; outline-offset:3px; }
.job-selected-tick { display:none; }
.job-card:has(:checked) .job-selected-tick { display:block; position:absolute; right:.55rem; bottom:.4rem; color:#245b88; font-weight:750; }
.quote-card .job-card input { position:absolute; top:.65rem; right:.65rem; width:18px; height:18px; min-height:18px; accent-color:#245b88; }
.job-card .choice-art { width:48px; height:48px; flex-shrink:0; border-radius:.8rem; }
.job-card .choice-art svg { width:36px; height:36px; }
.job-card .choice-caption { font-size:1rem; overflow-wrap:normal; }
.job-choice-error { color:#a12525; border-left:3px solid currentColor; padding:.5rem .75rem; margin-block:1rem; }
.wizard-selection { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.6rem 1rem; border:1px solid #c9d9e8; border-radius:.8rem; background:#f3f7fc; margin-bottom:1.5rem; font-size:.9rem; color:#233b55; }
.wizard-selection span { min-width:0; overflow-wrap:anywhere; }
.art-cabinet,.art-worktop,.art-plan { background:#e4f0e9; color:#527862; }
.art-certificate,.art-charger,.art-shower { background:#eeebf8; color:#77639b; }
@container quote-form (max-width: 27rem) { .job-grid { grid-template-columns:minmax(0,1fr); } .job-card { min-height:88px; } }
@media (max-width: 479px) { .job-grid { grid-template-columns:minmax(0,1fr); } .wizard-actions button { padding-inline:.75rem; } }
@supports not (accent-color: #245b88) {
 .quote-card .job-card input { clip-path:inset(50%); overflow:hidden; width:1px; height:1px; min-height:1px; margin:-1px; padding:0; border:0; white-space:nowrap; }
 .job-card input + span::before { content:''; position:absolute; right:.65rem; top:.65rem; width:18px; height:18px; border:2px solid #767676; border-radius:4px; background:white; }
 .job-card input:checked + span::before { background:#245b88; box-shadow:inset 0 0 0 3px white; }
}

.job-selection-count { font-size:.95rem; line-height:1.6; color:#15375e; padding:.8rem 1rem; background:#edf5ff; border-radius:.8rem; margin-block:1rem; overflow-wrap:anywhere; }

.home-reviews { padding:4rem 1.25rem; background:#15375e; color:white; scroll-margin-top:100px; }
.home-reviews-inner { max-width:1120px; margin-inline:auto; text-align:center; }
.home-reviews-eyebrow { color:#c5d9ef; text-transform:uppercase; letter-spacing:.1em; font-size:.85rem; font-weight:650; margin-bottom:.75rem; }
.home-reviews h2 { font-size:clamp(2rem,4vw,2.8rem); line-height:1.2; font-weight:750; margin-bottom:1rem; }
.home-reviews-intro { max-width:650px; margin:0 auto 2rem; color:#d6e5f5; font-size:1.1rem; }
.home-review-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.home-review-card { padding:1.75rem 1.25rem; background:#23466f; border:1px solid #547496; border-radius:1.25rem; }
.home-review-featured { background:#fff; color:#15375e; border-color:#fff; }
.home-review-card h3 { font-size:1.2rem; font-weight:700; margin-bottom:1rem; }
.home-review-rating { font-size:3rem; line-height:1.2; font-weight:750; margin-bottom:.5rem; }
.home-review-date { margin-top:.6rem; font-size:.875rem; }
.home-review-card a { display:inline-flex; align-items:center; justify-content:center; min-height:48px; margin-top:1rem; padding:.5rem .75rem; color:inherit; font-weight:650; text-decoration:underline; text-underline-offset:4px; }
.home-review-note { margin:1.5rem auto; max-width:720px; color:#d6e5f5; font-size:.9rem; }
.home-review-quote { display:inline-flex; min-height:48px; align-items:center; justify-content:center; background:#fff; color:#15375e; padding:.75rem 1.5rem; border-radius:.75rem; font-weight:650; }
.home-reviews a:focus-visible { outline:3px solid #fbbf24; outline-offset:4px; }
@media(max-width:700px) { .home-review-grid { grid-template-columns:minmax(0,1fr); } }

/* The homepage uses the same wizard and controls as the contact page. */
.home-quote { scroll-margin-top: 7rem; width: 100%; color: #172b43; position: relative; z-index: 1; }
@media (max-width: 420px) { .home-quote { padding: 1rem; } }
