/* CYC Popup Manager v1.0.3 — styled using the CYC theme's primary-color token. */
.cyc-popups[hidden], .cyc-popup[hidden] { display: none !important; }
.cyc-popups { position: fixed; inset: 0; z-index: 999999; }
.cyc-popup { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: clamp(16px, 3vw, 48px); overflow-y: auto; overscroll-behavior: contain; background: rgba(0,0,0,.74); }
.cyc-popup__panel { position: relative; display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 54%); width: min(1080px, 100%); max-height: min(90dvh, 900px); overflow-y: auto; border-radius: 0; background: #fff; color: #222; box-shadow: 0 24px 80px rgba(0,0,0,.34); }
.cyc-popup__media { min-height: 480px; background: #efefef; overflow: hidden; }
.cyc-popup__image { display: block; width: 100%; height: 100%; min-height: 480px; object-fit: cover; }
.cyc-popup__body { min-width: 0; padding: clamp(36px, 4.5vw, 68px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.cyc-popup__panel:not(:has(.cyc-popup__media)) { grid-template-columns: 1fr; max-width: 760px; }
.cyc-popup__title { font-size: clamp(30px, 4.25vw, 65px); line-height: 1.08; font-weight: 800; text-transform: uppercase; color: var(--primary-color, #172d51); margin: 0 0 24px; overflow-wrap: anywhere; }
.cyc-popup__description { width: 100%; margin: 0 0 24px; font-family: 'Montserrat', sans-serif; font-size: clamp(16px, 1.25vw, 20px); line-height: 1.5; font-weight: 300; }
.cyc-popup__description p { font-family: inherit; font-size: inherit; line-height: inherit; font-weight: inherit; margin: 0 0 15px; }
.cyc-popup__description p:last-child { margin-bottom: 0; }
.cyc-popup__cta, .cyc-popup__form input[type='submit'], .cyc-popup__form button[type='submit'] { display: inline-block; width: fit-content; max-width: 100%; border: 0; border-radius: 0; background: var(--primary-color, #172d51); color: #fff; padding: 18px 26px; text-align: center; text-decoration: none; font-family: inherit; font-size: clamp(16px, 1.5vw, 21px); line-height: 1.2; font-weight: 700; text-transform: uppercase; cursor: pointer; transition: filter .2s ease, transform .2s ease; }
.cyc-popup__cta:hover, .cyc-popup__form input[type='submit']:hover, .cyc-popup__form button[type='submit']:hover { color: #fff; filter: brightness(.88); }
.cyc-popup__close { position: absolute; z-index: 2; top: 14px; right: 14px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 0; background: #fff; color: #222; font: 30px/1 Arial, sans-serif; box-shadow: 0 2px 12px rgba(0,0,0,.18); cursor: pointer; }
.cyc-popup__close:hover { background: #f1f1f1; }
.cyc-popup__close:focus-visible, .cyc-popup__cta:focus-visible, .cyc-popup__form :focus-visible { outline: 3px solid var(--primary-color, #172d51); outline-offset: 3px; }
.cyc-popup-open { overflow: hidden; }
/* Embedded Mailchimp form: no special form CSS is required in ACF. */
.cyc-popup__form { width: 100%; max-width: 100%; font-family: 'Montserrat', sans-serif; }
.cyc-popup__form form { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
.cyc-popup__form label { display: block; margin: 3px 0 0; font-family: inherit; font-size: 14px; line-height: 1.35; font-weight: 600; }
.cyc-popup__form input:not([type='hidden']):not([type='submit']):not([name^='b_']), .cyc-popup__form select { box-sizing: border-box; display: block; width: 100%; max-width: 100%; min-height: 50px; border: 1px solid #aaa; border-radius: 0; background: #fff; color: #222; padding: 12px 14px; font-family: inherit; font-size: 16px; line-height: 1.3; }
.cyc-popup__form input[type='hidden'] { display: none; }
/* The Mailchimp honeypot is intentionally concealed; WP sanitization strips inline positioning. */
.cyc-popup__form input[name^='b_'], .cyc-popup__form div:has(> input[name^='b_']) { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
.cyc-popup__form input[type='submit'], .cyc-popup__form button[type='submit'] { margin-top: 10px; }
@media (max-width: 800px) {
  .cyc-popup { padding: 14px; align-items: center; }
  .cyc-popup__panel { display: flex; flex-direction: column; width: min(620px, 100%); max-height: calc(100dvh - 28px); }
  .cyc-popup__media { min-height: 0; height: clamp(160px, 27dvh, 260px); flex: 0 0 auto; }
  .cyc-popup__image { min-height: 0; height: 100%; }
  .cyc-popup__body { padding: clamp(24px, 5vw, 38px); }
  .cyc-popup__title { font-size: clamp(26px, 6vw, 36px); margin-bottom: 16px; }
  .cyc-popup__description { font-size: 16px; margin-bottom: 20px; }
  .cyc-popup__close { top: 8px; right: 8px; }
}
@media (max-width: 390px) {
  .cyc-popup { padding: 10px; }
  .cyc-popup__panel { max-height: calc(100dvh - 20px); }
  .cyc-popup__media { height: 140px; }
  .cyc-popup__body { padding: 22px; }
  .cyc-popup__cta, .cyc-popup__form button[type='submit'], .cyc-popup__form input[type='submit'] { font-size: 16px; padding: 15px 20px; }
}
@media (prefers-reduced-motion: reduce) { .cyc-popup *, .cyc-popup *::before, .cyc-popup *::after { animation: none !important; transition: none !important; } }

/* Keep form entries in their original capitalization regardless of theme-wide text transforms. */
.cyc-popup__form input:not([type="submit"]),
.cyc-popup__form textarea,
.cyc-popup__form select { text-transform: none !important; }
.cyc-popup__form input::placeholder,
.cyc-popup__form textarea::placeholder { text-transform: none !important; }
.cyc-popup__form-status { font-size: 14px; line-height: 1.4; margin: 10px 0 0; font-weight: 500; }
.cyc-popup__form-status[data-state="error"] { color: #a12727; }
.cyc-popup__form-status[data-state="success"] { color: #246b3d; }
.cyc-popup__form button[disabled], .cyc-popup__form input[type="submit"][disabled] { opacity: .6; cursor: wait; }

/* Replace the form with a concise two-line acknowledgement after submission. */
.cyc-popup__form form[hidden] { display: none !important; }
.cyc-popup__form-status[data-state='success'] { white-space: pre-line; font-size: 18px; line-height: 1.5; }
