/* ─── Layout: form left, estimate panel right (panel on top on phones) ─── */
.qc-layout {
  display: grid;
  gap: 16px;
  grid-template-areas: 'top' 'form' 'panel';
  /* minmax(0, …) stops wide content (e.g. the scrolling room tabs) from widening the column past the screen. */
  grid-template-columns: minmax(0, 1fr);
  text-align: left;
}

/* ─── Phones: the big panel is replaced by a summary bar pinned to the bottom ─── */
.qc-mobilebar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--black);
  color: #fff;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.18);
}
.qc-mobilebar-vol {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.qc-mobilebar-vol small {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bdbdbd;
}
.qc-mobilebar-vol strong {
  font-size: 1.15rem;
  color: var(--yellow);
}
.qc-mobilebar-fit {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: right;
  line-height: 1.2;
}
.qc-mobilebar-fit img {
  flex: 0 0 auto;
  width: 44px;
  height: 30px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}
.qc-mobilebar-fit small {
  display: block;
  font-weight: 500;
  color: #bdbdbd;
}
.qc-mobilebar-hint {
  font-size: 0.82rem;
  color: #bdbdbd;
}
@media (min-width: 900px) {
  .qc-mobilebar {
    display: none;
  }
}
@media (min-width: 900px) {
  .qc-layout {
    grid-template-areas: 'top panel' 'form panel';
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 16px 24px;
  }
}
@media (min-width: 900px) and (min-height: 600px) {
  .qc-layout {
    flex: 1;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .qc {
    position: relative;
    max-height: 100%;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  /* Only the item-list step stretches, so its list can fill the space; other steps keep their natural height. */
  .qc.is-fill {
    align-self: stretch;
  }
  /* Progress sits on the heading's line (top right) instead of taking its own row. */
  .qc-progress {
    position: absolute;
    top: 22px;
    right: 20px;
    margin: 0;
  }
  .qc-progress-text {
    margin-left: 6px;
  }
  .qc h2 {
    padding-right: 330px;
  }
  /* The confirmation screen has no progress indicator, so its heading can use the full width. */
  .qc .qc-done h2 {
    padding-right: 0;
  }
  .qc > section,
  .qc .ip {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .qc .ip-list {
    flex: 1;
    min-height: 140px;
    max-height: none;
  }
  .qc-nav {
    margin-top: auto;
    padding-top: 12px;
  }
}

.qc {
  grid-area: form;
  background: #fff;
  border: 1px solid var(--grey-mid);
  border-radius: 16px;
  padding: 20px;
}
.qc h2 {
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0 0 12px;
  outline: none;
}

/* ─── Right column: review card + estimate panel ─── */
.qc-side {
  grid-area: panel;
  display: grid;
  gap: 16px;
  align-content: start;
}
@media (min-width: 900px) {
  .qc-side {
    position: sticky;
    top: 16px;
  }
}

.qc-review {
  background: #fff;
  border: 1px solid var(--grey-mid);
  border-radius: 16px;
  padding: 14px 16px;
}
.qc-review-head {
  display: flex;
  justify-content: space-between;
  width: 100%;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
}
.qc-review-rooms,
.qc-review-items {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.qc-review-rooms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.qc-review-rooms li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--grey-light);
  border-radius: 8px;
  padding: 4px 10px 4px 6px;
  font-size: 0.82rem;
  font-weight: 700;
}
.qc-review-rooms img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.qc-review-rooms small {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.qc-review-items {
  border-top: 1px solid var(--grey-mid);
}
/* Long lists scroll inside the card so the sticky column stays on screen. */
@media (min-width: 900px) {
  .qc-review-items {
    max-height: 45vh;
    overflow-y: auto;
  }
}
.qc-review-items li:last-child {
  border-bottom: 0;
}
.qc-review-items li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.88rem;
  padding: 7px 0;
  border-bottom: 1px solid var(--grey-mid);
}
.qc-review-items li span:last-child {
  color: var(--text-muted);
  white-space: nowrap;
}

/* ─── Estimate panel ─── */
.qc-panel {
  background: #fff;
  border: 1px solid var(--grey-mid);
  border-top: 6px solid var(--yellow);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
@media (min-width: 900px) {
  .qc-panel {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    text-align: center;
    padding: 16px 20px;
    gap: 10px;
  }
}

.qc-panel-volume {
  display: flex;
  flex-direction: column;
  flex: 1 1 140px;
}
.qc-panel-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.qc-panel-number {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.qc-panel-number sup {
  font-size: 0.45em;
  font-weight: 600;
  margin-left: 3px;
  color: var(--text-muted);
}
.qc-panel-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}
@media (min-width: 900px) {
  .qc-panel-volume,
  .qc-panel-rec,
  .qc-panel-note {
    flex: none;
  }
  .qc-panel-volume {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--grey-mid);
  }
  .qc-panel-number {
    font-size: 2.4rem;
  }
}

.qc-panel-recs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  flex: 1 1 260px;
}
@media (min-width: 900px) {
  .qc-panel-recs {
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .qc-panel-rec + .qc-panel-rec {
    padding-top: 14px;
    border-top: 1px solid var(--grey-mid);
  }
}

.qc-panel-rec {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  flex: 1 1 200px;
}
.qc-panel-rec img {
  grid-row: span 3;
  width: 56px;
  height: 40px;
  object-fit: contain;
}
.qc-panel-rec strong {
  font-size: 0.95rem;
  line-height: 1.2;
}
@media (min-width: 900px) {
  .qc-panel-rec {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .qc-panel-rec img {
    width: 100%;
    max-width: 130px;
    height: 72px;
  }
  .qc-panel-rec strong {
    font-size: 1.05rem;
  }
}

.qc-badge {
  justify-self: start;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a6d00;
  border: 1px solid var(--yellow-dark);
  background: #fffbe8;
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}

@media (max-width: 899px) {
  .qc-panel-note {
    flex-basis: 100%;
  }
}
.qc-panel-note {
  margin: 0;
  padding: 8px 12px;
  background: #fffbe8;
  border-left: 4px solid var(--yellow-dark);
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #4a3d00;
  text-align: left;
}
.qc-panel-note strong {
  color: var(--text);
}

/* ─── Progress ─── */
.qc-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.qc-dot {
  width: 28px;
  height: 6px;
  border-radius: 3px;
  background: var(--grey-mid);
}
.qc-dot.is-on {
  background: var(--yellow);
}
.qc-progress-text {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.qc-reset {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  padding: 3px 8px;
  border: 1px solid var(--grey-mid);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.qc-reset:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* ─── Top bar: service + estimate method ─── */
.qc-top {
  grid-area: top;
  display: grid;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--grey-mid);
  border-radius: 16px;
  padding: 20px;
}
@media (min-width: 900px) {
  .qc-top {
    gap: 18px;
  }
  .qc-top .qc-top-label {
    gap: 10px;
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
  .qc-top .qc-service {
    padding: 7px 12px;
  }
  .qc-top .qc-service-icon {
    width: 36px;
    height: 36px;
  }
}
.qc-top-group {
  display: flex;
  flex-direction: column;
}
.qc-top-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 10px;
}

/* Service cards */
.qc-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.qc-service {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 2px solid var(--grey-mid);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s, background 0.15s;
}
.qc-service:hover {
  border-color: var(--yellow-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.qc-service.is-on {
  background: var(--yellow);
  border-color: var(--yellow-dark);
  box-shadow: 0 6px 18px rgba(231, 189, 2, 0.35);
}
.qc-service-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--grey-light);
}
.qc-service.is-on .qc-service-icon {
  background: var(--black);
  color: var(--yellow);
}
.qc-service-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.qc-service-text strong {
  font-size: 0.98rem;
}
.qc-service-text small {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.qc-service.is-on .qc-service-text small {
  color: #4a3d00;
}
.qc-service-check {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--black);
  color: var(--yellow);
  animation: qc-pop 0.25s ease-out;
}
@media (max-width: 599px) {
  .qc-service {
    flex-direction: column;
    text-align: center;
    gap: 6px;
    padding: 10px 6px;
  }
  .qc-service-text small {
    display: none;
  }
}

@keyframes qc-pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qc-service-check {
    animation: none;
  }
  .qc-service:hover {
    transform: none;
  }
}

/* ─── Form fields ─── */
.qc-row {
  display: grid;
  gap: 0 12px;
}
@media (min-width: 480px) {
  .qc-row {
    grid-template-columns: 1fr 1fr;
  }
}
.qc-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 10px;
}

.qc-columns {
  display: grid;
  gap: 16px;
  margin-bottom: 4px;
}
@media (min-width: 600px) {
  .qc-columns {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.qc-field {
  margin-bottom: 12px;
}
.qc-field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 4px;
}
.qc-field input,
.qc-field select,
.qc-field textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 1rem;
  padding: 10px 12px;
  border: 1.5px solid var(--grey-mid);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}
.qc-field input:focus,
.qc-field select:focus,
.qc-field textarea:focus {
  outline: none;
  border-color: var(--black);
}
.qc-field input[aria-invalid='true'],
.qc-field select[aria-invalid='true'] {
  border-color: var(--error);
}
.qc-error {
  color: var(--error);
  font-size: 0.85rem;
  margin: 4px 0 0;
}

.qc-address {
  border: 0;
  border-left: 3px solid var(--yellow);
  margin: 0;
  padding: 0 0 0 12px;
  min-width: 0;
}
.qc-address legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 24px;
  font-weight: 700;
  padding: 0;
  margin-bottom: 8px;
}
.qc-address legend .qc-legend-check {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  align-items: center;
}
.qc-storage-note {
  margin: 4px 0 0;
}
.qc-address .qc-field {
  margin-bottom: 8px;
}

.qc-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 0.92rem;
}
.qc-check input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: var(--black);
}

.qc-extras {
  border: 0;
  padding: 0;
  margin: 4px 0 8px;
  display: grid;
  gap: 0 16px;
}
@media (min-width: 400px) {
  .qc-extras {
    grid-template-columns: 1fr 1fr;
  }
}
.qc-extras legend {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
  padding: 0;
}
.qc-extras .qc-check {
  margin-bottom: 8px;
}

/* ─── Buttons ─── */
.qc-nav {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.qc-btn {
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 13px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  background: var(--yellow);
  color: var(--black);
}
.qc-btn:hover {
  background: var(--yellow-dark);
}
.qc-btn-ghost {
  flex: 0 0 auto;
  background: var(--grey-light);
}
.qc-btn-ghost:hover {
  background: var(--grey-mid);
}

.qc-link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: underline;
  cursor: pointer;
}
.qc-alt {
  display: block;
  margin: 14px auto 0;
}

.qc-aside {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 16px 0 0;
}
.qc-aside a {
  color: var(--text);
}

.qc-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  background: var(--grey-light);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}
.qc-summary dt {
  color: var(--text-muted);
}
.qc-summary dd {
  margin: 0;
  font-weight: 600;
}

.qc-layout button:focus-visible,
.qc-layout a:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 2px;
}

/* ─── Item picker ─── */
.ip-search {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: 10px 12px;
  border: 1.5px solid var(--grey-mid);
  border-radius: 10px;
  margin-bottom: 8px;
}
.ip-search:focus {
  outline: none;
  border-color: var(--black);
}
.ip-rooms {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 24px 6px 2px;
  margin-bottom: 6px;
  scrollbar-width: thin;
  /* Fade the right edge so a cut-off chip reads as "scroll for more". */
  mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
}
.ip-rooms button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--grey-mid);
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  white-space: nowrap;
  transition: border-color 0.15s, background-color 0.15s, transform 0.1s;
}
.ip-rooms button:active {
  transform: scale(0.96);
}
.ip-rooms button.is-on {
  background: var(--black);
  border-color: var(--black);
  color: var(--yellow);
}
.ip-badge {
  background: var(--yellow);
  color: var(--black);
  border-radius: 999px;
  font-size: 0.72rem;
  min-width: 18px;
  padding: 0 5px;
  text-align: center;
}
.ip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(34dvh, 360px);
  overflow-y: auto;
  border: 1px solid var(--grey-mid);
  border-radius: 10px;
}
.ip-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--grey-light);
  transition: background-color 0.15s;
}
.ip-row:last-child {
  border-bottom: 0;
}
.ip-row.is-on {
  background: #fffbe8;
}
.ip-row img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: 0 0 auto;
}
.ip-name {
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.25;
}
.ip-name small {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.ip-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ip-stepper button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--grey-mid);
  background: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.ip-stepper button:last-child {
  background: var(--yellow);
  border-color: var(--yellow-dark);
  box-shadow: 0 2px 0 var(--yellow-dark);
}
.ip-stepper button:active {
  transform: translateY(1px) scale(0.94);
}
.ip-stepper button:last-child:active {
  box-shadow: 0 0 0 var(--yellow-dark);
}
@media (hover: hover) {
  .ip-rooms button:not(.is-on):hover {
    border-color: var(--black);
  }
  .ip-row:hover {
    background: var(--grey-light);
  }
  .ip-row.is-on:hover {
    background: #fff6cc;
  }
  .ip-stepper button:hover {
    border-color: var(--black);
  }
  .ip-stepper button:last-child:hover {
    background: var(--yellow-dark);
    border-color: var(--yellow-dark);
  }
}
.ip-stepper span {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
}
.ip-empty {
  padding: 16px;
  color: var(--text-muted);
}

/* Short desktop screens (e.g. 1280×720): tighten spacing so every step still fits. */
@media (min-width: 900px) and (max-height: 780px) {
  .qc {
    padding: 14px 18px;
  }
  .qc-top {
    padding: 14px 18px;
    gap: 16px;
  }
  .qc-top-label {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
  .qc-progress {
    top: 15px;
    right: 18px;
  }
  .qc-progress {
    margin-bottom: 8px;
  }
  .qc h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  .qc-field {
    margin-bottom: 8px;
  }
  .qc-address .qc-field {
    margin-bottom: 5px;
  }
  .qc-address .qc-check {
    margin-bottom: 4px;
  }
  .qc-columns {
    margin-bottom: 0;
  }
  .qc-field label {
    margin-bottom: 2px;
  }
  .qc-field input,
  .qc-field select,
  .qc-field textarea {
    padding: 7px 10px;
  }
  .qc-panel {
    padding: 10px 16px;
    gap: 6px;
  }
  .qc-panel-number {
    font-size: 2rem;
  }
  .qc-panel-rec img {
    height: 46px;
  }
}

/* Phones: placed last so it overrides the base rules above. */
@media (max-width: 899px) {
  .qc-panel {
    display: none;
  }
  .qc {
    padding: 16px;
  }
}

/* Webflow code component wrapper: stands in for the standalone page's :root, body and .quote-screen styles. */
.qc-embed {
  --yellow: #ffdd59;
  --yellow-dark: #e7bd02;
  --black: #161616;
  --grey-light: #f8f8f8;
  --grey-mid: #eaeaea;
  --text: #161616;
  --text-muted: #5c5c5c;
  --error: #c62828;

  display: flex;
  flex-direction: column;
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

/* Desktop: the calculator fills one screen (less room for the site's navbar); the form card scrolls inside if needed. */
@media (min-width: 900px) and (min-height: 600px) {
  .qc-embed {
    height: clamp(600px, calc(100dvh - 120px), 880px);
  }
}

/* Phones: leave room for the calculator's fixed summary bar. */
@media (max-width: 899px) {
  .qc-embed {
    padding-bottom: 80px;
  }
}

