[data-service="platdak"] .detail-hero { --detail-image: url("visuals/platdak-hero.jpg"); }
.flat-roof-calc { scroll-margin-top: 85px; }
.flat-roof-calc > .wrap { width: min(1320px, calc(100% - 48px)); }
.flat-roof-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}
.flat-roof-options,
.flat-roof-result {
  border: 1px solid #e0d7ca;
  border-radius: 16px;
  padding: clamp(16px, 3vw, 30px);
}
.flat-roof-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  background: #fff;
}
.flat-roof-options label {
  display: grid;
  gap: 6px;
  align-content: end;
  font-weight: 700;
}
.flat-roof-options input,
.flat-roof-options select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 8px;
  border: 1px solid #9a9187;
  border-radius: 7px;
  background: #fff;
  color: #211b16;
  font: inherit;
  font-weight: 400;
}
.flat-roof-options p {
  grid-column: 1 / -1;
  margin: 0;
  color: #50463e;
}
.flat-roof-result { background: #fff3e7; color: #211b16; }
.flat-roof-result { display: flex; flex-direction: column; align-items: stretch; }
#flat-roof-add { margin: auto 0 8px; }
.flat-roof-result h3 { margin: 0 0 5px; font-size: 1.1rem; }
#flat-roof-total { display: block; font-size: clamp(1.6rem, 3vw, 2.45rem); line-height: 1.15; }
#flat-roof-unit { margin: 5px 0 16px; }
#flat-roof-breakdown { margin: 0 0 16px; padding: 0; list-style: none; }
#flat-roof-breakdown li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 8px 0;
  border-top: 1px solid #dfc7ab;
}
.flat-roof-result .button:disabled { opacity: .6; cursor: default; }
.flat-roof-notes { margin-top: 20px; }
.flat-roof-notes summary { cursor: pointer; font-weight: 700; }
#flat-roof-quote-summary:empty { display: none; }
.flat-roof-general-quote,
.flat-roof-direct-quote { scroll-margin-top: 85px; }
.detail-hero .flat-roof-general-quote { padding: 0; background: transparent; color: #211b16; }
.flat-roof-general-wrap { width: 100%; max-width: none; }
.flat-roof-general-quote #flat-roof-general { background: #fff; padding: 16px; border-radius: 12px; }
.flat-roof-hero-offer-toggle { font-weight: 750; }
.flat-roof-general-quote .detail-quote { box-shadow: none; }
.flat-roof-general-quote summary,
.flat-roof-direct-quote summary { cursor: pointer; }
.flat-roof-general-quote .detail-quote,
.flat-roof-direct-quote .detail-quote { margin-top: 16px; }
.flat-roof-general-quote .quote-service-picker {
  margin: 12px 0;
  border: 1px solid #c9d3df;
  border-radius: 10px;
}
.flat-roof-general-quote .quote-service-picker summary { padding: 11px 13px; font-weight: 750; }
.flat-roof-general-quote .service-choices { padding: 0 9px 9px; }
.flat-roof-general-quote .quote-selection-count { color: #43566e; }
#flat-roof-service-error { color: #a33019; }
.flat-roof-direct-quote { width: 100%; margin-top: 20px; }
.flat-roof-direct-quote #flat-roof-quote-summary {
  margin: 8px 0 16px;
  padding: 12px;
  background: #fff3e7;
  border-radius: 7px;
}
.flat-roof-materials {
  padding: clamp(36px, 6vw, 72px) 0;
  background: #f7f3ed;
  color: #211b16;
}
.flat-roof-materials h2 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
}
.flat-roof-material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  gap: 16px;
  margin-top: 24px;
}
.flat-roof-material {
  overflow: hidden;
  border: 1px solid #e0d7ca;
  border-radius: 12px;
  background: #fff;
}
.flat-roof-material img {
  display: block;
  width: 100%;
  height: 175px;
  padding: 14px;
  object-fit: contain;
  border-bottom: 1px solid #eee6dc;
}
.flat-roof-material > div { padding: 16px; }
.flat-roof-material h3 { margin: 0 0 8px; font-size: 1.1rem; }
.flat-roof-material .flat-roof-material-type {
  margin: 0 0 4px;
  color: #784300;
  font-size: .9rem;
  font-weight: 700;
}
.flat-roof-material-specs { margin: 12px 0 0; }
.flat-roof-material-specs dt { margin-top: 10px; font-weight: 700; }
.flat-roof-material-specs dd { margin: 2px 0 0; }
@media (max-width: 900px) {
  .flat-roof-layout { grid-template-columns: 1fr; }
  [data-service="platdak"] .detail-hero-with-form { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .flat-roof-calc > .wrap { width: calc(100% - 32px); }
  .flat-roof-options { grid-template-columns: 1fr; }
}
