@charset "UTF-8";
/* =============================================================================
   Hutchwilco — custom front-end SCSS
   All bespoke styling lives here and compiles to custom.css
   (see compilerconfig.json). Do NOT edit the packaged/theme CSS — layer
   nested overrides in this file instead.
   ============================================================================= */
/* -----------------------------------------------------------------------------
   Section-by-headings form layout
   -----------------------------------------------------------------------------
   Applied to an Umbraco Forms block when the editor enables the
   "sectionByHeadings" property on USN_CB_Form. The block renderer
   (Views/Partials/Hutchwilco/Blocks/Form.cshtml) then adds .hw-sectioned-form.

   Each Forms "section" is a <fieldset class="umbraco-forms-fieldset"> whose
   caption renders as a <legend> (the heading, e.g. "1. Send us your details"),
   sibling to <div class="row-fluid"> (the fields). We turn each fieldset into a
   two-column grid:

        [  heading  ] [        fields        ]

   On narrow screens it collapses to one column. Because the heading is first in
   source order, it naturally stacks ABOVE its own fields — no markup reordering
   needed, so the heading always pairs with the correct section.
   ----------------------------------------------------------------------------- */
.hw-sectioned-form > .inner {
  padding: 0 0 0 0;
}
.hw-sectioned-form .umbraco-forms-fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 3rem;
  row-gap: 0.75rem;
  align-items: start;
  margin: 0 0 0 0;
  padding: 0 0 0 0;
  border: 0;
  border-top: 0;
}
.hw-sectioned-form .umbraco-forms-fieldset:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.hw-sectioned-form .umbraco-forms-fieldset > :not(.row-fluid) {
  grid-column: 1;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  font-family: inherit;
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: inherit;
  text-wrap: balance;
}
.hw-sectioned-form .umbraco-forms-fieldset > legend {
  float: left;
  width: 100%;
  box-sizing: border-box;
}
.hw-sectioned-form .umbraco-forms-fieldset > legend .sub-heading {
  display: block;
  margin-top: 0.4rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
  opacity: 0.85;
}
.hw-sectioned-form .umbraco-forms-fieldset > .row-fluid {
  grid-column: 2;
  min-width: 0;
}
.hw-sectioned-form .umbraco-forms-fieldset:not(:has(> :not(.row-fluid))) > .row-fluid {
  grid-column: 1/-1;
}
@media (max-width: 900px) {
  .hw-sectioned-form .umbraco-forms-fieldset {
    grid-template-columns: 1fr;
    column-gap: 0;
    padding-top: 1.75rem;
  }
  .hw-sectioned-form .umbraco-forms-fieldset > legend {
    float: none;
    width: auto;
  }
  .hw-sectioned-form .umbraco-forms-fieldset > :not(.row-fluid) {
    grid-column: 1;
    margin-bottom: 0.25rem;
  }
  .hw-sectioned-form .umbraco-forms-fieldset > .row-fluid {
    grid-column: 1;
  }
}

/* -----------------------------------------------------------------------------
   Image Choice field type
   -----------------------------------------------------------------------------
   Frontend styling for the custom Umbraco Forms "Image Choice" field
   (HutchwilcoV2.FieldTypes.ImageChoiceField). Markup is emitted by
   Views/Partials/Forms/Themes/default/Fieldtypes/FieldType.ImageChoice.cshtml.

   Layout per option (matches the supplied design):

        [ white image card ]  ( ) Heading
                                  Description
                                  Hover over image for Key Identifiers

   Options stack vertically. Text uses `color: inherit` so it picks up the
   form container's colour — white on the red recall form, dark on a light form.
   These styles previously lived in an inline <style> block in the partial; they
   were moved here so all bespoke styling lives in custom.scss (and so the CSS is
   served once site-wide rather than inlined per request).
   ----------------------------------------------------------------------------- */
.hw-image-choice {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin: 0.5rem 0;
  padding: 0;
  container: hwic/inline-size;
  font-size: var(--body-typography_font-size_xl, 16px);
}
.hw-image-choice__option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: inherit;
}
.hw-image-choice__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.hw-image-choice__media {
  flex: 0 0 220px;
  max-width: 220px;
  aspect-ratio: 1/1;
  box-sizing: border-box;
  overflow: hidden;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
}
.hw-image-choice__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hw-image-choice__popup {
  position: absolute;
  top: 0;
  right: calc(100% + 1rem);
  z-index: 20;
  width: clamp(300px, 32vw, 620px);
  max-width: 90vw;
  box-sizing: border-box;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.hw-image-choice__popup-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
}
.hw-image-choice__body {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  min-width: 0;
}
.hw-image-choice__radio {
  position: relative;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.hw-image-choice__radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #15182c;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s ease;
}
.hw-image-choice__text {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}
.hw-image-choice__heading {
  font-weight: 700;
  line-height: 1.3;
}
.hw-image-choice__description {
  font-weight: 700;
  line-height: 1.4;
  color: inherit;
  white-space: pre-line;
}
.hw-image-choice__hover {
  font-style: italic;
  line-height: 1.4;
  color: inherit;
  opacity: 0.95;
}
.hw-image-choice__input:checked ~ .hw-image-choice__body .hw-image-choice__radio::after {
  transform: translate(-50%, -50%) scale(1);
}
.hw-image-choice__input:focus-visible ~ .hw-image-choice__body .hw-image-choice__radio {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
@media (hover: hover) and (min-width: 901px) {
  .hw-image-choice__media:hover ~ .hw-image-choice__popup {
    opacity: 1;
    visibility: visible;
  }
}
@container hwic (max-width: 360px) {
  .hw-image-choice__option {
    flex-direction: column;
  }
  .hw-image-choice__media {
    flex-basis: auto;
    width: 100%;
    max-width: 260px;
  }
}
@media (max-width: 600px) {
  .hw-image-choice__option {
    flex-direction: column;
  }
  .hw-image-choice__media {
    flex-basis: auto;
    width: 100%;
    max-width: 260px;
  }
}

/* Fullscreen image modal — opened by wwwroot/scripts/Hutchwilco/image-choice.js on
   touch / narrow screens (where the hover popup is suppressed). Lives at <body> level,
   so it sits outside the .hw-image-choice block. Any click on the overlay, or Esc, closes it. */
.hw-image-choice-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vw;
  background: rgba(0, 0, 0, 0.85);
  cursor: zoom-out;
}
.hw-image-choice-modal.is-open {
  display: flex;
}
.hw-image-choice-modal img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/*# sourceMappingURL=custom.css.map */
