/* Shared quick quote form — posts to the configured PHP backend */
.quote-panel{margin-top:16px;padding:20px;background:#fff;border:1px solid #e4e9ef;border-radius:18px;box-shadow:0 12px 30px rgba(16,32,56,.09);text-align:left;width:100%;max-width:550px;margin-left:auto;margin-right:auto}
.quote-heading{display:flex;align-items:flex-start;gap:11px;margin-bottom:17px;text-align:left}
.quote-icon{display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;border-radius:10px;background:#fff9c4;color:var(--primary-color,#ffd300);font-size:21px}
.quote-heading h2{font-size:20px;line-height:1.2;margin:0 0 5px;color:var(--ink,#172438);font-weight:800}
.quote-heading p{font-size:13px;line-height:1.45;margin:0;color:var(--muted,#64748b)}
.quote-fields{display:grid;gap:12px}.quote-trap{position:absolute!important;left:-9999px!important;height:1px!important;overflow:hidden!important}
.quote-row label,.quote-urgency legend{display:block;margin-bottom:6px;font-size:13px;font-weight:700;color:#243247}
.quote-row label span{color:var(--primary-color,#ffd300)}
.quote-row input{display:block;width:100%;height:46px;border:1px solid #cdd6e2;border-radius:10px;background:#fff;padding:11px 13px;font:inherit;font-size:15px;color:#152335;box-sizing:border-box;outline:none;transition:border-color .2s,box-shadow .2s}
.quote-row input:focus{border-color:var(--primary-color,#ffd300);box-shadow:0 0 0 3px rgba(234,42,42,.11)}
.quote-row input::placeholder{color:#8793a3}
.quote-urgency{border:0;margin:0;padding:0;min-width:0}
.quote-chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.quote-chips label{position:relative;cursor:pointer;min-width:0}
.quote-chips input{position:absolute;opacity:0;width:1px;height:1px}
.quote-chips span{display:block;text-align:center;padding:10px 5px;border:1px solid #d9e0e9;border-radius:9px;background:#f7f9fc;font-size:13px;font-weight:700;color:#37465b;transition:all .15s}
.quote-chips input:checked+span{background:#fff9c4;border-color:var(--primary-color,#ffd300);color:#554800}
.quote-chips input:focus-visible+span{outline:3px solid #253c5e;outline-offset:2px}
.quote-submit{width:100%;min-height:49px;border:0;border-radius:11px;background:var(--primary-color,#ffd300);color:#fff;font:inherit;font-weight:800;font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px}
.quote-submit:hover{filter:brightness(.95)}
.quote-note{font-size:11px!important;line-height:1.5;color:#718095!important;text-align:center!important;margin:0!important}
.quote-feedback{font-size:12px;color:#53657a;margin:0!important;text-align:center}
.quote-phone-error{display:block;margin-top:5px;font-size:12px;line-height:1.4;color:#c62828;font-weight:600}.quote-row input[aria-invalid="true"]{border-color:#c62828;box-shadow:0 0 0 2px rgba(198,40,40,.09)}
@media(max-width:620px){.hero-copy .quote-panel{order:9}.hero-copy .micro{order:10}.quote-panel{padding:16px;border-radius:15px;margin-top:12px}.quote-heading h2{font-size:19px}.quote-fields{gap:11px}.quote-row input{font-size:16px}}


/* Expandable quote form: closed by default; smooth accessible vertical reveal */
.quote-expand{width:100%;max-width:550px;margin:14px auto 0;text-align:left}
.quote-toggle{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:53px;padding:12px 18px;border:2px solid var(--primary-color,#ffd300);background:#fff;color:var(--primary-color,#ffd300);border-radius:12px;font:inherit;font-size:16px;font-weight:800;cursor:pointer;transition:background .2s,color .2s,box-shadow .2s}
.quote-toggle:hover{background:#fff9c4;box-shadow:0 5px 14px rgba(0,0,0,.07)}
.quote-toggle:focus-visible{outline:3px solid #21385b;outline-offset:3px}
.quote-toggle-icon{width:21px;height:21px;flex-shrink:0;display:block}

.quote-slide{display:grid;grid-template-rows:0fr;opacity:0;visibility:hidden;transition:grid-template-rows .35s ease,opacity .3s ease,visibility .35s}
.quote-slide.is-open{grid-template-rows:1fr;opacity:1;visibility:visible}
.quote-slide-inner{min-height:0;overflow:hidden}
.quote-expand .quote-panel{margin-top:12px}
@media(max-width:620px){.hero-copy .quote-expand{order:9}.hero-copy .micro{order:10}.quote-expand{margin-top:12px}.quote-toggle{min-height:51px;font-size:15px}}
@media(prefers-reduced-motion:reduce){.quote-slide{transition:none}}


/* Successful enquiry confirmation replaces the form */
.quote-success{display:none;position:relative;text-align:center;padding:38px 18px 26px;align-items:center;flex-direction:column;gap:10px}
.quote-success.is-visible{display:flex}
.quote-success-close{position:absolute;right:8px;top:8px;border:0;background:transparent;color:#64748b;font-size:28px;line-height:1;width:38px;height:38px;display:grid;place-items:center;border-radius:10px;cursor:pointer}
.quote-success-close:hover,.quote-success-close:focus-visible{background:#eef2f6;color:#172b43}
.quote-success-close:focus-visible{outline:2px solid #145ab5;outline-offset:2px}
.quote-success-mark{width:70px;height:70px;border-radius:50%;background:#e5f7eb;display:grid;place-items:center;color:#148344;margin-bottom:5px}
.quote-success-mark svg{width:40px;height:40px;stroke:currentColor;stroke-width:3;fill:none;stroke-linecap:round;stroke-linejoin:round}
.quote-success h2{font-size:24px;color:#17324b;margin:0;line-height:1.25}
.quote-success p{color:#475569;font-size:16px;line-height:1.5;margin:0}
.quote-success small{font-size:12px;color:#64748b}

/* Quote form is strictly mobile-only; desktop hero remains unchanged. */
@media(min-width:901px){.quote-expand{display:none!important}}
@media(max-width:900px){.hero-copy .quote-expand{order:9;width:100%;max-width:550px;margin:12px auto 0}}

/* Match MM2 hero placement and gold branding. */
.quote-expand,.quote-expand *{box-sizing:border-box}.quote-expand{grid-column:1 / -1;--ink:#172438;--muted:#64748b}.quote-toggle{color:#272100}.quote-submit{color:#111}.quote-row label span{color:#806b00}

/* Keep the quote trigger the same width as the existing hero call button. */
.hero .quote-toggle{max-width:100%;margin-left:auto;margin-right:auto}

/* MM2 layout: keep contact actions in their existing order. */
.quote-expand{flex:0 0 auto;max-width:100%;--ink:#111827;--muted:#4b5563}
.quote-expand .quote-panel{box-sizing:border-box}
.quote-expand .quote-heading h2{font-size:20px;line-height:1.25;letter-spacing:normal;text-align:left;margin:0 0 5px}
.quote-expand .quote-heading p{font-size:13px;text-align:left;margin:0;line-height:1.45}
.quote-expand .quote-success h2{font-size:24px;text-align:center;letter-spacing:normal;margin:0}
.quote-expand .quote-success p{font-size:16px;text-align:center;margin:0}
@media(max-width:900px){
 #hero-call-btn,.hero .actions{flex-wrap:wrap}
 .quote-expand{margin:0;width:100%;order:initial}
 .quote-toggle{border-color:#ffd300;background:#fff;color:#111827;max-width:100%}
 .quote-submit{background:#ffd300;color:#111827}
 .quote-panel{max-width:550px}
}
