/**
 * Shared Make quote — general enquiry (inquiry_mode=general).
 * Same shell as product quote; only field grid + preview treatment differ on PC/tablet.
 * Phone ≤960: preview matches product in-flow (no absolute / min-height empty band).
 */
body.app-detail-page .make-ffc.quote-section,
body.app-detail-page .quote-section.make-ffc {
  /* section itself carries .make-ffc */
}

:is(body.pl-line-page, body.app-detail-page) .make-ffc.quote-enquiry--general .project-stages {
  gap: 16px;
}

:is(body.pl-line-page, body.app-detail-page) .make-ffc.quote-enquiry--general .builder-fields > label.full-width {
  grid-column: span 2;
}

/* PC: absolute preview in fixed-height frame */
:is(body.pl-line-page, body.app-detail-page) .make-ffc.quote-enquiry--general .quote-cable-preview {
  position: relative;
  display: block;
  min-height: 340px;
  padding: 18px 24px 16px;
  overflow: hidden;
}

:is(body.pl-line-page, body.app-detail-page) .make-ffc.quote-enquiry--general .quote-cable-preview img {
  position: absolute;
  inset: 8px -10% 36px;
  z-index: 0;
  display: block;
  box-sizing: border-box;
  width: 120%;
  height: calc(100% - 44px);
  max-width: none;
  max-height: none;
  min-height: 0;
  margin: 0;
  object-fit: contain;
  object-position: center top;
  transform: none;
  pointer-events: none;
}

:is(body.pl-line-page, body.app-detail-page) .make-ffc.quote-enquiry--general .quote-cable-label {
  position: relative;
  z-index: 1;
}

:is(body.pl-line-page, body.app-detail-page) .make-ffc.quote-enquiry--general .quote-cable-preview figcaption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 16px;
  z-index: 1;
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 1279px) { /* official tablet top; was 1200 */
  :is(body.pl-line-page, body.app-detail-page) .make-ffc.quote-enquiry--general .project-stages {
    gap: 16px;
  }
}

/* Tablet only: tighten absolute frame (do not bleed into phone) */
@media (max-width: 1279px) and (min-width: 961px) {
  :is(body.pl-line-page, body.app-detail-page) .make-ffc.quote-enquiry--general .quote-cable-preview {
    min-height: 300px;
  }

  :is(body.pl-line-page, body.app-detail-page) .make-ffc.quote-enquiry--general .quote-cable-preview img {
    inset: 8px -8% 32px;
    width: 116%;
    height: calc(100% - 40px);
  }
}

/* Phone: same in-flow preview as product quote — one treatment, both shells */
@media (max-width: 960px) {
  :is(body.pl-line-page, body.app-detail-page) .make-ffc.quote-enquiry--general .builder-fields > label.full-width {
    grid-column: auto;
  }

  :is(body.pl-line-page, body.app-detail-page) .make-ffc.quote-enquiry--general .quote-cable-preview {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: auto;
    overflow: visible;
    padding: 14px 18px 12px;
  }

  :is(body.pl-line-page, body.app-detail-page) .make-ffc.quote-enquiry--general .quote-cable-preview img {
    position: static;
    inset: auto;
    z-index: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 160px;
    min-height: 0;
    margin-block: 8px;
    object-fit: contain;
    object-position: center;
  }

  :is(body.pl-line-page, body.app-detail-page) .make-ffc.quote-enquiry--general .quote-cable-preview figcaption {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
  }
}
