/* Root header wrapper – fixed header on top */
.cmh-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;

  background: #134785;              /* MAIN SITE HEADER COLOR */
  box-shadow: 0px 15px 15px 0px #00000008;

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  will-change: transform, background;
}

/* Hidden when scrolling down */
.cmh-header.is-hidden {
  transform: translateY(-100%);
}

/* Same solid color when fixed */
.cmh-header.is-fixed {
  box-shadow: 0px 15px 15px 0px #00000008;
  background: #134785;
}

/* Inner layout – 3 columns */
.cmh-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 24px;
}

/* Generic column helpers */
.cmh-col-left {
  display: flex;
  align-items: center;
}

.cmh-col-center {
  display: flex;
  justify-content: center;
}

.cmh-col-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

/* Logo */
.cmh-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.cmh-logo-img {
  display: block;
  max-height: 52px;
  width: auto;
}

/* Nav menu */
.cmh-header-nav {
  flex: 1;
}

.cmh-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cmh-menu li {
  list-style: none;
}

/* MENU TEXT STYLES – base */
.cmh-menu a {
  font-family: "goodspace", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 15px;
  line-height: 40px;
  letter-spacing: 0.05em;
  vertical-align: middle;
  text-decoration: none;
  color: #FFFFFF;      /* ALWAYS WHITE */
  position: relative;
  padding: 0 4px;
}

/* ✅ HOVER UNDERLINE (keep this) */
.cmh-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #7065F0;   /* underline color */
  transition: width 0.2s ease;
}

.cmh-menu a:hover::after,
.cmh-menu-item-active a::after {
  width: 100%;
  color: #FFFFFF;
}

/* Active menu item – bold text only (no color change) */
.cmh-menu-item-active a {
  font-weight: 700;
}

/* CTA button */
.cmh-header-cta {
  flex-shrink: 0;
}

.cmh-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: auto;
  height: 45px;
  gap: 8px;

  padding-top: 0.8px;
  padding-right: 24px;
  padding-bottom: 0.8px;
  padding-left: 24px;

  border-radius: 999px;
  border-width: 1px;
  border-style: solid;
  border-color: #FFFFFF;

  background: #7065F0;
  opacity: 1;

  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;

  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
              transform 0.1s ease, box-shadow 0.2s ease;
}

.cmh-cta-btn:hover {
  background: #5349d4;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(112, 101, 240, 0.35);
  transform: translateY(-1px);
}

/* Icon inside CTA */
.cmh-cta-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  object-fit: contain;
}

/* Burger (mobile) */
.cmh-burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #e0e3ff;
  background: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.cmh-burger-line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #04111f;
}

/* Burger active state */
.cmh-burger.is-active .cmh-burger-line:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}
.cmh-burger.is-active .cmh-burger-line:nth-child(2) {
  opacity: 0;
}
.cmh-burger.is-active .cmh-burger-line:nth-child(3) {
  transform: translateY(-3px) rotate(-45deg);
}

/* =======================
   POPUP OVERLAY + MODAL
   ======================= */

body.cmh-popup-open {
  overflow: hidden;
}

/* FULL-SCREEN DARK OVERLAY */
.cmh-popup-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 120px;  /* popup sits under header */
  transition: opacity 0.25s ease;
}

.cmh-popup-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Popup card – NO OUTER PADDING */
.cmh-popup {
  background: #ffffff;
  border-radius: 16px;
  max-width: 480px;
  width: 90%;
  padding: 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  position: relative;
}

/* POPUP HEADER */
.cmh-popup-header {
  margin: 0;
  height: 76px;
  padding-top: 24px;
  padding-bottom: 24px;
  padding-left: 18px;
  padding-right: 18px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #04111F -24.99%, #134785 255.28%);
  border-radius: 16px 16px 0 0;
}

.cmh-popup-title {
  display: block;
  margin: 0;
  font-family: "goodspace", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 28px;
  line-height: 29.4px;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: middle;
  color: #FFFFFF;
}

/* POPUP BODY */
.cmh-popup-body {
  margin: 0;
  padding: 25px 30px 25px;
}

.cmh-popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #000929;
}

/* =========
   FORM FIELDS
   ========= */

.cmh-popup-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Row: label + dropdown beside each other */
.cmh-field-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cmh-field-label {
  font-family: "goodspace", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0;
  color: #000929;
  white-space: nowrap;
}

/* Special: I'm interested in, Your name, Your email, Description */
.cmh-field-label[for="cmh-interest"],
.cmh-field-label[for="cmh-name"],
.cmh-field-label[for="cmh-email"],
.cmh-field-label[for="cmh-desc"] {
  font-family: "Raleway", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;              /* SemiBold */
  font-style: normal;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0px;
  color: #176B87;
}

.cmh-field-control {
  flex: 1;
}

/* DROPDOWN ONLY – 264px */
.cmh-select {
  width: 264px;
  height: 54px;
  box-sizing: border-box;

  border-radius: 29px;
  border-width: 0.8px;
  border-style: solid;
  border-color: #00000033;

  padding-top: 12px;
  padding-right: 16px;
  padding-bottom: 12px;
  padding-left: 16px;

  background-color: #F8F8FA;

  font-family: "Raleway", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #000929;
  outline: none;
  opacity: 1;
}

/* Grouped fields (name, email, desc) */
.cmh-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* TEXT INPUTS + TEXTAREA */
.cmh-input,
.cmh-textarea {
  width: auto;
  height: 54.000999450683594px;
  box-sizing: border-box;

  border-radius: 29px;
  border-width: 0.8px;
  border-style: solid;
  border-color: #00000033;

  padding: 10px 20px;
  background-color: #F8F8FA;

  font-family: "Raleway", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #000929;
  outline: none;
  opacity: 1;
}

.cmh-textarea {
  height: auto;
  min-height: 54.000999450683594px;
  padding-top: 12px;
  padding-bottom: 12px;
  resize: vertical;
}

.cmh-input::placeholder,
.cmh-textarea::placeholder {
  color: #9FA3B8;
}

/* Focus state */
.cmh-select:focus,
.cmh-input:focus,
.cmh-textarea:focus {
  border-color: #134785;
  box-shadow: 0 0 0 1px rgba(19, 71, 133, 0.2);
}

/* Button row – RIGHT aligned */
.cmh-button-row {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

/* Send Message button */
.cmh-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 160px;
  height: 45px;
  gap: 8px;

  padding-top: 0.8px;
  padding-right: 24px;
  padding-bottom: 0.8px;
  padding-left: 24px;

  border-radius: 999px;
  border-width: 1px;
  border-style: solid;
  border-color: #FFFFFF;

  background: #7065F0;
  color: #FFFFFF;

  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 11px;
  line-height: 16.5px;
  letter-spacing: 0;
  vertical-align: middle;
  text-transform: uppercase;

  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.cmh-submit-text {
  display: inline-block;
}

.cmh-submit-icon {
  width: 7.167999744415283px;
  height: 7.167999744415283px;
  object-fit: contain;
  display: inline-block;
}

.cmh-submit-btn:hover {
  background: #5349d4;
  transform: translateY(-1px);
}

.cmh-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 9, 41, 0.2);
}

/* =======================
   CONTACT SIDE PANEL
   ======================= */

.cmh-contact-panel-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 999998;
  opacity: 0;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
  transition: opacity 0.25s ease;
}

.cmh-contact-panel-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cmh-contact-panel {
  width: 420px;
  max-width: 100%;
  background: #ffffff;
  height: 100%;
  box-sizing: border-box;
  padding: 0;
  box-shadow: -16px 0 40px rgba(0,0,0,0.25);
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
  position: relative;
  display: flex;
  flex-direction: column;
}

.cmh-contact-panel-overlay.is-open .cmh-contact-panel {
  transform: translateX(0);
}

.cmh-contact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  box-sizing: border-box;
  border-bottom: 5px solid #134785;
  background: #ffffff;
}

.cmh-contact-title {
  margin: 0;
  font-family: "goodspace", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 26px;
  color: #134785;
}

.cmh-contact-close {
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #000929;
}

.cmh-contact-body {
  padding: 16px 24px 32px;
  box-sizing: border-box;
  font-family: "Raleway", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 22px;
  color: #000929;

  background-image: url("https://remediagroup.in/wp-content/uploads/2025/11/image-91.png");
  background-repeat: no-repeat;
  background-size: 355px 351px;
  background-position: left bottom;

  flex: 1;
}

.cmh-contact-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cmh-contact-item {
  background: #ffffff;
  border-radius: 12px;
}

.cmh-contact-label {
  margin: 0 0 4px;
  font-family: "goodspace", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0px;
  color: #134785;
}

.cmh-contact-text {
  margin: 0;
  font-family: "Raleway", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 16px;
  line-height: 30px;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #000000;
}

/* Social icons */
.cmh-contact-social-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.cmh-social-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 0.8px solid #134785;
  background: #134785;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.cmh-social-img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.cmh-social-icon:hover {
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 9, 41, 0.18);
  transform: translateY(-1px);
}

/* Side footer */
.cmh-contact-footer {
  padding: 12px 24px 16px;
  box-sizing: border-box;
  border-top: 1px solid #00000033;
  background: #FFFFFF;

  display: flex;
  align-items: center;
  gap: 12px;
}

.cmh-cta-btn-footer {
  align-self: center;
}

.cmh-contact-footer-img {
  display: block;
  height: 45px;
  width: auto;
  margin-left: auto;
}

/* =======================
   MOBILE
   ======================= */

@media (max-width: 960px) {
  .cmh-header-inner {
    grid-template-columns: auto 1fr auto;
    padding: 10px 16px;
  }

  .cmh-col-center {
    justify-content: flex-end;
  }

  .cmh-header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000929;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9998;
  }

  .cmh-header-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .cmh-menu {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
    gap: 8px;
  }

  .cmh-header-cta {
    display: none;
  }

  .cmh-burger {
    display: inline-flex;
  }

  .cmh-popup-overlay {
    padding-top: 100px;
  }

  .cmh-popup {
    max-width: 90%;
  }

  .cmh-field-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .cmh-field-control {
    width: 100%;
  }

  .cmh-select,
  .cmh-input,
  .cmh-textarea {
    width: 100%;
    max-width: 452px;
  }

  .cmh-button-row {
    justify-content: flex-end;
  }

  .cmh-contact-panel {
    width: 100%;
  }
}