/* Pricing page: /bathroom-renovation-cost-london/ — hero figures, estimate calculator, factors, price list, payments, FAQ.
   Builds on site.css tokens; everything here is page-specific. */

/* ---------- hero ---------- */
.pr-hero { padding-bottom: 80px; }
.pr-hero-grid { display: grid; gap: 40px; align-items: center; }
.pr-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
.pr-hero-media { position: relative; max-width: 520px; width: 100%; margin: 0 auto; }
.pr-hero-media .frame { aspect-ratio: 4 / 4.4; background: var(--sand); box-shadow: var(--shadow); }
.pr-hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.pr-figs { margin: -90px 16px 0; position: relative; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 20px 14px; }
.pr-figs > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 0; border-bottom: 1px solid var(--linen); }
.pr-figs dt { font-weight: 600; color: var(--charcoal); font-size: .95rem; }
.pr-figs dd { margin: 0; font: 400 1.3rem/1.1 var(--serif); color: var(--charcoal); text-align: right; grid-row: span 2; align-self: center; }
.pr-figs span { font-size: .82rem; color: var(--graphite); }
.pr-figs p { margin: 10px 0 0; font-size: .78rem; color: var(--olive); }
@media (min-width: 960px) {
  .pr-hero-grid { grid-template-columns: 1.1fr .9fr; gap: 72px; }
  .pr-figs { margin: -120px -36px 0 -48px; }
}

/* ---------- calculator layout ---------- */
.est-section { background: var(--ivory); }
.est-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1040px) { .est-layout { grid-template-columns: minmax(0, 1.3fr) minmax(340px, .7fr); gap: 36px; } }
.est-form { display: grid; gap: 16px; }

.est-step { margin: 0; min-width: 0; background: var(--white); border: 1px solid var(--linen); border-radius: 14px; padding: 24px 20px 26px; }
@media (min-width: 640px) { .est-step { padding: 30px 30px 32px; } }
.est-legend { display: flex; gap: 16px; align-items: center; padding: 0; margin-bottom: 22px; float: left; width: 100%; }
.est-legend + * { clear: both; }
.est-legend .step-no { margin: 0; flex: none; width: 44px; height: 44px; font-size: 1.15rem; }
.est-legend b { display: block; font: 400 1.5rem/1.15 var(--serif); color: var(--charcoal); }
.est-legend small { display: block; font-size: .88rem; color: var(--graphite); margin-top: 4px; }
.est-sub { margin: 22px 0 10px; font-weight: 600; color: var(--charcoal); font-size: .93rem; }
.est-help { margin: 8px 0 0; font-size: .82rem; color: var(--olive); }

.est-fields { display: grid; gap: 14px 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .est-fields { grid-template-columns: 1fr 1fr; } .est-fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 559px) { .est-fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
.est-field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.est-field > span:first-child { font-weight: 600; font-size: .88rem; color: var(--charcoal); }
.est-field small { font-size: .78rem; color: var(--olive); }
.est-form input[type=number], .est-form input[type=text], .est-form select {
  width: 100%; min-height: 50px; padding: 0 14px; font: 500 1rem/1.2 var(--sans); color: var(--charcoal);
  background: var(--ivory); border: 1px solid var(--taupe); border-radius: 8px; transition: border-color .15s, background .15s;
}
.est-form select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23735F44' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; text-overflow: ellipsis; }
.est-form input:focus, .est-form select:focus { outline: none; border-color: var(--charcoal); background-color: var(--white); }
.est-form input[type=number] { font-feature-settings: 'tnum' 1; }
.est-unit { position: relative; display: block; }
.est-unit input { padding-right: 34px; }
.est-unit i { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: .85rem; color: var(--olive); pointer-events: none; }

.est-choices { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .est-choices.three { grid-template-columns: repeat(3, 1fr); } }
.est-choice { position: relative; display: block; }
.est-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.est-choice > span { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 14px 14px 13px; border: 1px solid var(--taupe); border-radius: 10px; background: var(--ivory); color: var(--charcoal); font-weight: 600; font-size: .9rem; line-height: 1.3; transition: all .15s; }
.est-choice > span small { font-weight: 400; font-size: .78rem; color: var(--graphite); }
.est-choice svg { width: 40px; height: 27px; color: var(--bronze-deep); }
.est-choice:hover > span { border-color: var(--bronze); }
.est-choice input:checked + span { border-color: var(--charcoal); background: var(--white); box-shadow: inset 0 0 0 1px var(--charcoal); }
.est-choice input:focus-visible + span { outline: 2px solid var(--bronze-deep); outline-offset: 2px; }

.est-checks { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 640px) { .est-checks { grid-template-columns: 1fr 1fr; } }
.est-check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--charcoal); cursor: pointer; line-height: 1.4; }
.est-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--charcoal); flex: none; }
.est-check small { display: block; font-size: .78rem; color: var(--olive); }
.est-field-check { align-self: end; padding-bottom: 14px; }
[data-show][hidden] { display: none !important; }

/* ---------- result ---------- */
.est-result { position: static; }
@media (min-width: 1040px) { .est-result { position: sticky; top: calc(var(--header-h) + 16px); } }
.est-card { border-radius: 16px; overflow: hidden; background: var(--white); box-shadow: var(--shadow); border: 1px solid var(--linen); }
.est-top { background: var(--charcoal); color: #D9D2C6; padding: 24px 24px 20px; }
.est-label { font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.est-price { font: 400 clamp(2rem, 4vw, 2.6rem)/1.08 var(--serif); color: var(--ivory); margin: 10px 0 6px; letter-spacing: -.02em; }
.est-price.tick { animation: estTick .4s ease; }
@keyframes estTick { from { color: var(--brass); } to { color: var(--ivory); } }
.est-around { margin: 0 0 16px; font-size: .9rem; }
.est-split { display: flex; height: 8px; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .1); }
.est-split i { display: block; height: 100%; transition: width .4s ease; }
.est-split i:first-child { background: var(--ivory); }
.est-split i:last-child { background: var(--brass); }
.est-split-key { display: flex; gap: 16px; margin-top: 8px; font-size: .76rem; color: #B9B1A4; }
.est-split-key i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.est-split-key .k-fit { background: var(--ivory); } .est-split-key .k-sup { background: var(--brass); }
.est-facts { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--charcoal); border-top: 1px solid rgba(255, 255, 255, .1); }
.est-facts div { padding: 12px 16px 14px; border-right: 1px solid rgba(255, 255, 255, .1); }
.est-facts div:last-child { border-right: 0; }
.est-facts b { display: block; font: 400 1.2rem/1.2 var(--serif); color: var(--ivory); }
.est-facts span { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #B9B1A4; }
.est-plan { background: var(--ivory); padding: 12px 14px 6px; border-bottom: 1px solid var(--linen); }
.est-plan svg { width: 100%; height: auto; }
.est-plan-key { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .74rem; color: var(--graphite); padding: 4px 2px 8px; }
.est-plan-key i { display: inline-block; width: 11px; height: 11px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.est-body { padding: 20px 22px 22px; }
.est-flag { background: #F5ECDD; border-left: 3px solid var(--bronze); border-radius: 0 6px 6px 0; padding: 10px 12px; font-size: .86rem; color: var(--charcoal); margin: 0 0 14px; }
.est-reserve { font-size: .86rem; color: var(--graphite); margin: 0 0 14px; }
.est-breakdown summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--charcoal); margin-bottom: 10px; }
.est-breakdown table { width: 100%; border-collapse: collapse; font-size: .82rem; margin-bottom: 6px; }
.est-breakdown td { padding: 6px 0; border-bottom: 1px solid var(--linen); vertical-align: top; color: var(--charcoal); }
.est-breakdown td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; font-feature-settings: 'tnum' 1; }
.est-breakdown td small { display: block; color: var(--olive); font-size: .74rem; }
.est-breakdown tr.g td { font: 600 .66rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--bronze-deep); padding-top: 14px; border-bottom: 0; }
.est-breakdown tr.t td { font-weight: 700; border-bottom: 0; padding-top: 9px; }
.est-body .btn { margin-top: 14px; white-space: normal; text-align: center; line-height: 1.25; padding-top: 12px; padding-bottom: 12px; }
.est-small { margin: 12px 0 0; font-size: .76rem; color: var(--olive); }

/* mobile: slim sticky price strip inside the calculator section */
.est-mini { display: none; }
@media (max-width: 1039px) {
  .est-mini { position: sticky; top: calc(var(--header-h) - 1px); z-index: 20; display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 10px 14px; background: var(--charcoal); color: var(--ivory); border-radius: 12px; box-shadow: var(--shadow); font-size: .82rem; }
  .est-mini span { color: var(--brass); font-weight: 600; letter-spacing: .04em; }
  .est-mini b { font: 400 1.08rem/1 var(--serif); margin-left: auto; font-feature-settings: 'tnum' 1; }
  .est-mini a { color: var(--ivory); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
  .est-mini { transition: opacity .2s; }
  .est-mini.off { opacity: 0; pointer-events: none; }
}

/* ---------- factors ---------- */
.factors { display: grid; gap: 1px; background: var(--taupe); border: 1px solid var(--taupe); border-radius: 14px; overflow: hidden; }
@media (min-width: 640px) { .factors { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .factors { grid-template-columns: repeat(3, 1fr); } }
.factors article { background: var(--ivory); padding: 28px 26px 26px; }
.factors svg { width: 28px; height: 28px; color: var(--bronze-deep); margin-bottom: 18px; }
.factors h3 { font-size: 1.35rem; margin-bottom: 8px; }
.factors p { margin: 0; font-size: .93rem; }

/* ---------- price list ---------- */
.pl { display: grid; gap: 10px; }
.pl details { background: var(--white); border: 1px solid var(--linen); border-radius: 12px; }
.pl summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; font: 400 1.35rem/1.2 var(--serif); color: var(--charcoal); }
.pl summary::-webkit-details-marker { display: none; }
.pl summary::after { content: '+'; font: 300 1.6rem/1 var(--sans); color: var(--bronze-deep); transition: transform .2s; }
.pl details[open] summary::after { transform: rotate(45deg); }
.pl-note { padding: 0 22px; margin: -4px 0 12px; font-size: .88rem; color: var(--graphite); }
.pl table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-bottom: 10px; }
.pl th { text-align: left; font: 600 .68rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--olive); padding: 8px 22px; border-bottom: 1px solid var(--linen); }
.pl td { padding: 11px 22px; border-bottom: 1px solid var(--linen); color: var(--charcoal); vertical-align: top; }
.pl tr:last-child td { border-bottom: 0; }
.pl td.n, .pl th.n { text-align: right; white-space: nowrap; font-feature-settings: 'tnum' 1; }
.pl td.u { color: var(--graphite); font-size: .84rem; white-space: nowrap; }
.pl .tag { display: inline-block; margin-left: 8px; font: 600 .62rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--bronze-deep); border: 1px solid var(--bronze); border-radius: 4px; padding: 3px 5px; vertical-align: 2px; }
@media (max-width: 560px) { .pl th, .pl td { padding-left: 14px; padding-right: 14px; } .pl .u { display: none; } }

/* ---------- payments ---------- */
.pay-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .pay-grid { grid-template-columns: 1.1fr .9fr; gap: 72px; } }
.pay-bar { display: grid; gap: 6px; margin-top: 30px; }
.pay-bar div { flex: none !important; display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 14px; background: var(--white); border-radius: 8px; padding: 13px 16px; border-left: 3px solid var(--bronze); }
.pay-bar div:last-child { border-left-color: var(--charcoal); }
.pay-bar b { font: 400 1.5rem/1 var(--serif); color: var(--charcoal); }
.pay-bar span { font-size: .9rem; color: var(--graphite); line-height: 1.35; }
.guarantee { background: var(--white); border-radius: 16px; padding: 30px 28px; box-shadow: var(--shadow); }
.guarantee > svg { width: 36px; height: 36px; color: var(--bronze-deep); margin-bottom: 16px; }
.guarantee h3 { margin-bottom: 10px; }
.guarantee .checks { margin-top: 18px; }

/* ---------- FAQ ---------- */
.pfaq-wrap { display: grid; gap: 36px; }
@media (min-width: 960px) { .pfaq-wrap { grid-template-columns: .7fr 1.3fr; gap: 72px; } }
.pfaq { display: grid; gap: 0; border-top: 1px solid var(--taupe); }
.pfaq details { border-bottom: 1px solid var(--taupe); }
.pfaq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 2px; font: 400 1.3rem/1.3 var(--serif); color: var(--charcoal); }
.pfaq summary::-webkit-details-marker { display: none; }
.pfaq summary::after { content: '+'; font: 300 1.5rem/1 var(--sans); color: var(--bronze-deep); flex: none; transition: transform .2s; }
.pfaq details[open] summary::after { transform: rotate(45deg); }
.pfaq p { margin: 0 0 22px; max-width: 64ch; }
