/**
 * Laureate Header Styles
 *
 * @package Laureate
 * @version 1.0.0
 */

:root {
  --evo-blue: #0A2248;
  --evo-blue-dark: #071A36;
  --evo-blue-light: #123B73;
  --evo-green: #1d960c;
  --evo-border: rgba(255, 255, 255, 0.14);
}

body {
  margin: 0;
  font-family: "Inter", "Poppins", "Segoe UI", Arial, sans-serif;
  background-color: #f4f8fc;
}

.evo-header {
  position: sticky;
  top: 0;
  z-index: 9990;
  background: linear-gradient(90deg, var(--evo-blue-dark), var(--evo-blue), var(--evo-blue-light));
  box-shadow: 0 12px 32px rgba(10, 34, 72, 0.22);
}

body.admin-bar .evo-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .evo-header {
    top: 46px;
  }
}

#wpadminbar {
  z-index: 999999 !important;
}

.evo-topbar {
  min-height: 38px;
  padding: 0 34px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--evo-border);
  overflow: hidden;
}

.evo-top-contact {
  display: flex;
  gap: 18px;
  white-space: nowrap;
}

.evo-top-contact a {
  color: #fff !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
}

.evo-top-contact a:hover {
  color: var(--evo-green) !important;
}

.evo-offer {
  overflow: hidden;
  white-space: nowrap;
}

.evo-offer span {
  display: inline-block;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  animation: evoTicker 22s linear infinite;
}

@keyframes evoTicker {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

.evo-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.evo-social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: 0.25s ease;
}

.evo-social a:hover img {
  transform: translateY(-2px) scale(1.08);
}

.evo-mainbar {
  max-width: 1280px;
  min-height: 76px;
  margin: auto;
  padding: 12px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.evo-logo {
  display: flex;
  align-items: center;
  text-decoration: none !important;
}

.evo-logo img {
  width: 170px;
  height: auto;
  display: block;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.evo-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.evo-menu a {
  position: relative;
  display: flex;
  align-items: center;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 14px;
  margin: 0 2px;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  white-space: nowrap;
  transition: 0.3s ease;
}

.evo-menu > a:hover,
.evo-dropdown > a:hover {
  color: var(--evo-green) !important;
}

.evo-menu > a:after,
.evo-dropdown > a:after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--evo-green);
  border-radius: 30px;
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.35s ease;
}

.evo-menu > a:hover:after,
.evo-dropdown > a:hover:after {
  transform: scaleX(1);
}

.evo-dropdown {
  position: relative;
}

.evo-dropdown > a[role="button"] {
  cursor: pointer;
}

.evo-submenu {
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 245px;
  background: #fff;
  border: none;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(10, 34, 72, 0.18);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.3s ease;
  z-index: 99999;
}

.evo-dropdown:hover .evo-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.evo-submenu a {
  display: block;
  color: var(--evo-blue) !important;
  padding: 11px 14px;
  border-radius: 8px !important;
  background: transparent !important;
  font-size: 14px;
  font-weight: 500;
}

.evo-submenu a:hover {
  background: #f4f8fc !important;
  color: var(--evo-blue) !important;
}

.evo-mega-menu {
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 720px;
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  box-shadow: 0 22px 60px rgba(10, 34, 72, 0.16);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 99999;
  pointer-events: auto;
}

.evo-mega:hover .evo-mega-menu,
.evo-mega:focus-within .evo-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.evo-mega-col h4 {
  margin: 0 0 18px;
  color: #0A2248;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 2px solid #1d960c;
  padding-bottom: 10px;
}

.evo-mega-col a {
  display: block;
  color: #4b5563 !important;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  background: transparent !important;
  transition: 0.25s ease;
  position: relative;
  z-index: 2;
  pointer-events: auto !important;
  touch-action: manipulation;
  cursor: pointer;
}

.evo-mega-col a:hover {
  color: #1d960c !important;
  padding-left: 8px;
}

.evo-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 10px;
  background: #ffffff !important;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: background 0.3s ease;
  z-index: 100000;
}

.evo-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--evo-blue) !important;
  border-radius: 4px;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s ease;
}

.evo-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.evo-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(10px) scale(0); }
.evo-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.evo-header-action {
  all: unset !important;
  box-sizing: border-box !important;
  width: 132px !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #1d960c !important;
  color: #fff !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 8px 20px rgba(29, 150, 12, 0.25) !important;
  transition: 0.25s ease !important;
  text-decoration: none !important;
}

.evo-header-action:hover {
  background: #fff !important;
  color: #0A2248 !important;
  transform: translateY(-2px) !important;
}

.evo-mobile-info,
.evo-mobile-action {
  display: none;
}

@media (max-width: 1100px) {
  .evo-menu a {
    font-size: 14px;
    padding: 11px 9px;
  }
}

@media (max-width: 900px) {
  .evo-topbar { display: none !important; }

  .evo-mainbar {
    min-height: 70px;
    padding: 12px 16px;
    position: relative;
    display: flex !important;
    justify-content: space-between !important;
  }

  .evo-mainbar > .evo-header-action {
    display: none !important;
  }

  .evo-logo img {
    width: 150px;
  }

  .evo-toggle {
    display: flex !important;
  }

  .evo-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    background: linear-gradient(180deg, rgba(10, 34, 72, 0.96), rgba(7, 26, 54, 0.98)) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    padding: 20px 18px;
    flex-direction: column;
    align-items: stretch;
    display: flex;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
  }

  .evo-menu.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .evo-menu > * {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .evo-menu.active > * {
    opacity: 1;
    transform: translateY(0);
  }

  .evo-menu.active > *:nth-child(1) { transition-delay: 0.05s; }
  .evo-menu.active > *:nth-child(2) { transition-delay: 0.10s; }
  .evo-menu.active > *:nth-child(3) { transition-delay: 0.15s; }
  .evo-menu.active > *:nth-child(4) { transition-delay: 0.20s; }
  .evo-menu.active > *:nth-child(5) { transition-delay: 0.25s; }
  .evo-menu.active > *:nth-child(6) { transition-delay: 0.30s; }
  .evo-menu.active > *:nth-child(7) { transition-delay: 0.35s; }

  .evo-menu a {
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    margin: 0;
    color: #fff !important;
    border-radius: 12px;
  }

  .evo-menu > a:active {
    background: rgba(255, 255, 255, 0.05) !important;
  }

  .evo-menu > a:after,
  .evo-dropdown > a:after {
    display: none;
  }

  .evo-submenu {
    position: static;
    min-width: 100%;
    box-shadow: none;
    border: 0;
    padding: 4px 0 8px 14px;
    background: transparent;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .evo-dropdown.open .evo-submenu {
    display: block;
    animation: smoothDrop 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .evo-submenu a {
    color: #b0c4de !important;
    background: transparent !important;
    padding: 10px 14px;
  }

  .evo-mega-menu {
    position: static;
    transform: none !important;
    width: 100%;
    display: none;
    grid-template-columns: 1fr;
    padding: 12px 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
  }

  .evo-dropdown.open .evo-mega-menu {
    display: grid;
    animation: smoothDrop 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes smoothDrop {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .evo-mega-col { margin-bottom: 16px; }

  .evo-mega-col h4 {
    color: #1d960c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 16px;
    margin: 8px 0 10px;
  }

  .evo-mega-col a {
    color: #b0c4de !important;
    padding: 10px 0 10px 16px;
  }

  .evo-mobile-info {
    display: block;
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .evo-mobile-info a {
    display: block;
    color: #fff !important;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 16px;
  }

  .evo-mobile-action {
    display: block;
    margin-top: 18px;
  }

  .evo-mobile-btn {
    width: 100% !important;
    height: 48px !important;
    display: flex !important;
    justify-content: center !important;
    font-size: 15px !important;
  }
}

@media (max-width: 520px) {
  .evo-menu { left: 12px; right: 12px; }
  .evo-logo img { width: 140px; }
}

/* ===== SMART ENQUIRY POPUP ===== */
.evo-enquiry-modal,
.evo-enquiry-modal * {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

.evo-enquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}

.evo-enquiry-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.evo-enquiry-backdrop,
.evo-enquiry-backdrop:hover,
.evo-enquiry-backdrop:focus,
.evo-enquiry-backdrop:focus-visible,
.evo-enquiry-backdrop:active {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background: rgba(10, 34, 72, 0.85) !important;
  background-color: rgba(10, 34, 72, 0.85) !important;
  background-image: none !important;
  color: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  opacity: 1 !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  cursor: pointer;
}

.evo-enquiry-dialog {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(29,150,12,.08), transparent 28%),
    linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: 0 32px 80px rgba(10,34,72,.28);
  opacity: 0;
  transform: translateY(24px) scale(.97);
  transition: opacity .32s ease, transform .32s cubic-bezier(.16,1,.3,1);
}

.evo-enquiry-modal.active .evo-enquiry-dialog {
  opacity: 1;
  transform: none;
}

.evo-enquiry-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #dce6f0;
  border-radius: 50%;
  background: #ffffff;
  color: #0A2248;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(10,34,72,.08);
  transition: .25s ease;
}

.evo-enquiry-close:hover {
  border-color: #1d960c;
  background: #1d960c;
  color: #ffffff;
  transform: rotate(90deg);
}

.evo-enquiry-close svg {
  width: 18px;
  height: 18px;
}

.evo-enquiry-head {
  padding-right: 54px;
  margin-bottom: 22px;
}

.evo-enquiry-head > span {
  display: block;
  margin-bottom: 7px;
  color: #1d960c;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.evo-enquiry-head h2 {
  margin: 0;
  color: #0A2248;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
}

.evo-enquiry-head p {
  margin: 9px 0 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.6;
}

.evo-enquiry-form-box {
  position: relative;
  z-index: 5;
  padding: 20px;
  border: 1px solid #e5edf5;
  border-radius: 16px;
  background: #ffffff;
}

/* ===== FORMINATOR SELECT / POPUP FIX ===== */
.evo-enquiry-form-box select,
.evo-enquiry-form-box .forminator-select,
.evo-enquiry-form-box .select2-selection {
  pointer-events: auto !important;
  touch-action: manipulation !important;
  cursor: pointer !important;
}

body.evo-enquiry-open .forminator-select-dropdown-container,
body.evo-enquiry-open .forminator-select-dropdown-container--open,
body.evo-enquiry-open > .select2-container--open,
body.evo-enquiry-open .select2-dropdown {
  z-index: 10000050 !important;
  pointer-events: auto !important;
}

body.evo-enquiry-open .forminator-select-dropdown-container--open *,
body.evo-enquiry-open .select2-dropdown * {
  pointer-events: auto !important;
}

body.evo-enquiry-open .select2-results__options,
body.evo-enquiry-open .forminator-select-dropdown {
  max-height: 260px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 600px) {
  .evo-enquiry-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .evo-enquiry-dialog {
    width: 100%;
    max-height: 92vh;
    padding: 26px 16px 18px;
    border-radius: 20px 20px 0 0;
  }

  .evo-enquiry-head { padding-right: 46px; }
  .evo-enquiry-head h2 { font-size: 24px; }
  .evo-enquiry-form-box { padding: 14px; }
}
