/* Garden room calculator (create-garden-room-quote.html). Load after styles.css and calculator.css,
   which it builds on (.configurator, .block, .choose, the modals). Matches the /garden-rooms landing page:
   ink + paper + lime, Outfit with clear lining figures, SVG icons (no text glyphs), soft motion. */

:root {
  --gr-ink: #0d0d11;
  --gr-panel: #16161c;
  --gr-paper: #f3f3ee;
  --gr-line: rgba(255, 255, 255, 0.1);
  --gr-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gr-green-text: #4d6600; /* accent for TEXT on light backgrounds (WCAG AA) */
  --gr-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --gr-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E");
}
/* Text colours on light backgrounds, darkest to lightest. Nothing lighter than --gr-ink-3. */
.gr-wrap { --gr-ink-2: #45484e; --gr-ink-3: #5f6369; }

body { background: var(--gr-paper); }
.gr-ico { width: 1.1em; height: 1.1em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Top bar ── */
.top-bar { background: rgba(13, 13, 17, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--gr-line); }
.top-bar a { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; font-weight: 600; }
.top-bar .back-link { gap: 8px; }
.top-bar .back-link svg { width: 18px; height: 18px; transition: transform 0.3s var(--gr-ease); }
.top-bar .back-link:hover svg { transform: translateX(-3px); }

/* ── Session banner for a logged-in / portal customer (created by the JS). Solid ink so it reads whether it
   lands on the dark header or the light page; overrides the #calculator-session-bar rules in calculator.css. ── */
#calculator-session-bar.gr-session {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: nowrap;
  margin: 0 0 18px; padding: 10px 10px 10px 22px !important; border-radius: 100px !important;
  background: var(--gr-panel) !important; border: 1px solid rgba(184, 230, 0, 0.45) !important; color: var(--white);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.6); animation: gr-up 0.8s var(--gr-ease) both;
}
.gr-session-who { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; font-size: 1.02rem; line-height: 1.35; }
.gr-session-label { font-weight: 600; color: rgba(255, 255, 255, 0.72); }
.gr-session-who strong { font-weight: 800; color: var(--white); }
.gr-session-num { font-weight: 800; color: var(--accent); font-variant-numeric: lining-nums; }
.gr-session-btn { flex: 0 0 auto; background: var(--accent); color: var(--black); border: 0; border-radius: 100px; padding: 11px 22px; font: 800 0.98rem 'Outfit', sans-serif; cursor: pointer; transition: background 0.25s, transform 0.3s var(--gr-ease); }
.gr-session-btn:hover:not(:disabled) { background: var(--accent-bright); transform: translateY(-1px); }
.gr-session-btn:disabled { opacity: 0.6; cursor: wait; }
@media (max-width: 600px) {
  #calculator-session-bar.gr-session { border-radius: 22px !important; padding: 12px 12px 12px 18px !important; }
  .gr-session-who { flex-direction: column; gap: 0; font-size: 0.98rem; }
  .gr-session-btn { padding: 10px 18px; }
}

/* ── Hero header ── */
.gr-head {
  position: relative; overflow: hidden; background: var(--gr-ink); color: var(--white); text-align: center;
  padding: clamp(48px, 7vw, 84px) 20px clamp(96px, 11vw, 132px);
}
.gr-head::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 120%; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(184, 230, 0, 0.18), transparent 60%);
}
.gr-head-inner { position: relative; max-width: 820px; margin: 0 auto; }
.gr-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.gr-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(184, 230, 0, 0.22); animation: gr-pulse 2.4s ease-in-out infinite; }
@keyframes gr-pulse { 50% { box-shadow: 0 0 0 8px rgba(184, 230, 0, 0); } }
.gr-head h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 900; line-height: 0.98; letter-spacing: -0.03em; margin: 16px 0 14px; color: var(--white); animation: gr-up 1s var(--gr-ease) both; }
.gr-head h1 em { font-style: normal; color: var(--accent); }
.gr-head p { font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.5; color: rgba(255, 255, 255, 0.78); margin: 0 auto; max-width: 46ch; animation: gr-up 1s var(--gr-ease) 0.1s both; }
@keyframes gr-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.gr-stepnav { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; animation: gr-up 1s var(--gr-ease) 0.2s both; }
.gr-stepnav a {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 100px; text-decoration: none;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.82);
  font-weight: 700; font-size: 0.95rem; transition: background 0.35s, border-color 0.35s, color 0.35s;
}
.gr-stepnav a b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); color: var(--white); font-weight: 800; font-size: 0.9rem; transition: background 0.35s, color 0.35s; }
.gr-stepnav a:hover { border-color: rgba(184, 230, 0, 0.6); color: var(--white); }
.gr-stepnav a.on { background: var(--accent); border-color: var(--accent); color: var(--black); }
.gr-stepnav a.on b { background: var(--black); color: var(--accent); }

/* ── Layout: steps + sticky summary, pulled up over the header ── */
.gr-wrap { position: relative; max-width: 1180px; margin: calc(-1 * clamp(64px, 8vw, 92px)) auto 0; padding: 0 clamp(16px, 4vw, 40px); }
.configurator.gr-layout { max-width: none; margin: 0 0 72px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.gr-steps { min-width: 0; }
.configurator .config-message { border-radius: 16px; font-size: 0.98rem; font-weight: 600; padding: 16px 20px; }

.configurator .block.gr-step {
  margin-bottom: 18px !important; padding: clamp(22px, 3vw, 34px); border-radius: 28px; border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 30px 60px -40px rgba(13, 13, 17, 0.35); scroll-margin-top: 90px;
  animation: gr-up 0.9s var(--gr-ease) both; transition: border-color 0.35s, box-shadow 0.35s;
}
.configurator .block.gr-step:hover { border-color: rgba(184, 230, 0, 0.55); box-shadow: 0 34px 70px -40px rgba(13, 13, 17, 0.45); }
.gr-steps .gr-step:nth-of-type(2) { animation-delay: 0.08s; }
.gr-steps .gr-step:nth-of-type(3) { animation-delay: 0.16s; }
.gr-steps .gr-step:nth-of-type(4) { animation-delay: 0.24s; }
.gr-step-title { display: flex; align-items: center; gap: 14px; font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 900; letter-spacing: -0.02em; margin: 0 0 6px; color: var(--gr-ink); }
.gr-step-num { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--gr-ink); color: var(--accent); font: 900 1.15rem 'Outfit', sans-serif; font-variant-numeric: lining-nums; }
.gr-step-desc { font-size: 1.02rem; color: var(--gr-ink-2); line-height: 1.5; margin: 0 0 18px 56px; }

.gr-field { margin-top: 26px; }
.gr-field-label { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.05rem; color: var(--gr-ink); }
.gr-field-help { font-size: 0.98rem; color: var(--gr-ink-2); margin: 4px 0 0; }
.gr-badge { font: 800 0.78rem 'Outfit', sans-serif; letter-spacing: 0.04em; text-transform: uppercase; background: var(--accent); color: var(--black); padding: 3px 10px; border-radius: 100px; }

/* Chips (window yes/no, frame colours) */
.gr-step .choose { gap: 10px !important; }
.configurator .block.gr-step .choose > div {
  font-size: 0.98rem; font-weight: 600; padding: 12px 20px; color: var(--gr-ink); border: 1.5px solid rgba(0, 0, 0, 0.12);
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--gr-ease);
}
.configurator .block.gr-step .choose > div:hover { border-color: var(--gr-ink); transform: translateY(-2px); }
.configurator .block.gr-step .choose > div.active { background: var(--gr-ink); border-color: var(--gr-ink); color: var(--accent); font-weight: 800; }

/* ── Step 1: stepped sliders + plan ── */
.gr-size { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 20px; }
.gr-slider + .gr-slider { margin-top: 28px; }
.gr-slider-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.gr-slider-head label { font-weight: 800; font-size: 1.05rem; color: var(--gr-ink); }
.gr-slider-head label span { font-weight: 500; color: var(--gr-ink-3); margin-left: 4px; }
.gr-slider-head output { font-weight: 900; font-size: 1.2rem; font-variant-numeric: lining-nums tabular-nums; background: var(--gr-ink); color: var(--accent); padding: 3px 14px; border-radius: 100px; }

.gr-slider input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; margin: 0; cursor: pointer; --fill: 0%; }
.gr-slider input[type=range]:focus { outline: none; }
.gr-slider input[type=range]::-webkit-slider-runnable-track { height: 10px; border-radius: 100px; background: linear-gradient(90deg, var(--accent) var(--fill), #e4e3dc var(--fill)); }
.gr-slider input[type=range]::-moz-range-track { height: 10px; border-radius: 100px; background: #e4e3dc; }
.gr-slider input[type=range]::-moz-range-progress { height: 10px; border-radius: 100px; background: var(--accent); }
.gr-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: var(--gr-ink); border: 4px solid var(--accent); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); transition: transform 0.2s var(--gr-ease); }
.gr-slider input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--gr-ink); border: 4px solid var(--accent); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); }
.gr-slider input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.08); }
.gr-slider input[type=range]:active::-webkit-slider-thumb { transform: scale(1.18); }
.gr-slider input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(184, 230, 0, 0.4); }
.gr-slider input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 6px rgba(184, 230, 0, 0.4); }

/* Tick labels sit under each stop: the first and last flush with the thumb's centre at the ends. */
.gr-ticks { display: flex; justify-content: space-between; margin: 6px 15px 0; }
.gr-ticks span { width: 0; display: flex; justify-content: center; white-space: nowrap; font-size: 0.92rem; font-weight: 600; font-variant-numeric: lining-nums; color: var(--gr-ink-3); cursor: pointer; user-select: none; transition: color 0.25s; }
.gr-ticks span:hover { color: var(--gr-ink); }
.gr-ticks span.active { color: var(--gr-ink); font-weight: 900; }

.gr-plan { background: var(--gr-paper); border: 1px solid rgba(0, 0, 0, 0.06); border-radius: 20px; padding: 16px; }
.gr-plan svg { display: block; width: 100%; height: auto; }
.gr-plan-caption { margin-top: 10px; text-align: center; font-size: 1.05rem; font-weight: 800; font-variant-numeric: lining-nums; color: var(--gr-ink); }

/* ── Step 2: Flat-Pack or Installed ── */
.gr-options { display: grid; gap: 12px; margin-top: 18px; }
.gr-option { background: var(--white); border: 2px solid rgba(0, 0, 0, 0.1); border-radius: 20px; cursor: pointer; transition: border-color 0.3s, background 0.3s, transform 0.35s var(--gr-ease), box-shadow 0.35s; }
.gr-option:hover { border-color: rgba(13, 13, 17, 0.45); transform: translateY(-2px); }
.gr-option.active { border-color: var(--gr-ink); background: var(--white); box-shadow: 0 18px 40px -24px rgba(13, 13, 17, 0.5); }
.gr-option-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; outline: none; }
.gr-option-main:focus-visible { box-shadow: inset 0 0 0 3px rgba(184, 230, 0, 0.7); }
.gr-radio { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #b7bbc0; background: var(--white); transition: background 0.3s, border-color 0.3s; }
.gr-radio::after { content: ""; position: absolute; inset: 5px; background: var(--accent); -webkit-mask: var(--gr-check) center / contain no-repeat; mask: var(--gr-check) center / contain no-repeat; transform: scale(0); transition: transform 0.35s var(--gr-ease); }
.gr-option.active .gr-radio { background: var(--gr-ink); border-color: var(--gr-ink); }
.gr-option.active .gr-radio::after { transform: scale(1); }
.gr-option-text { display: flex; flex-direction: column; gap: 4px; }
.gr-option-name { font-size: 1.2rem; font-weight: 800; color: var(--gr-ink); line-height: 1.2; }
.gr-option-sub { font-size: 0.98rem; color: var(--gr-ink-2); line-height: 1.4; }
.gr-option-note { font-size: 0.92rem; font-weight: 800; color: var(--gr-ink); line-height: 1.4; }
.gr-option-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.gr-option-price .price-amount { font-size: 1.55rem; font-weight: 900; color: var(--gr-ink); line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.gr-option-price .price-vat { font-size: 0.88rem; font-weight: 700; color: var(--gr-green-text); }

.gr-postcode { margin: 0 20px 18px 64px; padding-top: 16px; border-top: 1px solid rgba(0, 0, 0, 0.08); cursor: default; }
.gr-postcode[hidden] { display: none; }
.gr-postcode label { display: block; font-size: 0.98rem; font-weight: 800; color: var(--gr-ink); margin-bottom: 8px; }
.gr-postcode input { width: 100%; max-width: 200px; padding: 12px 16px; border: 1.5px solid #cfd2d5; border-radius: 12px; font: 800 1.1rem 'Outfit', sans-serif; letter-spacing: 0.05em; text-transform: uppercase; background: var(--white); color: var(--gr-ink); outline: 0; transition: border-color 0.25s, box-shadow 0.25s; }
.gr-postcode input::placeholder { color: #8a8e94; font-weight: 500; text-transform: none; letter-spacing: 0; }
.gr-postcode input:focus { border-color: var(--gr-ink); box-shadow: 0 0 0 4px rgba(184, 230, 0, 0.3); }
.gr-postcode-status { display: flex; align-items: flex-start; gap: 8px; font-size: 0.98rem; font-weight: 700; margin-top: 10px; line-height: 1.4; }
.gr-postcode-status:empty { display: none; }
.gr-postcode-status.ok { color: #2e7d32; }
.gr-postcode-status.ok::before { content: ""; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; background: #2e7d32; -webkit-mask: var(--gr-check) center / contain no-repeat; mask: var(--gr-check) center / contain no-repeat; }
.gr-postcode-status.no { color: #c62828; }
.gr-postcode-status.wait { color: var(--gr-ink-3); font-weight: 500; }

.gr-link-btn { background: none; border: 0; padding: 0; margin-top: 12px; color: var(--gr-green-text); font: 800 0.98rem 'Outfit', sans-serif; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; }
.gr-link-btn[hidden] { display: none; }
.gr-link-btn:hover { color: var(--gr-ink); }

/* ── Step 3: front elevation ── */
.gr-elevation { background: linear-gradient(#eaf0f4, var(--gr-paper) 70%); border: 1px solid rgba(0, 0, 0, 0.06); border-radius: 20px; padding: 20px 16px 12px; touch-action: pan-y; }
.gr-elev-inner { margin: 0 auto; }
.gr-elevation svg { display: block; width: 100%; height: auto; overflow: visible; user-select: none; -webkit-user-select: none; }
.gr-opening { cursor: grab; touch-action: none; outline: none; }
.gr-opening.dragging { cursor: grabbing; }
.gr-opening .gr-hilite { fill: none; stroke: var(--accent); stroke-width: 40; opacity: 0; transition: opacity 0.15s; }
.gr-opening:hover .gr-hilite, .gr-opening:focus-visible .gr-hilite, .gr-opening.dragging .gr-hilite { opacity: 1; }
.gr-opening .gr-grip { fill: var(--gr-ink); opacity: 0; transition: opacity 0.15s; }
.gr-opening:hover .gr-grip, .gr-opening:focus-visible .gr-grip, .gr-opening.dragging .gr-grip { opacity: 0.85; }
@media (hover: none) { .gr-opening .gr-grip { opacity: 0.85; } }

/* Running dimensions under the drawing. The JS lines the row up with the walls (margin-left / width in %
   of the drawing's width) and places each segment in % of the front length. */
.gr-dims { position: relative; height: 24px; margin-top: 6px; }
.gr-dim { position: absolute; top: 0; height: 24px; border-left: 1px solid #a9adb2; display: flex; align-items: center; justify-content: center; }
.gr-dim:last-child { border-right: 1px solid #a9adb2; }
.gr-dim::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid #bfc2c6; }
.gr-dim span { position: relative; background: var(--gr-paper); padding: 0 5px; font-size: 0.88rem; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; color: var(--gr-ink-2); white-space: nowrap; }
.gr-dim.opening span { color: var(--gr-ink); font-weight: 800; }
.gr-dim.narrow span { display: none; }

.gr-elev-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.gr-elev-hint { font-size: 0.92rem; color: var(--gr-ink-3); }
.gr-elev-foot .gr-link-btn { margin-top: 0; }
.gr-elev-actions { display: inline-flex; gap: 20px; margin-left: auto; }
#gr-layout-error { margin-top: 10px; }
#gr-layout-error[hidden] { display: none; }
.configurator .item-error { font-size: 0.95rem; font-weight: 600; border-radius: 12px; padding: 10px 14px; }

.gr-window-option[hidden], .gr-option-note[hidden] { display: none; }
.gr-option-note { margin-top: 20px; }
.gr-window-colour { margin-top: 18px; }
.gr-window-colour[hidden] { display: none; }

/* Door / window frame colours: a swatch dot, and the extra for that colour on the chip */
.configurator .block .choose.gr-frame-colours div { gap: 10px; }
.gr-dot { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%; border: 1.5px solid rgba(0, 0, 0, 0.2); box-shadow: inset 0 0 0 2px #fff; }
.gr-dot[data-colour="White"] { background: #f5f6f7; }
.gr-dot[data-colour="Black"] { background: #1f2022; }
.gr-dot[data-colour="Anthracite"] { background: #3b3f44; }
.gr-dot[data-colour="Oak"] { background: linear-gradient(135deg, #b5814f, #8a5a32); }
.choose > div.active .gr-dot { border-color: rgba(255, 255, 255, 0.5); }
.gr-chip-extra { font-size: 0.88rem; font-weight: 800; font-variant-numeric: lining-nums; color: var(--gr-green-text); }
.gr-chip-extra:empty { display: none; }
.choose > div.active .gr-chip-extra { color: var(--accent); }

/* ── Step 4: fluted finishes ── */
.gr-finishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.gr-finish { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 14px; background: var(--white); border: 2px solid rgba(0, 0, 0, 0.1); border-radius: 22px; cursor: pointer; font: 800 1.05rem 'Outfit', sans-serif; color: var(--gr-ink); text-align: left; transition: border-color 0.3s, box-shadow 0.35s, transform 0.35s var(--gr-ease); }
.gr-finish:hover { border-color: rgba(13, 13, 17, 0.45); transform: translateY(-3px); }
.gr-finish:focus-visible { outline: 3px solid rgba(184, 230, 0, 0.6); outline-offset: 2px; }
.gr-finish.active { border-color: var(--gr-ink); box-shadow: 0 18px 40px -24px rgba(13, 13, 17, 0.55); }
.gr-finish.active::after {
  content: ""; position: absolute; top: 20px; right: 20px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--gr-ink); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4); animation: gr-pop 0.4s var(--gr-ease);
}
.gr-finish.active::before {
  content: ""; position: absolute; z-index: 1; top: 27px; right: 27px; width: 16px; height: 16px; background: var(--accent);
  -webkit-mask: var(--gr-check) center / contain no-repeat; mask: var(--gr-check) center / contain no-repeat; animation: gr-pop 0.4s var(--gr-ease);
}
@keyframes gr-pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.gr-finish-swatch { display: block; height: 108px; border-radius: 14px; }
.gr-finish-swatch[data-finish="Black"] { background: repeating-linear-gradient(90deg, #2a2b2f 0 9px, #161719 9px 12px, #3a3c41 12px 14px); }
.gr-finish-swatch[data-finish="Anthracite"] { background: repeating-linear-gradient(90deg, #3f4348 0 9px, #2a2d31 9px 12px, #555a60 12px 14px); }
.gr-finish-swatch[data-finish="Oak"] { background: repeating-linear-gradient(90deg, #a8774a 0 9px, #855a34 9px 12px, #bf8f60 12px 14px); }

/* ── Summary ── */
.gr-summary { position: sticky; top: 84px; animation: gr-up 0.9s var(--gr-ease) 0.12s both; }
.gr-summary-card {
  position: relative; overflow: hidden; background: var(--gr-ink); color: var(--white); border-radius: 28px; padding: 28px;
  box-shadow: 0 40px 80px -40px rgba(13, 13, 17, 0.7);
}
.gr-summary-card::before { content: ""; position: absolute; inset: -30% -30% auto auto; width: 80%; height: 60%; pointer-events: none; background: radial-gradient(circle, rgba(184, 230, 0, 0.18), transparent 65%); }
.gr-summary-card > * { position: relative; }
.gr-sum-eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 800 0.82rem 'Outfit', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.gr-sum-size { font-size: 2.4rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1; margin: 10px 0 18px; font-variant-numeric: lining-nums; }
.gr-sum-spec { margin: 0 0 22px; display: grid; gap: 10px; }
.gr-sum-spec div { display: flex; justify-content: space-between; gap: 12px; font-size: 1rem; border-bottom: 1px solid var(--gr-line); padding-bottom: 10px; }
.gr-sum-spec dt { color: rgba(255, 255, 255, 0.66); }
.gr-sum-spec dd { margin: 0; font-weight: 700; text-align: right; }
.gr-sum-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 20px; }
.gr-sum-ex { font-size: clamp(2.4rem, 4vw, 3rem); font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; color: var(--white); line-height: 1; }
.gr-sum-ex-label { font-size: 1rem; font-weight: 800; color: var(--accent); }
.gr-sum-inc { flex-basis: 100%; font-size: 1.02rem; font-weight: 600; color: rgba(255, 255, 255, 0.72); font-variant-numeric: lining-nums; margin-top: 6px; }
.gr-bump { animation: gr-bump 0.5s var(--gr-ease); }
@keyframes gr-bump { 40% { transform: scale(1.04); color: var(--accent); } }

.configurator.gr-layout .gr-summary button#save-custom-quote-button,
#gr-bar-save {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 0; width: 100%; padding: 18px 28px; font-size: 1.08rem; font-weight: 800;
  transition: background 0.3s, transform 0.35s var(--gr-ease), box-shadow 0.35s;
}
.configurator.gr-layout .gr-summary button#save-custom-quote-button::after,
#gr-bar-save::after { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--gr-arrow) center / contain no-repeat; mask: var(--gr-arrow) center / contain no-repeat; transition: transform 0.3s var(--gr-ease); }
.configurator.gr-layout .gr-summary button#save-custom-quote-button:hover:not(:disabled)::after,
#gr-bar-save:hover:not(:disabled)::after { transform: translateX(4px); }
.configurator.gr-layout .gr-summary button#save-custom-quote-button:disabled { background: rgba(255, 255, 255, 0.12) !important; color: rgba(255, 255, 255, 0.55) !important; }
.gr-sum-blocker { margin-top: 12px; font-size: 0.98rem; font-weight: 600; color: #ffb4b2; line-height: 1.45; }
.gr-sum-blocker[hidden] { display: none; }
.gr-sum-note { margin: -8px 0 18px; font-size: 0.95rem; font-weight: 700; color: var(--accent); line-height: 1.45; }
.gr-sum-note[hidden] { display: none; }
.gr-sum-split { margin: -8px 0 12px; font-size: 0.95rem; font-weight: 600; color: rgba(255, 255, 255, 0.86); line-height: 1.45; }
.gr-sum-split[hidden] { display: none; }
.gr-sum-incl { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--gr-line); }
.gr-sum-incl-title { font-weight: 800; font-size: 1.05rem; margin-bottom: 12px; }
.gr-sum-notincl { margin: 14px 0 0; font-size: 0.92rem; line-height: 1.5; color: rgba(255, 255, 255, 0.72); }
.gr-sum-notincl a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.gr-summary .tick-list.compact { margin: 0; display: grid; gap: 8px; }
.gr-summary .tick-list.compact li { color: rgba(255, 255, 255, 0.86); font-size: 0.95rem; line-height: 1.45; padding: 0 0 0 30px; margin: 0; }
.gr-summary .tick-list.compact li::before {
  content: ""; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: rgba(184, 230, 0, 0.16);
}
.gr-summary .tick-list.compact li::after {
  content: ""; position: absolute; left: 4px; top: 5px; width: 12px; height: 12px; background: var(--accent);
  -webkit-mask: var(--gr-check) center / contain no-repeat; mask: var(--gr-check) center / contain no-repeat;
}

/* Loading skeletons until the first server price arrives */
.is-loading { color: transparent !important; border-radius: 8px; background: linear-gradient(90deg, rgba(127, 127, 127, 0.14) 25%, rgba(127, 127, 127, 0.28) 50%, rgba(127, 127, 127, 0.14) 75%) 0 0 / 200% 100%; animation: gr-shimmer 1.4s linear infinite; }
@keyframes gr-shimmer { to { background-position: -200% 0; } }

/* Calculating indicator (created by the JS) */
.gr-calc {
  position: fixed; top: 76px; right: 20px; z-index: 10000; display: none; align-items: center; gap: 10px;
  padding: 10px 18px 10px 12px; border-radius: 100px; background: var(--gr-ink); color: var(--white);
  font: 700 0.92rem 'Outfit', sans-serif; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); border: 1px solid rgba(184, 230, 0, 0.5);
}
.gr-calc.on { display: inline-flex; }
.gr-calc::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(184, 230, 0, 0.25); border-top-color: var(--accent); animation: gr-spin 0.8s linear infinite; }
@keyframes gr-spin { to { transform: rotate(360deg); } }

/* ── Modals (save quote / job location / login) ── */
.modal-overlay { background: rgba(13, 13, 17, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: gr-fade 0.3s ease both; }
@keyframes gr-fade { from { opacity: 0; } }
.modal-content { border-radius: 28px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35); animation: gr-up 0.5s var(--gr-ease) both; }
.modal-content h2 { font-size: 1.8rem; font-weight: 900; letter-spacing: -0.02em; color: var(--gr-ink); margin: 0 0 8px; }
.gr-modal-sub { color: #55555b; font-size: 1rem; line-height: 1.5; margin: 0 0 22px; }
.form-group label { font-size: 0.95rem; font-weight: 700; color: var(--gr-ink); }
.form-group input, .form-group textarea { padding: 14px 16px; border-radius: 14px; font-size: 1rem; background: #f6f6f2; border: 1.5px solid rgba(0, 0, 0, 0.08); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--gr-ink); background: var(--white); box-shadow: 0 0 0 4px rgba(184, 230, 0, 0.3); }
.form-actions button { padding: 16px 24px; font-size: 1rem; font-weight: 800; }
.btn-cancel { background: var(--white); color: var(--gr-ink); border: 1.5px solid rgba(0, 0, 0, 0.14) !important; }
.btn-cancel:hover { background: var(--gr-paper); }
.btn-submit, .btn-do-login { background: var(--gr-ink) !important; color: var(--accent) !important; }
.btn-submit:hover, .btn-do-login:hover { background: #24242c !important; }
.gr-modal-alt { text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(0, 0, 0, 0.08); }
.gr-modal-alt p { font-size: 0.98rem; color: #55555b; margin: 0 0 10px; }
.gr-ghost-btn { background: none; border: 1.5px solid rgba(0, 0, 0, 0.14); color: var(--gr-ink); padding: 11px 22px; border-radius: 100px; cursor: pointer; font: 700 0.98rem 'Outfit', sans-serif; transition: border-color 0.25s, background 0.25s; }
.gr-ghost-btn:hover { border-color: var(--gr-ink); background: var(--gr-paper); }
.gr-text-btn { background: none; border: 0; color: var(--gr-green-text); cursor: pointer; font: 700 0.98rem 'Outfit', sans-serif; text-decoration: underline; text-underline-offset: 3px; }
.gr-login-error { color: #c62828; font-size: 0.95rem; font-weight: 600; margin-bottom: 12px; display: none; }
.gr-login-error a, .gr-forgot a { color: var(--gr-green-text); font-weight: 700; }
.gr-forgot { text-align: center; margin-top: 14px; font-size: 0.98rem; }

/* Success */
.success-message { background: rgba(13, 13, 17, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: gr-fade 0.3s ease both; }
.success-content { border-radius: 30px; padding: clamp(32px, 5vw, 52px) clamp(24px, 4vw, 44px); animation: gr-up 0.6s var(--gr-ease) both; }
.success-content::before {
  content: ""; display: block; width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--accent) center / 36px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0d11' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  box-shadow: 0 0 0 10px rgba(184, 230, 0, 0.2); animation: gr-pop 0.6s var(--gr-ease) 0.15s both;
}
.success-content h2 { color: var(--gr-ink); font-size: 2rem; font-weight: 900; letter-spacing: -0.02em; }
.success-content p { font-size: 1.02rem; color: #55555b; }
.success-content strong { font-size: 1.3rem; font-variant-numeric: lining-nums; }
.gr-success-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.gr-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 190px; padding: 15px 26px; border-radius: 100px; font: 800 1rem 'Outfit', sans-serif; text-decoration: none; cursor: pointer; transition: transform 0.3s var(--gr-ease); }
.gr-pill:hover { transform: translateY(-2px); }
.gr-pill--ink { background: var(--gr-ink); color: var(--accent); border: 0; }
.gr-pill--line { background: var(--white); color: var(--gr-ink); border: 1.5px solid rgba(0, 0, 0, 0.14); }

/* ── Footer ── */
.page-footer { color: #55555b; font-size: 0.95rem; }
.page-footer a { color: var(--gr-ink); font-weight: 600; }

/* ── Mobile price bar ── */
.gr-mobile-bar { display: none; }

@media (max-width: 960px) {
  .configurator.gr-layout { grid-template-columns: minmax(0, 1fr); }
  .gr-summary { position: static; }
  .gr-mobile-bar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90;
    align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px; border-radius: 100px;
    background: rgba(13, 13, 17, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(184, 230, 0, 0.35); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  }
  .gr-bar-price strong { display: block; font-size: 1.45rem; font-weight: 900; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; color: var(--white); }
  .gr-bar-price span { font-size: 0.85rem; font-weight: 800; color: var(--accent); }
  #gr-bar-save { width: auto; background: var(--accent); color: var(--black); border: 0; border-radius: 100px; padding: 13px 20px; font: 800 1rem 'Outfit', sans-serif; cursor: pointer; }
  #gr-bar-save:disabled { opacity: 0.5; cursor: not-allowed; }
  body { padding-bottom: 96px; }
  .gr-calc { top: auto; bottom: calc(92px + env(safe-area-inset-bottom)); right: 50%; transform: translateX(50%); }
}
@media (max-width: 760px) { .top-bar .nav-links { display: none !important; } }
@media (max-width: 600px) {
  .gr-size { grid-template-columns: minmax(0, 1fr); }
  .gr-options { grid-template-columns: minmax(0, 1fr); }
  .gr-step-desc { margin-left: 0; }
  .gr-option-main { gap: 12px; padding: 16px; }
  .gr-option-price .price-amount { font-size: 1.3rem; }
  .gr-postcode { margin-left: 16px; margin-right: 16px; }
  .gr-plan svg { max-width: 300px; margin: 0 auto; }
  .gr-elevation { padding: 14px 8px 8px; }
  .gr-elev-hint { display: none; }
  .gr-stepnav a { padding-right: 12px; font-size: 0.88rem; }
  .configurator .block.gr-step { border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .gr-head h1, .gr-head p, .gr-stepnav, .configurator .block.gr-step, .gr-summary, .modal-content, .success-content, .success-content::before { animation: none; }
  .gr-eyebrow::before, .is-loading, .gr-bump { animation: none; }
}
