﻿@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;
}
.hw-sectioned-form .umbraco-forms-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 3rem;
}
.hw-sectioned-form .umbraco-forms-navigation .col-md-12 {
  padding-left: 0;
}
.hw-sectioned-form .umbraco-forms-navigation > * {
  grid-column: 2;
  min-width: 0;
}
.hw-sectioned-form .umbraco-forms-navigation .btn.primary,
.hw-sectioned-form .umbraco-forms-navigation input[type=submit],
.hw-sectioned-form .umbraco-forms-navigation button[type=submit] {
  padding: 1rem 2.75rem;
  font-size: 1.25rem;
  line-height: 1.2;
}
@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;
  }
  .hw-sectioned-form .umbraco-forms-navigation {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
  .hw-sectioned-form .umbraco-forms-navigation > * {
    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);
}

/* "See example image" links in a field's help text. Decoded from the editor's
   description HTML by sectioned-form-headings.js, then wired for hover/tap by
   image-choice.js — mirroring the Image Choice card behaviour.
   The theme strips link underlines with `text-decoration: none !important`, so we
   need !important here to restore the affordance (the `a` selector matches the
   theme rule's specificity; custom.css loads last, so this wins). */
a.image-preview {
  text-decoration: underline !important;
  cursor: zoom-in;
}

/* Hover preview for .image-preview links in field help text. image-choice.js drops
   this into the link's field wrapper (.umbraco-forms-field, already position:relative),
   and these rules place it in the form's empty LEFT column — identical to the Image
   Choice popup (same width / right-anchor / card styling). Touch / narrow screens
   skip the hover and tap straight through to the fullscreen modal above. */
.hw-image-preview-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-preview-popup.is-open {
  opacity: 1;
  visibility: visible;
}
.hw-image-preview-popup img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
}

/*# sourceMappingURL=data:application/json;charset=utf-8,%7B%22version%22:3,%22sourceRoot%22:%22%22,%22sources%22:%5B%22file:///C:/Websites/HutchwilcoV2/HutchWilcoV2/wwwroot/css/Hutchwilco/custom.scss%22%5D,%22names%22:%5B%5D,%22mappings%22:%22;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;;AAAA;;AAAA;AAAA;AAAA;AAAA;AA0BI;EACI;;AAIJ;EACI;EAIA;EACA,YAlBa;EAmBb,SAlBa;EAmBb;EACA;EACA;EACA;EACA;;AAEA;EACI;EACA;;AAWJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAcJ;EACI;EACA;EACA;;AAOA;EACI;EACA;EACA;EACA;EACA;EACA;;AAGR;EACI;EACA;;AAIJ;EACI;;AAOR;EACI;EACA;EACA,YApGa;;AAsGb;EACI;;AAGJ;EACI;EACA;;AAGJ;AAAA;AAAA;EAGI;EACA;EACA;;AAKR;EAEI;IACI;IACA;IACA;;EAKA;IACI;IACA;;EAGJ;IACI;IACA;;EAGJ;IACI;;EAIR;IACI;IACA;;EAEA;IACI;;;;AAOhB;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA6BA;EACI;EACA;EACA;EACA;EACA;EAOA;EAOA;;AAGA;EACI;EACA;EACA;EACA,KAnCI;EAoCJ;EACA;EACA;EACA;EACA;EACA;;AAKJ;EACI;EACA;EACA;EACA;EACA;;AAIJ;EACI;EACA,WAxDU;EAyDV;EACA;EACA;EACA;EACA,eA3DY;EA4DZ;;AAKJ;EACI;EACA;EACA;EACA;;AAMJ;EACI;EACA;EACA;EACA;EACA,OA7EY;EA8EZ;EACA;EACA;EACA,eApFY;EAqFZ;EACA;EACA;EACA;EACA;EACA;;AAGJ;EACI;EACA;EACA;EACA;EACA;;AAIJ;EACI;EACA;EACA;EACA;EACA;;AAKJ;EACI;EACA;EACA,OApHW;EAqHX,QArHW;EAsHX;EACA;EACA;EACA;;AAEA;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAIR;EACI;EACA;EACA;EACA;;AAGJ;EACI;EACA;;AAIJ;EACI;EACA;EACA;EACA;;AAGJ;EACI;EACA;EACA;EACA;;AAIJ;EACI;;AAIJ;EACI;EACA;;AAMJ;EACI;IACI;IACA;;;AAaR;EACI;IACI;;EAGJ;IACI;IACA;IACA;;;AAMR;EACI;IACI;;EAGJ;IACI;IACA;IACA;;;;AAKZ;AAAA;AAAA;AAGA;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA,eApPY;EAqPZ;EACA;;;AAIR;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA;EACI;EACA;;;AAGJ;AAAA;AAAA;AAAA;AAAA;AAKA;EACI;EACA;EACA;EACA;EACA,OA5QgB;EA6QhB;EACA;EACA;EACA,eAnRgB;EAoRhB;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;EACA;;AAGJ;EACI;EACA;EACA;EACA;EACA%22%7D */