/* R10-CAMP-01 · Enquiry form. Navy is the Classic band (.cp-enquire in campaign.css, the badges
   in _base.css) and stays as is; this file holds the head spacing and the light backgrounds. */

/* the same gap over the form whether or not the intro is filled in */
.cb-enquire .cp-head { margin-bottom: 56px; }
.cb-enquire .cp-head > :last-child { margin-bottom: 0; }

/* ---- white / sand / light blue: ink type, as on the contact page. The inputs are the
   site's white fields with their hairline border and navy arrow on every background. ---- */
.cb-enquire:not(.cb-dark) { color: var(--ink); }
.cb-enquire:not(.cb-dark) .serif-title,
.cb-enquire:not(.cb-dark) .cp-sub,
.cb-enquire:not(.cb-dark) .field label,
.cb-enquire:not(.cb-dark) .cb-enq-field legend,
.cb-enquire:not(.cb-dark) .form-thanks { color: var(--ink); }
.cb-enquire:not(.cb-dark) .cp-intro { color: var(--ink-soft); }

/* "I'm interested in" badges: site.css's navy look (navy sweep, navy when picked) with a navy
   outline, where _base.css paints them white for the band; site.css's grey hairline would
   fade into the light blue */
.cb-enquire:not(.cb-dark) .enq-badge span { color: var(--navy); border-color: rgba(80, 109, 133, .55); }   /* --navy, thinned */
.cb-enquire:not(.cb-dark) .enq-badge span::before { background: var(--navy); }
.cb-enquire:not(.cb-dark) .enq-badge input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
@media (hover: hover) {
  .cb-enquire:not(.cb-dark) .enq-badge input:not(:checked) + span:hover { color: var(--navy); border-color: var(--navy); }
}
@media (hover: hover) and (pointer: fine) {
  /* the navy sweep runs here (site.css), so the label turns white on it */
  .cb-enquire:not(.cb-dark) .enq-badge input:not(:checked) + span:hover { color: var(--white); }
}
.cb-enquire:not(.cb-dark) .cb-enq-clear { color: var(--navy); }
.cb-enquire:not(.cb-dark) .cb-enq-clear:focus-visible { outline-color: var(--navy); }

/* light blue: the navy pill's light-blue sweep would melt into the section, so a navy ring
   keeps the button's edge (the .inspired / .cp-vbody convention) */
.cb-enquire.cb-bg-water .pill-navy {
  outline: 1.5px solid transparent; outline-offset: -1.5px;
  transition: background .3s ease, color .35s ease, border-color .3s ease,
              box-shadow .35s ease, opacity .2s ease, outline-color .25s ease .15s;
}
.cb-enquire.cb-bg-water .pill-navy:hover { outline-color: var(--navy); }
.cb-enquire.cb-bg-water .pill-navy:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
/* navy uses the white pill, which site.css's full-width phone button rule doesn't list */
@media (max-width: 560px) {
  .cb-enquire .pill-white.submit { display: flex; width: 100%; justify-content: center; text-align: center; }
}

/* ---- "Show the form: Popup": the same section in a dialog over the page, opened by any
   button that points at it (assets/js/campaign/enquire-popup.js) ---- */
.cb-enq-modal {
  position: fixed; inset: 0; z-index: 1000; overflow-y: auto; overscroll-behavior: contain;
  padding: 40px 16px; background: rgba(20, 32, 43, .62);
}
.cb-enq-modal[hidden] { display: none; }
.cb-enq-modal-box { position: relative; max-width: 920px; margin: 0 auto; }
.cb-enq-modal .cb-enquire { padding: 64px 0 72px; border-radius: 8px; }   /* the location button's radius */
.cb-enq-modal .cb-enquire .cp-head { margin-bottom: 36px; }
.cb-enq-modal .reveal { opacity: 1; transform: none; }   /* nothing to scroll into view in a dialog */
.cb-enq-close {
  position: absolute; top: 10px; right: 12px; z-index: 2; width: 44px; height: 44px; padding: 0;
  border: 0; background: none; color: var(--white); font-size: 34px; line-height: 1; cursor: pointer;
}
.cb-enq-modal-box:has(.cb-enquire:not(.cb-dark)) .cb-enq-close { color: var(--ink); }
.cb-enq-close:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
html.cb-enq-open { overflow: hidden; }
@media (max-width: 560px) {
  .cb-enq-modal { padding: 12px 8px; }
  .cb-enq-modal .cb-enquire { padding: 52px 0 44px; }
}

/* popup, wide screens: one centred column; a form that would stand taller than about 650px
   goes two-column instead (heading left, form right: .is-2col, set by enquire-popup.js) */
@media (min-width: 900px) {
  .cb-enq-modal { display: flex; align-items: center; padding: 24px; }
  .cb-enq-modal[hidden] { display: none; }
  .cb-enq-modal-box { width: 100%; max-width: 640px; margin: auto; }
  .cb-enq-modal .cb-enquire { padding: 56px 0 52px; }
  .cb-enq-modal .cb-enquire > .container { padding: 0 56px; }
  .cb-enq-modal .cb-enquire .cp-head { margin-bottom: 28px; }
  .cb-enq-modal .cp-form { max-width: none; margin: 0; gap: 12px; }
  .cb-enq-modal .cp-form .field { margin: 0; }
  .cb-enq-modal .cp-form .submit { margin-top: 8px; }
  .cb-enq-modal .cp-form input, .cb-enq-modal .cp-form select { height: 44px; padding-top: 0; padding-bottom: 0; }
  .cb-enq-modal .cp-form textarea { height: 76px; min-height: 0; }

  .cb-enq-modal.is-2col .cb-enq-modal-box { max-width: 1120px; }
  .cb-enq-modal.is-2col .cb-enquire { padding: 72px 0 56px; }   /* the close button sits in the top corner */
  .cb-enq-modal.is-2col .cb-enquire > .container { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
  .cb-enq-modal.is-2col .cb-enquire .cp-head { margin: 0; text-align: left; }
  .cb-enq-modal.is-2col .cb-enquire .cp-head > * { margin-left: 0; margin-right: 0; text-align: left; }
}


/* popup: no visible labels (the placeholders say what each field is); kept for screen readers */
.cb-enq-modal .cp-form .field > label {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.cb-enq-modal .cp-form .field { position: relative; }
.cb-enq-modal .cp-form ::placeholder { color: #5b6b78; opacity: 1; }
.cb-enq-modal .cp-form select:has(option[value=""]:checked) { color: #5b6b78; }

/* a "Tick boxes" question: the label on its own line, the options as badges under it */
.cb-enquire .cb-choice-field { animation: none; gap: 8px 6px; }
.cb-enquire .cb-choice-field legend { float: none; width: 100%; margin: 0 0 8px; color: var(--white); font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.cb-enquire:not(.cb-dark) .cb-choice-field legend { color: var(--ink); }

/* the Guide download's details pop-up: after sending, the thank-you and the download button */
.cb-guide-modal .cb-guide-ready { justify-items: center; text-align: center; }
.cb-guide-modal .cb-guide-ready .form-thanks { padding: 8px 0 20px; }
.cb-guide-modal .cb-enquire:not(.cb-dark) .cp-intro { color: var(--ink-soft); }

/* the guide's own image, title and a line on what happens, beside (or above) the form */
.cb-guide-modal .cb-guide-modal-media { margin: 0 auto 22px; max-width: 200px; }
.cb-guide-modal .cb-guide-modal-media img { display: block; width: 100%; aspect-ratio: 572 / 500; object-fit: cover; border-radius: 2px; }
@media (min-width: 900px) {
  .cb-guide-modal.is-2col .cb-guide-modal-media { margin: 0 0 26px; max-width: 340px; }
}
@media (max-width: 560px) {
  .cb-guide-modal .cb-guide-modal-media { max-width: 150px; margin-bottom: 16px; }
}

/* the download button: an icon after the label, and the site's CTA sweep (the white pill has
   none of its own: light blue wipes across it; the navy and light-blue pills bring theirs) */
.cb-guide-dl { display: inline-flex; align-items: center; gap: 10px; }
.cb-guide-dl .cb-dl-icon { flex: none; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.cb-guide-dl:hover .cb-dl-icon { transform: translateY(2px); }
.cb-guide-dl.pill-white { position: relative; overflow: hidden; isolation: isolate; transition: box-shadow .35s ease; }
.cb-guide-dl.pill-white::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--water);
  transform: translateX(-115%) skewX(-12deg);
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.cb-guide-dl.pill-white:hover::before { transform: translateX(0) skewX(0); }
.cb-guide-dl.pill-white:hover { box-shadow: 0 14px 26px -14px rgba(10, 20, 30, .55); }
.cb-guide-dl:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .cb-guide-dl.pill-white::before, .cb-guide-dl .cb-dl-icon { transition: none; }
}

/* "Pop-up image" sizes (Medium is the base above); Original shows the whole image, uncropped */
.cb-guide-modal .cb-gimg-small { max-width: 140px; }
.cb-guide-modal .cb-gimg-large, .cb-guide-modal .cb-gimg-original { max-width: 300px; }
/* width/height attributes hold its space before it loads, so the one-or-two-column check measures true */
.cb-guide-modal .cb-guide-modal-media img { height: auto; }
.cb-guide-modal .cb-gimg-original img { aspect-ratio: auto; object-fit: contain; }
@media (min-width: 900px) {
  .cb-guide-modal.is-2col .cb-gimg-small { max-width: 220px; }
  .cb-guide-modal.is-2col .cb-gimg-large, .cb-guide-modal.is-2col .cb-gimg-original { max-width: 100%; }
}
@media (max-width: 560px) {
  .cb-guide-modal .cb-gimg-small { max-width: 110px; }
  .cb-guide-modal .cb-gimg-large, .cb-guide-modal .cb-gimg-original { max-width: 220px; }
}
