/* =====================================================================
   HEXNET Agency Services — consultation funnel (restored 1:1)
   HEXNET-AGENCY-CONSULTATION-FINISHLINE-001

   Values are the VERBATIM legacy "Schedule a Free Strategy Session" modal
   styles (D:\Clients\HEXNET\Hexnet2020\assets\css\{styles.css,bootstrap.min.css}),
   re-scoped under #schedule-modal so the funnel's base primitives (.container,
   .row, .hx-* grid, .form-control, .hx-cta) cannot collide with the site's
   global hexnet.css. Brand blue #007FFD. Base font: Rubik (loaded on agency pages).
   ===================================================================== */

/* Lock page scroll while the full-screen funnel is open (applied to html/body by JS). */
html.acf-noscroll, body.acf-noscroll { overflow: hidden !important; }

/* The funnel renders Rubik to match the original; falls back to the site font if Rubik
   fails to load (independence preserved). */
#schedule-modal,
#schedule-modal * { font-family: 'Rubik', 'Geist', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; box-sizing: border-box; }

/* ===== Modal shell ===== */
#schedule-modal.fullmode-modal {
  position: fixed;
  height: 100%;
  width: 100%;
  overflow: auto;
  z-index: 999999;
  right: 0; left: auto; top: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease-in-out;
  background-color: #fff;
  padding: 240px 15px 30px;
  overflow-y: scroll;
}
#schedule-modal.fullmode-modal.is-show { opacity: 1; visibility: visible; }

#schedule-modal .fullmode-container { max-width: 1300px; margin: 0 auto; }
#schedule-modal .fullmode-content { position: relative; }

/* ===== Base grid primitives (scoped) ===== */
#schedule-modal .container { width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; }
@media (min-width:576px) { #schedule-modal .container { max-width: 540px; } }
@media (min-width:768px) { #schedule-modal .container { max-width: 720px; } }
@media (min-width:992px) { #schedule-modal .container { max-width: 960px; } }
@media (min-width:1200px){ #schedule-modal .container { max-width: 1140px; } }

#schedule-modal .row { display: flex; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; }

#schedule-modal .hx,
#schedule-modal .hx-12,
#schedule-modal .hx-sm-6,
#schedule-modal .hx-md-4, #schedule-modal .hx-md-6,
#schedule-modal .hx-lg-3, #schedule-modal .hx-lg-5, #schedule-modal .hx-lg-6, #schedule-modal .hx-lg-7,
#schedule-modal .hx-xl-2 {
  position: relative; width: 100%; padding-right: 15px; padding-left: 15px;
}
#schedule-modal .hx { flex-basis: 0; flex-grow: 1; max-width: 100%; }
#schedule-modal .hx-12 { flex: 0 0 100%; max-width: 100%; }
@media (min-width:576px) { #schedule-modal .hx-sm-6 { flex: 0 0 50%; max-width: 50%; } }
@media (min-width:768px) {
  #schedule-modal .hx-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  #schedule-modal .hx-md-6 { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width:992px) {
  #schedule-modal .hx-lg-3 { flex: 0 0 25%; max-width: 25%; }
  #schedule-modal .hx-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  #schedule-modal .hx-lg-6 { flex: 0 0 50%; max-width: 50%; }
  #schedule-modal .hx-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
}
@media (min-width:1200px){ #schedule-modal .hx-xl-2 { flex: 0 0 16.666667%; max-width: 16.666667%; } }

#schedule-modal .form-row { display: flex; flex-wrap: wrap; margin-right: -5px; margin-left: -5px; }
#schedule-modal .form-row > .hx,
#schedule-modal .form-row > [class*=hx-] { padding-right: 5px; padding-left: 5px; }
#schedule-modal .form-group { margin-bottom: 1rem; }

/* ===== Titles ===== */
#schedule-modal .fullmode-titles { margin-bottom: 61px; text-align: center; }
#schedule-modal .fullmode-title { font-weight: bold; font-size: 48px; line-height: 60px; text-align: center; letter-spacing: -1px; color: #141313; }
#schedule-modal .fullmode-text { color: #939cae; font-size: 14px; font-weight: 400; margin-top: 15px; }
#schedule-modal .fullmode-subtitle { font-weight: bold; font-size: 14px; line-height: 20px; text-align: center; letter-spacing: 2px; text-transform: uppercase; color: #007FFD; position: relative; margin-bottom: 0; }
#schedule-modal .fullmode-description { font-weight: normal; font-size: 20px; line-height: 26px; text-align: center; color: #757C7E; margin-top: 22px; margin-bottom: 0; }

/* ===== Close / Back controls ===== */
#schedule-modal .fullmode-close.righted { right: 70px; left: auto; }
#schedule-modal .fullmode-close {
  position: absolute; top: 60px; left: 0; right: 0; margin: auto; z-index: 10; padding: 0;
  border: 5px solid rgba(0, 127, 253, 0.2); cursor: pointer; opacity: 0.5; text-transform: uppercase;
  height: 70px; width: 70px; text-align: center; font-size: 12px; overflow: hidden; line-height: 1;
  background-color: #fff; border-radius: 100%; transition: all 0.3s ease-in-out;
}
#schedule-modal .fullmode-close.fullmode-back { left: 70px; right: auto; }
#schedule-modal .fullmode-close.fullmode-back span { background-image: url('/images/agency-funnel/arrowup-white.svg'); background-position: 17px center; }
#schedule-modal .fullmode-close.fullmode-back span:before,
#schedule-modal .fullmode-close.fullmode-back span:after { display: none; }
#schedule-modal .fullmode-close:hover { opacity: 1; }
#schedule-modal .fullmode-close:hover:not(.fullmode-back) span { transform: rotate(90deg); }
#schedule-modal .fullmode-close:hover.fullmode-back span { transform: translateX(-5px); }
#schedule-modal .fullmode-close span {
  width: 100%; height: 100%; display: block; margin: auto;
  transition: transform 0.3s cubic-bezier(0.24, 0.51, 0.18, 0.99);
  position: relative; left: 0; right: 0; top: 0; bottom: 0; background-repeat: no-repeat;
}
#schedule-modal .fullmode-close span:before,
#schedule-modal .fullmode-close span:after {
  position: absolute; content: ""; left: 28px; top: 16px; border-radius: 2px;
  background-color: #007FFD; height: 27px; width: 3px;
}
#schedule-modal .fullmode-close span:before { transform: rotate(45deg); }
#schedule-modal .fullmode-close span:after { transform: rotate(-45deg); }

/* ===== Step 1: company cards ===== */
#schedule-modal .partners .vertical-item { text-align: center; position: relative; margin-bottom: 20px; }
#schedule-modal .partners .vertical-item.with-link {
  background: #FFFFFF; border: 1px solid #E5E5E5; box-shadow: 0px 4px 20px rgba(184, 186, 188, 0.25);
  border-radius: 4px; width: 200px; height: 280px; margin: 0 auto; padding: 60px 0 50px;
  text-align: center; position: relative; margin-bottom: 20px; transition: all 0.2s ease-in;
}
#schedule-modal .vertical-link { display: block; text-decoration: none; }
#schedule-modal .vertical-link:hover .vertical-item.with-link,
#schedule-modal .vertical-link:focus .vertical-item.with-link {
  background: #007FFD; box-shadow: 0px 40px 60px rgba(0, 127, 253, 0.35);
}
#schedule-modal .vertical-link:hover .vertical-item.with-link .vertical-item-icon img,
#schedule-modal .vertical-link:focus .vertical-item.with-link .vertical-item-icon img { filter: brightness(0) invert(1); }
#schedule-modal .vertical-link:hover .vertical-item.with-link p,
#schedule-modal .vertical-link:focus .vertical-item.with-link p { color: #fff; }
#schedule-modal .partners .vertical-item p {
  font-weight: normal; font-size: 22px; line-height: 26px; color: #141313; max-width: 177px;
  margin: 0 auto; transition: all 0.2s ease-in;
}
#schedule-modal .partners .vertical-item .vertical-item-icon { width: 80px; height: 80px; margin: 0 auto 40px; }
#schedule-modal .partners .vertical-item .vertical-item-icon img { height: 100%; width: 100%; object-fit: contain; display: block; transition: filter 0.2s ease-in; }

/* ===== CTA button ===== */
#schedule-modal .hx-cta {
  background: #007FFD; box-shadow: 0px 10px 40px rgba(0, 127, 253, 0.4); border-radius: 6px;
  font-weight: bold; font-size: 12px; letter-spacing: 2px; line-height: 20px; text-transform: uppercase;
  color: #FFFFFF; display: inline-block; padding: 16px 25px; border: none; text-align: center;
  cursor: pointer; transition: all 0.2s ease-in-out;
}
#schedule-modal .hx-cta:focus,
#schedule-modal .hx-cta:hover { box-shadow: 0px 10px 40px rgba(0, 127, 253, 0.4); color: #FFFFFF; background: #141313; text-decoration: none; }
#schedule-modal .hx-cta[disabled] { opacity: .6; cursor: default; background: #007FFD; }
#schedule-modal .hx-cta-secondary {
  display: inline-block; min-width: 260px; padding: 19px 25px; font-weight: bold; font-size: 14px;
  line-height: 20px; text-align: center; letter-spacing: 2px; text-transform: uppercase; color: #007FFD;
  background: #FFFFFF; box-shadow: 0px 20px 40px rgba(0, 127, 253, 0.25); border-radius: 6px;
  border: 2px solid #007FFD; cursor: pointer; transition: all 0.2s ease-in-out; text-decoration: none;
}
#schedule-modal .hx-cta-secondary:focus,
#schedule-modal .hx-cta-secondary:hover { color: #fff; background: #141313; border-color: #141313; }

/* ===== Step 2 + 3 shared form shell ===== */
#schedule-modal .schedule-form { max-width: 573px; margin: 0 auto; }
#schedule-modal .schedule-form .form-label { font-weight: 500; font-size: 11px; line-height: 20px; letter-spacing: 1px; text-transform: uppercase; color: #141313; display: block; margin-bottom: 4px; }
#schedule-modal .schedule-form .form-control {
  display: block; width: 100%; background: #FFFFFF; border: 2px solid #B8BABC; border-radius: 3px;
  font-weight: normal; font-size: 16px; line-height: 35px; color: #141313; height: 50px; padding: 15px 20px;
}
#schedule-modal .schedule-form textarea.form-control { height: auto; line-height: 1.5; }
#schedule-modal .schedule-form .form-control::placeholder { color: #9aa0a6; }
#schedule-modal .schedule-form .form-control:focus { border: 2px solid #007FFD; outline: 0; }

/* Custom checkboxes (step 2 priorities + step-3 inline) */
#schedule-modal .schedule-form [type="checkbox"]:checked,
#schedule-modal .schedule-form [type="checkbox"]:not(:checked) { position: absolute; left: -9999px; }
#schedule-modal .schedule-form [type="checkbox"]:checked + label,
#schedule-modal .schedule-form [type="checkbox"]:not(:checked) + label { position: relative; padding-left: 28px; cursor: pointer; line-height: 20px; display: inline-block; color: #666; font-size: 16px; }
#schedule-modal .schedule-form [type="checkbox"]:checked + label:before,
#schedule-modal .schedule-form [type="checkbox"]:not(:checked) + label:before { content: ''; position: absolute; left: 0; top: 0; width: 22px; height: 22px; background: #FFFFFF; border: 2px solid #007FFD; border-radius: 3px; }
#schedule-modal .schedule-form [type="checkbox"]:checked + label:after,
#schedule-modal .schedule-form [type="checkbox"]:not(:checked) + label:after { content: ''; width: 10px; height: 10px; background: #007FFD; position: absolute; top: 6px; left: 6px; margin: auto; border-radius: 1px; transition: all 0.2s ease; }
#schedule-modal .schedule-form [type="checkbox"]:not(:checked) + label:after { opacity: 0; transform: scale(0); }
#schedule-modal .schedule-form [type="checkbox"]:checked + label:after { opacity: 1; transform: scale(1); }

#schedule-modal .schedule-form .form-check { position: relative; display: block; margin-bottom: 18px; }

/* Step 2 — expanded 15-choice list: wider panel + two readable columns + compact rows. */
#schedule-modal .schedule-form.acf-wide { max-width: 880px; }
#schedule-modal .schedule-form.acf-wide .form-check { margin-bottom: 14px; }
#schedule-modal .acf-step2-foot { max-width: 573px; margin: 12px auto 0; }
#schedule-modal .acf-other-wrap { margin-bottom: 18px; text-align: left; }
#schedule-modal .acf-other-wrap .form-label { display: block; margin-bottom: 6px; }

/* ===== Step 2: intent panels (ChemSignals Demo | Strategy Session) ===== */
#schedule-modal .acf-intent { max-width: 940px; margin: 0 auto; }
#schedule-modal .acf-intent .row { align-items: stretch; }
#schedule-modal .acf-intent-panel {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px;
  width: 100%; height: 100%; min-height: 240px; padding: 44px 28px; margin-bottom: 20px;
  background: #FFFFFF; border: 2px solid #E5E5E5; border-radius: 6px;
  box-shadow: 0px 4px 20px rgba(184, 186, 188, 0.25); cursor: pointer;
  -webkit-transition: all 0.2s ease-in; -o-transition: all 0.2s ease-in; transition: all 0.2s ease-in;
}
#schedule-modal .acf-intent-panel:hover,
#schedule-modal .acf-intent-panel:focus { outline: none; border-color: #007FFD; box-shadow: 0px 20px 40px rgba(0, 127, 253, 0.25); }
#schedule-modal .acf-intent-panel:focus-visible { border-color: #007FFD; box-shadow: 0 0 0 3px rgba(0, 127, 253, 0.4); }
#schedule-modal .acf-intent-title { font-weight: bold; font-size: 23px; line-height: 30px; color: #141313; }
#schedule-modal .acf-intent-sub { font-weight: normal; font-size: 16px; line-height: 24px; color: #757C7E; max-width: 320px; }
#schedule-modal .acf-intent-logo { height: 69px; width: auto; max-width: 300px; object-fit: contain; }

/* Optional field marker + consent line (demo form) */
#schedule-modal .acf-opt { font-weight: 400; font-size: 10px; letter-spacing: 1px; color: #9aa0a6; text-transform: uppercase; }
#schedule-modal .acf-consent { font-size: 13px; line-height: 20px; color: #757C7E; margin: 16px 0 18px; text-align: center; }
#schedule-modal .acf-consent a { color: #007FFD; }
#schedule-modal .schedule-form .cta-links { margin-top: 23px; text-align: center; }
#schedule-modal .schedule-form .cta-links .hx-cta { width: 100%; height: 60px; letter-spacing: 2px; }

#schedule-modal .interested-in { font-weight: normal; font-size: 18px; line-height: 26px; color: #007FFD; margin-bottom: 30px; padding-left: 50px; position: relative; }
#schedule-modal .interested-in:before { content: ''; position: absolute; height: 2px; background: #007FFD; width: 30px; left: 0; top: 0; bottom: 0; margin: auto; }

/* Honeypot — visually removed, kept in the accessibility tree-neutral way (never shown to humans) */
#schedule-modal .hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Inline validation / error line */
#schedule-modal .acf-error { color: #d93025; font-size: 14px; margin-top: 14px; text-align: center; min-height: 18px; }

/* ===== Step 4: success ===== */
#schedule-modal .msgbox-wrapper { position: relative; width: 100%; min-height: calc(100vh - 300px); display: flex; }
#schedule-modal .msg-box { margin: auto; text-align: center; }
#schedule-modal .msg-box .connection-circles { text-align: center; position: relative; margin-bottom: 36px; }
#schedule-modal .msg-box .connection-circles .circles { display: inline-block; height: 200px; position: relative; }
#schedule-modal .msg-box h4 { font-weight: bold; font-size: 48px; line-height: 60px; letter-spacing: -1px; color: #141313; margin: 0 auto 20px; text-align: center; }
#schedule-modal .msg-box p { font-weight: normal; font-size: 20px; line-height: 26px; color: #757C7E; margin: 0 auto 30px; text-align: center; max-width: 560px; }

/* ===== Step visibility (JS-driven) ===== */
#schedule-modal .fullmode-step,
#schedule-modal .fullmode-success { display: none; }
#schedule-modal .fullmode-step.is-active,
#schedule-modal .fullmode-success.is-active { display: block; }
#schedule-modal .fullmode-success.is-active { display: block; }

/* ===== Responsive ===== */
@media only screen and (max-width: 767px) {
  #schedule-modal.fullmode-modal { padding: 150px 12px 30px; }
  #schedule-modal .fullmode-title,
  #schedule-modal .msg-box h4 { font-size: 30px !important; line-height: 35px !important; }
  #schedule-modal .fullmode-titles { margin-bottom: 36px; }
  #schedule-modal .partners .vertical-item { margin-bottom: 20px; }
  #schedule-modal .fullmode-close.righted { right: 15px; }
  #schedule-modal .fullmode-close.fullmode-back { left: 15px; right: auto; }
}
@media only screen and (max-width: 575px) {
  #schedule-modal .partners .vertical-item.with-link { width: 100%; max-width: 260px; }
}
