/* ==========================================================================
   CV LINKER — GLOBAL CHROME: pill header, mobile menu, theme switch, footer
   --------------------------------------------------------------------------
   Loads after tokens.css and base.css on every page. The header markup is in
   header.php; its behaviour (menu, account menu, theme switch) in js/header.js.
   ========================================================================== */

/* Legacy variable names some page stylesheets still read. Mapped onto the
   tokens so nothing silently loses a colour; retire them page by page. */
:root {
  --primary-navy: var(--ink);
  --hover-effect-color: var(--ink-2);
  --button-font-color: #FFFFFF;
  --button-font-hover-color: #FFFFFF;
  --charcoal-text: var(--ink);
  --card-background: var(--surface);
  --border-neutral: var(--line);
  --brand-blue: #002b5b;
  --brand-cyan: #00a8cc;
  --brand-red: var(--brand-deep);
  --remove-logout-button-hover-bg: #D00000;
  --add-shortlist-button-bg: var(--ok);
  --links-text-color: var(--primary);
  --links-hover-color: var(--primary-hover);
}

/* ---- skip link ----------------------------------------------------------- */
.cvl .cvl-skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 2000;
  padding: 10px 16px; border-radius: var(--r-full);
  background: var(--ink); color: var(--ground); font-weight: 700;
  transition: top var(--dur) var(--ease);
}
.cvl .cvl-skip:focus { top: 16px; outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---- the floating pill --------------------------------------------------- */
.cvl .cvl-header {
  position: sticky; top: 0; z-index: 1000;
  padding: var(--header-gap) var(--gutter) 0;
  pointer-events: none;                 /* the gap around the pill lets clicks through */
}
.cvl .cvl-header__pill {
  pointer-events: auto;
  max-width: var(--container); margin: 0 auto;
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 10px 0 22px;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  box-shadow: var(--sh-header);
  transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.cvl .cvl-header.is-scrolled .cvl-header__pill { box-shadow: var(--sh-3); }

/* logo: the site's own two files — dark lettering on the light theme, the white version on dark */
.cvl .cvl-logo { display: inline-flex; align-items: center; margin-inline-end: 6px; flex: none; text-decoration: none; }
.cvl .cvl-logo__img { height: 32px; width: auto; max-width: none; display: block; }
.cvl .cvl-logo__img--dark { display: none; }
:root[data-theme="dark"] .cvl .cvl-logo__img--light { display: none; }
:root[data-theme="dark"] .cvl .cvl-logo__img--dark { display: block; }
.cvl .cvl-logo__text {                                   /* only printed when no logo file resolves */
  font-family: var(--font-display); font-weight: 800; font-size: 22px;
  letter-spacing: -.02em; color: var(--ink); line-height: 1; white-space: nowrap;
}
.cvl .cvl-logo__text b { color: var(--primary); font-weight: 800; }

/* navigation */
/* The nav shrinks before anything else does; past that it scrolls inside the pill, never over the buttons. */
.cvl .cvl-nav { display: flex; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.cvl .cvl-nav::-webkit-scrollbar { display: none; }
.cvl .cvl-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.cvl .cvl-nav__list li { margin: 0; flex: none; }
.cvl .cvl-nav__list a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  border-radius: var(--r-full); font-family: var(--font-body); font-weight: 600; font-size: 15px;
  color: var(--ink-2); text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.cvl .cvl-nav__list a:hover { background: var(--sunken); color: var(--ink); text-decoration: none; }
.cvl .cvl-nav__list .current-menu-item > a,
.cvl .cvl-nav__list .current_page_item > a,
.cvl .cvl-nav__list .current-menu-ancestor > a { background: var(--primary-tint); color: var(--brand-deep); }

/* actions on the right */
.cvl .cvl-header__actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; flex: none; padding-inline-start: 8px; }

.cvl .cvl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: var(--r-full);
  font-family: var(--font-body); font-weight: 700; font-size: 15px; line-height: 1;
  border: 2px solid transparent; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cvl .cvl-btn--primary { background: var(--primary-fill); color: var(--on-primary); border-color: var(--primary-fill); }
.cvl .cvl-btn--primary:hover { background: var(--primary-fill-hover); border-color: var(--primary-fill-hover); color: var(--on-primary); text-decoration: none; }
.cvl .cvl-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.cvl .cvl-btn--ghost:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }

/* theme switch: a pill track with sun and moon, and a knob that slides to the active side */
.cvl .cvl-theme {
  --cvl-sw-w: 64px; --cvl-sw-h: 32px; --cvl-sw-pad: 3px; --cvl-sw-knob: calc(var(--cvl-sw-h) - 2 * var(--cvl-sw-pad));
  display: inline-flex; align-items: center; padding: 4px; margin: 0; border: 0; background: transparent;
  border-radius: var(--r-full); cursor: pointer; flex: none; -webkit-tap-highlight-color: transparent;
}
.cvl .cvl-theme__track {
  position: relative; display: block; width: var(--cvl-sw-w); height: var(--cvl-sw-h);
  border-radius: var(--r-full); background: var(--sunken); border: 1px solid var(--line-strong);
  box-sizing: border-box; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cvl .cvl-theme:hover .cvl-theme__track { border-color: var(--ink-3); }
.cvl .cvl-theme__icon {
  position: absolute; top: 50%; transform: translateY(-50%); width: 16px; height: 16px;
  color: var(--ink-3); opacity: .9; transition: opacity var(--dur) var(--ease);
}
.cvl .cvl-theme__icon--sun  { inset-inline-start: 7px; }
.cvl .cvl-theme__icon--moon { inset-inline-end: 7px; }
.cvl .cvl-theme__icon svg, .cvl .cvl-theme__knob svg { width: 100%; height: 100%; display: block; }
.cvl .cvl-theme__knob {
  position: absolute; top: calc(var(--cvl-sw-pad) - 1px); inset-inline-start: calc(var(--cvl-sw-pad) - 1px);
  width: var(--cvl-sw-knob); height: var(--cvl-sw-knob); border-radius: 50%;
  background: var(--surface); color: var(--primary); box-shadow: 0 1px 3px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.04);
  display: flex; align-items: center; justify-content: center;
  transition: transform .22s var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.cvl .cvl-theme__knob-sun, .cvl .cvl-theme__knob-moon { width: 15px; height: 15px; display: block; }
.cvl .cvl-theme__knob-moon { display: none; }
.cvl .cvl-theme[aria-checked="true"] .cvl-theme__knob { transform: translateX(calc(var(--cvl-sw-w) - var(--cvl-sw-knob) - 2 * var(--cvl-sw-pad))); }
[dir="rtl"] .cvl .cvl-theme[aria-checked="true"] .cvl-theme__knob { transform: translateX(calc(-1 * (var(--cvl-sw-w) - var(--cvl-sw-knob) - 2 * var(--cvl-sw-pad)))); }
.cvl .cvl-theme[aria-checked="true"] .cvl-theme__knob-sun { display: none; }
.cvl .cvl-theme[aria-checked="true"] .cvl-theme__knob-moon { display: block; }
.cvl .cvl-theme[aria-checked="true"] .cvl-theme__icon--sun { opacity: .55; }
.cvl .cvl-theme[aria-checked="false"] .cvl-theme__icon--moon { opacity: .55; }
:root[data-theme="dark"] .cvl .cvl-theme__track { background: var(--band-surface-2); border-color: transparent; }
:root[data-theme="dark"] .cvl .cvl-theme__knob { background: var(--ink); color: #F2B84B; }
:root[data-theme="dark"] .cvl .cvl-theme__icon { color: var(--ink-2); }
.cvl .cvl-theme:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .cvl .cvl-theme__knob { transition: none; } }

/* status chip */
.cvl .cvl-status {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px 0 10px;
  border-radius: var(--r-full); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap;
  background: var(--sunken); color: var(--ink-2);
}
.cvl .cvl-status:hover { text-decoration: none; filter: brightness(.97); }
.cvl .cvl-status__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.cvl .cvl-status--ok     { background: var(--ok-tint);     color: var(--ok); }
.cvl .cvl-status--warn   { background: var(--warn-tint);   color: var(--warn); }
.cvl .cvl-status--danger { background: var(--danger-tint); color: var(--danger); }

/* account menu */
.cvl .cvl-account { position: relative; }
.cvl .cvl-account__btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 3px 10px 3px 3px;
  border-radius: var(--r-full); border: 1px solid var(--line); background: transparent;
  color: var(--ink); cursor: pointer; font-family: var(--font-body);
}
.cvl .cvl-account__btn:hover, .cvl .cvl-account__btn[aria-expanded="true"] { border-color: var(--line-strong); background: var(--sunken); }
.cvl .cvl-account__name { font-weight: 700; font-size: 14px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cvl .cvl-account__chev { width: 16px; height: 16px; color: var(--ink-3); }
.cvl .cvl-avatar {
  width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; color: #fff; background: var(--ink); flex: none;
}
.cvl .cvl-avatar--employer { background: var(--primary-fill); }
.cvl .cvl-avatar--hr_admin, .cvl .cvl-avatar--administrator { background: var(--ok); }
:root[data-theme="dark"] .cvl .cvl-avatar { color: #121214; background: #F2F2F0; }
:root[data-theme="dark"] .cvl .cvl-avatar--employer { background: var(--primary-fill); color: #fff; }
:root[data-theme="dark"] .cvl .cvl-avatar--hr_admin, :root[data-theme="dark"] .cvl .cvl-avatar--administrator { background: var(--ok); color: #121214; }

.cvl .cvl-account__menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); min-width: 240px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); padding: 8px; display: flex; flex-direction: column; gap: 2px; z-index: 1001;
}
.cvl .cvl-account__menu[hidden] { display: none; }
.cvl .cvl-account__who { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.cvl .cvl-account__who strong { font-size: 14px; color: var(--ink); }
.cvl .cvl-account__who span { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.cvl .cvl-account__menu a {
  display: block; padding: 10px 12px; border-radius: var(--r-md); font-weight: 600; font-size: 14px;
  color: var(--ink); text-decoration: none;
}
.cvl .cvl-account__menu a:hover { background: var(--sunken); text-decoration: none; color: var(--ink); }
.cvl .cvl-account__logout { color: var(--danger) !important; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-md) var(--r-md) !important; }

/* burger + mobile panel */
.cvl .cvl-burger {
  display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--sunken);
  color: var(--ink); align-items: center; justify-content: center; cursor: pointer; flex: none;
}
.cvl .cvl-burger svg { width: 22px; height: 22px; }
.cvl .cvl-burger__close { display: none; }
.cvl .cvl-burger[aria-expanded="true"] { background: var(--ink); color: var(--ground); }
.cvl .cvl-burger[aria-expanded="true"] .cvl-burger__open { display: none; }
.cvl .cvl-burger[aria-expanded="true"] .cvl-burger__close { display: block; }

.cvl .cvl-mobile {
  pointer-events: auto;
  max-width: var(--container); margin: 10px auto 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); padding: 12px; display: flex; flex-direction: column; gap: 10px;
}
.cvl .cvl-mobile[hidden] { display: none; }
.cvl .cvl-mobile__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cvl .cvl-mobile__list li { margin: 0; }
.cvl .cvl-mobile__list a, .cvl .cvl-mobile__link {
  display: block; padding: 13px 16px; border-radius: var(--r-md); font-weight: 700; font-size: 17px;
  color: var(--ink); text-decoration: none;
}
.cvl .cvl-mobile__list a:hover, .cvl .cvl-mobile__link:hover { background: var(--sunken); text-decoration: none; }
.cvl .cvl-mobile__list .current-menu-item > a { background: var(--primary-tint); color: var(--brand-deep); }
.cvl .cvl-mobile__actions { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.cvl .cvl-status--panel { display: none; }
.cvl .cvl-mobile__actions .cvl-btn { min-height: 50px; font-size: 16px; }

@media (max-width: 980px) {
  .cvl .cvl-header { padding-inline: 16px; }
  .cvl .cvl-header__pill { padding-inline: 8px 8px; min-height: 60px; gap: 8px; }
  .cvl .cvl-logo { margin-inline-start: 8px; }
  .cvl .cvl-logo__img { height: 26px; }
  .cvl .cvl-nav, .cvl .cvl-hide-m, .cvl .cvl-account__name, .cvl .cvl-account__chev { display: none; }
  .cvl .cvl-header__actions { padding-inline-start: 0; }
  .cvl .cvl-status { display: none; }
  .cvl .cvl-status--panel { display: inline-flex; align-self: flex-start; min-height: 40px; font-size: 14px; }
  .cvl .cvl-burger { display: inline-flex; }
  .cvl .cvl-btn--primary { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .cvl .cvl-account__btn { padding: 2px; border: 0; }
}
@media (min-width: 981px) and (max-width: 1180px) {
  .cvl .cvl-status { display: none; }
  .cvl .cvl-account__name { display: none; }
}
@media (max-width: 400px) {
  .cvl .cvl-header__actions .cvl-btn--primary { display: none; }   /* the panel has it */
}

/* Woodmart interop: nothing of the old header builder should reserve space */
.cvl .whb-header, .cvl .whb-sticky-header, .cvl .whb-clone { display: none !important; }
.cvl .website-wrapper { padding-top: 0 !important; }
/* short pages: the footer still reaches the bottom of the window */
.cvl.cvl-has-pill-header .website-wrapper { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.cvl.cvl-has-pill-header .website-wrapper > .main-page-wrapper { flex: 1 0 auto; width: 100%; }

/* ---- footer (footer.php + inc/cvl-footer.php) ------------------------------ */
.cvl .cvl-footer {
  background: var(--band); color: var(--band-ink-2);
  margin-top: var(--sp-8); padding: var(--sp-8) var(--gutter) 28px;
  font-family: var(--font-body); font-size: 15px; line-height: 1.5;
}
.cvl .cvl-footer__inner { max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; gap: var(--sp-6); }
.cvl .cvl-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--sp-4); align-items: start; }

/* brand column */
.cvl .cvl-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cvl .cvl-footer__logo {
  font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -.02em; line-height: 1;
  color: var(--band-ink); text-decoration: none; white-space: nowrap;
}
.cvl .cvl-footer__logo b { color: var(--band-accent); font-weight: 800; }
.cvl .cvl-footer__logo:hover { color: var(--band-ink); text-decoration: none; }
.cvl .cvl-footer__logo-img { height: 34px; width: auto; max-width: none; display: block; }
.cvl .cvl-footer__tagline { max-width: 360px; margin: 0; font-size: 15px; color: var(--band-ink-2); }

.cvl .cvl-footer__contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cvl .cvl-footer__contact li { margin: 0; }
.cvl .cvl-footer__contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--band-ink-2); text-decoration: none; }
.cvl .cvl-footer__contact a:hover { color: var(--band-ink); text-decoration: none; }
.cvl .cvl-footer__contact svg { width: 18px; height: 18px; flex: none; color: var(--band-ink-3); }
.cvl .cvl-footer__contact a:hover svg { color: var(--band-ink); }

.cvl .cvl-footer__social { list-style: none; margin: 4px 0 0; padding: 0; display: flex; gap: 10px; }
.cvl .cvl-footer__social li { margin: 0; }
.cvl .cvl-footer__social a {
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--band-surface-2); color: var(--band-ink); text-decoration: none;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.cvl .cvl-footer__social a:hover { background: var(--band-accent); color: #fff; text-decoration: none; transform: translateY(-1px); }
.cvl .cvl-footer__social svg { width: 18px; height: 18px; }

/* link columns */
.cvl .cvl-footer__col { display: flex; flex-direction: column; gap: 12px; }
.cvl .cvl-footer__title {
  margin: 0; font-family: var(--font-display); font-size: 15px; font-weight: 700; line-height: 1.3;
  letter-spacing: 0; text-transform: none; color: var(--band-ink);
}
.cvl .cvl-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cvl .cvl-footer__links li { margin: 0; }
.cvl .cvl-footer__links a { color: var(--band-ink-2); text-decoration: none; transition: color var(--dur) var(--ease); }
.cvl .cvl-footer__links a:hover { color: var(--band-ink); text-decoration: none; }

/* bottom line */
.cvl .cvl-footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px;
  border-top: 1px solid var(--band-line); padding-top: 22px; font-size: 14px; color: var(--band-ink-3);
}
.cvl .cvl-footer__copy { margin: 0; color: var(--band-ink-3); font-size: 14px; }
.cvl .cvl-footer__credit { white-space: nowrap; }
.cvl .cvl-footer__credit::before { content: "·"; margin: 0 8px; }
.cvl .cvl-footer__credit a, .cvl .cvl-footer__lang a { color: var(--band-ink-3); text-decoration: none; }
.cvl .cvl-footer__credit a:hover, .cvl .cvl-footer__lang a:hover { color: var(--band-ink); text-decoration: none; }
.cvl .cvl-footer__lang { display: flex; gap: 18px; }
.cvl .cvl-footer__lang a[aria-current="true"] { color: var(--band-ink); font-weight: 700; }

/* keyboard focus on the dark band */
.cvl .cvl-footer a:focus-visible { outline: 2px solid var(--band-ink); outline-offset: 3px; border-radius: 4px; }
.cvl .cvl-footer__social a:focus-visible { border-radius: 50%; }

@media (max-width: 980px) {
  .cvl .cvl-footer { padding: var(--sp-6) var(--gutter) 24px; margin-top: var(--sp-6); }
  .cvl .cvl-footer__grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-4) var(--sp-3); }
  .cvl .cvl-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .cvl .cvl-footer { padding: 36px 20px 24px; }
  .cvl .cvl-footer__inner { gap: var(--sp-4); }
  .cvl .cvl-footer__grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4) var(--sp-2); }
  .cvl .cvl-footer__logo { font-size: 22px; }
  .cvl .cvl-footer__bottom { flex-direction: column; align-items: flex-start; }
  .cvl .cvl-footer__credit { white-space: normal; display: block; }
  .cvl .cvl-footer__credit::before { content: none; }
}

/* ---- Woodmart's own footer markup: only seen if footer.php is removed ----- */
.cvl .footer-container {
  background: var(--band) !important; color: var(--band-ink-2) !important;
  margin-top: var(--sp-8); border-top: 0;
}
.cvl .footer-container .widget-title,
.cvl .footer-container h1, .cvl .footer-container h2, .cvl .footer-container h3,
.cvl .footer-container h4, .cvl .footer-container h5, .cvl .footer-container h6 {
  color: var(--band-ink) !important; font-family: var(--font-display); font-size: 15px; font-weight: 700;
  letter-spacing: 0; text-transform: none; margin-bottom: 14px;
}
.cvl .footer-container, .cvl .footer-container p, .cvl .footer-container li { color: var(--band-ink-2) !important; font-size: 15px; }
.cvl .footer-container a { color: var(--band-ink-2) !important; text-decoration: none; }
.cvl .footer-container a:hover { color: var(--band-ink) !important; }
.cvl .footer-container .wd-social-icons a, .cvl .footer-container .wd-social-icon { color: var(--band-ink) !important; }
.cvl .footer-container .copyrights-wrapper { border-top: 1px solid var(--band-line); color: var(--band-ink-2); font-size: 14px; }
.cvl .footer-container .copyrights-wrapper a { color: var(--band-ink-2) !important; }
.cvl .footer-container .main-footer { padding-top: 56px; padding-bottom: 28px; }
.cvl .footer-container ul { list-style: none; padding: 0; }
.cvl .footer-container li { margin: 0 0 10px; }

/* ---- scroll-to-top (Woodmart) ---------------------------------------------- */
.cvl .scrollToTop { background: var(--ink) !important; color: var(--ground) !important; border-radius: 50% !important; }

/* =========================================
   Modal Styles
========================================= */
body .modal-box {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px) !important; /* This stays on the overlay */
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 10000 !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease-out, visibility 0s 0.3s !important;
    pointer-events: none !important;
}

body .modal-box.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.3s ease-out !important;
    pointer-events: auto !important;
}

body .modal-box .modal-content {
    /* --- Applying Glassmorphism to Modal Content --- */
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4) !important;
    max-width: 520px !important;
    width: 90% !important;
    padding: 40px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    font-family: var(--font-body) !important;
    transform: translateY(30px) scale(0.98) !important;
    opacity: 0 !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

body .modal-box.visible .modal-content {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important;
}

/* =========================================
   Modal Close Button
========================================= */
body .close-btn {
    background: none !important;
    border: none !important;
    font-size: 32px !important;
    color: var(--charcoal-text) !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0 !important;
    transition: color 0.3s ease !important;
}

body .close-btn:hover {
    color: var(--brand-red) !important;
}

/* =========================================
   Forminator Form Styling in Modal
========================================= */
body .modal-body .forminator-field {
    margin-bottom: 15px !important;
}

body .modal-body .forminator-label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--charcoal-text) !important;
    margin-bottom: 5px !important;
    display: block !important;
}

body .modal-body .forminator-input,
body .modal-body .forminator-textarea,
body .modal-body .forminator-select {
    border: 1px solid rgba(0,0,0,0.15) !important; /* Subtle border for glass */
    border-radius: 20px !important;
    padding: 10px 15px !important;
    width: 100% !important;
    font-size: 15px !important;
    color: var(--charcoal-text) !important;
    box-sizing: border-box !important;
    transition: border-color 0.3s ease !important;
    font-family: var(--font-body) !important;
    background: rgba(255, 255, 255, 0.7) !important; /* Keep inputs slightly transparent */
}

body .modal-body .forminator-input::placeholder,
body .modal-body .forminator-textarea::placeholder {
    font-family: var(--font-body) !important;
    color: #555 !important;
}

body .modal-body .forminator-input:focus,
body .modal-body .forminator-textarea:focus,
body .modal-body .forminator-select:focus {
    border-color: var(--primary-navy) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(27, 27, 28, 0.2) !important;
}

body .modal-body .forminator-button {
    background-color: var(--primary-navy) !important;
    color: var(--button-font-color) !important;
    border-radius: 20px !important;
    padding: 12px 25px !important;
    font-weight: bold !important;
    font-size: 16px !important;
    transition: background-color 0.3s ease, color 0.3s ease !important;
    cursor: pointer !important;
    display: block !important;
    width: auto !important;
    margin-top: 20px !important;
    text-align: center !important;
}

body .modal-body .forminator-button:hover {
    background-color: var(--hover-effect-color) !important;
    color: var(--button-font-hover-color) !important;
}

body .forminator-response-message {
    font-size: 14px !important;
    padding: 10px !important;
    border-radius: 20px !important;
    margin-top: 10px !important;
    text-align: center !important;
    font-family: var(--font-body) !important;
}

body .forminator-error-message {
    color: var(--brand-red) !important;
    border: 1px solid var(--brand-red) !important;
    background-color: rgba(139, 0, 0, 0.1) !important;
}

body .forminator-success-message {
    color: var(--ok) !important;
    border: 1px solid var(--ok) !important;
    background-color: var(--ok-tint) !important;
}

/* =========================================
   Logout Modal
========================================= */
body #logout-overlay {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(2px) !important; /* This stays on the overlay */
    -webkit-backdrop-filter: blur(2px) !important;
    z-index: 9999 !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease-out, visibility 0s 0.3s !important;
    pointer-events: none !important;
}

body #logout-overlay.fade-in {
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.3s ease-out !important;
    pointer-events: auto !important;
}

body #logout-overlay .logout-modal {
    /* --- Applying Glassmorphism to Logout Modal Content --- */
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    padding: 40px !important;
    border-radius: 20px !important;
    text-align: center !important;
    width: 350px !important;
    font-family: var(--font-body) !important;
    color: var(--charcoal-text) !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4) !important;
    transform: translateY(30px) scale(0.98) !important;
    opacity: 0 !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

body #logout-overlay.fade-in .logout-modal {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important;
}