/* MMH Furniture Custom Cupboard Designer V0.58 Lead Flow Mock-up
   Scoped to .cupboard-designer so it can live safely inside the main site template. */
.cupboard-designer,
.cupboard-designer *{box-sizing:border-box}
.cupboard-designer{--text:#555;--muted:#888;--line:#d9d9d9;--panel:#f7f7f5;--accent:#1EAEDB;color:var(--text);font-family:"Raleway",sans-serif;font-weight:300;padding:1rem 0 3rem}
.cupboard-designer .intro{max-width:800px;margin-bottom:1.1rem}
.cupboard-designer h1,.cupboard-designer h2,.cupboard-designer h3,.cupboard-designer p{margin-top:0}
.cupboard-designer h1{font-size:clamp(1.9rem,4vw,3rem);line-height:1.08;font-weight:300;color:#667;letter-spacing:-.035em;margin-bottom:.8rem}
.cupboard-designer h2{font-size:1.25rem;font-weight:400;color:#667}
.cupboard-designer h3{font-size:1rem;font-weight:500;color:#667;margin:0 0 .65rem}
.cupboard-designer p{line-height:1.5}
.cupboard-designer .eyebrow{margin-bottom:.35rem;color:var(--muted);text-transform:uppercase;letter-spacing:.12em;font-size:.78rem}
.cupboard-designer .designer-grid{display:grid;grid-template-columns:minmax(235px,.27fr) minmax(0,.73fr);gap:1rem;align-items:start}
.cupboard-designer .controls-card,.cupboard-designer .drawing-card{border:1px solid var(--line);background:#fff;border-radius:4px;padding:1.1rem}
.cupboard-designer .controls-card{background:var(--panel)}
.cupboard-designer .controls-card label{display:block;margin-bottom:.72rem;font-size:.93rem}
.cupboard-designer .controls-card label>span{display:block;margin-bottom:.3rem}
.cupboard-designer .carcass-section{border-top:1px solid var(--line);padding-top:.82rem;margin-top:.82rem}
.cupboard-designer .carcass-section.hidden{display:none}
.cupboard-designer .input-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:.5rem}
.cupboard-designer input[type="number"],.cupboard-designer select{width:100%;padding:.62rem;border:1px solid #ccc;border-radius:2px;font:inherit;font-weight:300;color:var(--text);background:#fff}
.cupboard-designer select{-webkit-appearance:none;appearance:none;padding-right:2.1rem;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.25 6 6.25 11 1.25' fill='none' stroke='%23888' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .85rem center;background-size:12px 8px}
.cupboard-designer select:disabled{background-color:#f3f3f1;color:#999;opacity:1}
.cupboard-designer .price-card{margin:1.2rem 0 .9rem;padding:.9rem;background:#fff;border:1px solid var(--line)}
.cupboard-designer .price-card span,.cupboard-designer .price-card small{display:block}
.cupboard-designer .price-card strong{display:block;margin:.2rem 0 .4rem;font-size:1.8rem;font-weight:400;color:#667}
.cupboard-designer .price-card small,.cupboard-designer .fine-print,.cupboard-designer .drawing-note{font-size:.78rem;line-height:1.4;color:var(--muted)}
.cupboard-designer button{border:0;border-radius:6px;font:inherit;font-weight:400;cursor:pointer}
.cupboard-designer #resetButton{width:100%;padding:.75rem 1rem;margin:.05rem 0 .2rem;background:var(--accent);color:#fff;transition:transform .25s ease}
.cupboard-designer #resetButton:hover{transform:scale(1.01)}
.cupboard-designer .fine-print{margin:.85rem 0 0}
.cupboard-designer .drawing-heading{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin-bottom:.7rem}
.cupboard-designer .drawing-heading h2{margin-bottom:0}
.cupboard-designer .dimension-help{margin:0 0 .72rem;font-size:.78rem;line-height:1.4;color:var(--muted)}

/* Drawing split into two independent SVG viewports so each can zoom separately. */
.cupboard-designer .svg-wrap{width:100%;display:grid;gap:.75rem;min-height:0}
.cupboard-designer .drawing-view{border-top:1px solid var(--line);padding-top:.55rem;overflow:hidden}
.cupboard-designer .drawing-view:first-child{border-top:0;padding-top:0}
.cupboard-designer .drawing-view-toolbar{display:flex;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.2rem;color:#777;font-size:.78rem}
.cupboard-designer .drawing-view-toolbar .eyebrow{margin:0;color:#777;font-size:.78rem}
.cupboard-designer .zoom-control{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:4px;overflow:hidden;background:#fff}
.cupboard-designer .zoom-control button{width:auto;min-width:2rem;height:1.9rem;padding:0 .5rem;border-radius:0;background:#fff;color:#667;border-left:1px solid var(--line);line-height:1}
.cupboard-designer .zoom-control button:first-child{border-left:0}
.cupboard-designer .zoom-control button:hover{background:#f4f4f2}
.cupboard-designer .zoom-control button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.cupboard-designer .zoom-control .zoom-level{min-width:3.75rem;font-size:.75rem;font-variant-numeric:tabular-nums}
.cupboard-designer .drawing-view svg{display:block;width:100%;height:auto;overflow:hidden}
.cupboard-designer .drawing-view-iso svg{aspect-ratio:900/535}
.cupboard-designer .drawing-view-elevations svg{aspect-ratio:900/380}

@media(max-width:800px){
  .cupboard-designer .designer-grid{grid-template-columns:1fr}
  .cupboard-designer{padding-top:1rem}
}


/* V0.52: isometric and elevation SVGs may become taller as zoom increases so
   their top/bottom geometry stays visible. The inline aspect-ratio is calculated
   from the adaptive viewBox in JS; normal 100% presentation remains unchanged. */
.cupboard-designer .drawing-view-iso svg,
.cupboard-designer .drawing-view-elevations svg{min-height:0}


/* V0.53 presentation refinements:
   - custom select chevrons sit slightly inboard from the right edge
   - dimension-entry help sits below the carcass section divider
   - Isometric view label sits in the drawing toolbar below the dimensions */


/* V0.59 lead-generation page mock-up ------------------------------------- */
.cupboard-page-hero,
.cupboard-enquiry,
.cupboard-process,
.cupboard-bespoke-route{font-family:"Raleway",sans-serif;color:#555}

.cupboard-page-hero{padding:.18rem 0 .8rem;width:100%;max-width:none;border-bottom:1px solid #d9d9d9;margin-bottom:.45rem}
.page-eyebrow{margin:0 0 .45rem;color:#888;text-transform:uppercase;letter-spacing:.13em;font-size:.76rem;font-weight:400}
.cupboard-page-hero h1{width:100%;max-width:none;margin:0 0 .72rem;color:#667;font-weight:300;letter-spacing:-.035em;line-height:1.08;font-size:clamp(1.4rem,3.15vw,2.48rem)}
.page-lead{width:100%;max-width:none;margin:0;color:#626262;font-size:clamp(1.02rem,1.6vw,1.2rem);line-height:1.55;font-weight:300}
.page-secondary-button,.lead-card-button{display:inline-block;text-decoration:none;border-radius:4px;padding:.78rem 1.05rem;font-weight:400;line-height:1.2}
.lead-card-button{background:#1EAEDB;color:#fff!important}
.cupboard-designer .lead-card-button:link,.cupboard-designer .lead-card-button:visited,.cupboard-designer .lead-card-button:hover,.cupboard-designer .lead-card-button:active{color:#fff!important}
.page-secondary-button{border:1px solid #aaa;color:#667;background:#fff}

/* The configurator now sits as the product-design step rather than being the page hero. */
.cupboard-designer{padding-top:.45rem}
.cupboard-designer .intro{max-width:900px;margin-bottom:1rem}
.cupboard-designer .intro h2{font-size:clamp(1.5rem,2.5vw,2rem);font-weight:300;letter-spacing:-.02em;margin-bottom:.45rem}
.cupboard-designer .intro p{margin-bottom:0;color:#777}

.cupboard-designer .lead-card{margin:1.15rem 0 .9rem;padding:1rem;background:#fff;border:1px solid var(--line)}
.cupboard-designer .lead-card span,.cupboard-designer .lead-card small{display:block}
.cupboard-designer .lead-card-kicker{font-size:.78rem;color:#888;text-transform:uppercase;letter-spacing:.08em;margin-bottom:.3rem}
.cupboard-designer .lead-card strong{display:block;font-size:1.07rem;font-weight:500;color:#667;margin-bottom:.4rem}
.cupboard-designer .lead-card small{font-size:.78rem;line-height:1.45;color:#888;margin-bottom:.8rem}
.cupboard-designer .lead-card-button{width:100%;text-align:center;font-size:.9rem}

.cupboard-enquiry{border-top:1px solid #d9d9d9;padding:.85rem 0 2.8rem}
.enquiry-heading{width:100%;max-width:none;margin-bottom:1.4rem}
.enquiry-heading h2,.cupboard-process h2,.cupboard-bespoke-route h2{font-size:clamp(1.65rem,3vw,2.35rem);font-weight:300;color:#667;letter-spacing:-.025em;margin:.1rem 0 .55rem}
.enquiry-heading p{width:100%;max-width:none;line-height:1.55;margin:0}
.enquiry-grid{display:grid;grid-template-columns:minmax(250px,.38fr) minmax(0,.62fr);gap:1.2rem;align-items:start}
.design-summary-card,.design-enquiry-form{border:1px solid #d9d9d9;border-radius:4px;padding:1.15rem;background:#fff}
.design-summary-card{background:#f7f7f5}
.summary-kicker{margin:0 0 .35rem;text-transform:uppercase;letter-spacing:.1em;font-size:.74rem;color:#888}
.design-summary-card h3{margin:0 0 .85rem;color:#667;font-size:1.15rem;font-weight:500}
.design-summary{font-size:.9rem;line-height:1.5}
.design-summary .summary-item{padding:.55rem 0;border-top:1px solid #ddd}
.design-summary .summary-item:first-child{border-top:0;padding-top:0}
.design-summary .summary-item strong{display:block;font-weight:500;color:#667;margin-bottom:.1rem}
.design-summary .summary-meta{color:#777;font-size:.84rem}
.summary-note{margin:.9rem 0 0;padding-top:.8rem;border-top:1px solid #ddd;color:#888;font-size:.78rem;line-height:1.45}
.design-enquiry-form label{display:block;margin-bottom:.85rem;font-size:.91rem}
.design-enquiry-form label>span{display:block;margin-bottom:.3rem;color:#666}
.design-enquiry-form label small{color:#999;font-size:.78rem}
.design-enquiry-form input,.design-enquiry-form select,.design-enquiry-form textarea{width:100%;border:1px solid #ccc;border-radius:2px;padding:.68rem;font:inherit;font-weight:300;color:#555;background:#fff}
.design-enquiry-form textarea{resize:vertical;min-height:95px}
.form-row.two-col{display:grid;grid-template-columns:1fr 1fr;gap:.85rem}
.enquiry-submit{width:100%;border:0;border-radius:4px;background:#1EAEDB;color:#fff;padding:.85rem 1rem;font:inherit;font-weight:500;cursor:pointer}
.form-smallprint,.form-status{font-size:.78rem;line-height:1.4;color:#888;margin:.55rem 0 0}
.form-status{color:#667;font-weight:400}

.cupboard-process{border-top:1px solid #d9d9d9;padding:2.5rem 0}
.process-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-top:1.2rem}
.process-grid article{border-top:1px solid #bbb;padding-top:.8rem}
.process-number{display:block;color:#999;font-size:.76rem;letter-spacing:.08em;margin-bottom:.7rem}
.process-grid h3{margin:0 0 .35rem;color:#667;font-weight:500;font-size:1rem}
.process-grid p{font-size:.87rem;line-height:1.5;margin:0;color:#777}

.cupboard-bespoke-route{border-top:1px solid #d9d9d9;border-bottom:0;padding:1.55rem 0 .45rem;display:block;margin-bottom:.35rem}
.cupboard-bespoke-route>div{width:100%;max-width:none}
.cupboard-bespoke-route p:last-child{width:100%;max-width:none;line-height:1.55;margin-bottom:0}

.cupboard-bespoke-route .bespoke-route-link{
  display:inline-block;
  color:#667;
  text-decoration:none;
  transform-origin:left center;
  transition:transform .8s ease,color .8s ease;
}
.cupboard-bespoke-route .bespoke-route-link:hover,
.cupboard-bespoke-route .bespoke-route-link:focus{
  color:#1EAEDB;
  transform:scale(1.08);
  text-decoration:none;
}

@media(max-width:800px){
  .enquiry-grid{grid-template-columns:1fr}
  .process-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:520px){
  .form-row.two-col,.process-grid{grid-template-columns:1fr}
  .cupboard-page-hero{padding-top:.18rem}
}
