/* Header-only styles extracted from homepage to avoid global overrides */

.header-container {
  position: fixed;
  width: 100%;
  z-index: 10;
  top: 0;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(80px);
  -webkit-backdrop-filter: blur(80px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loan-header {
  display: flex;
  width: 100%;
  height: 60px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-family: Poppins;
  font-size: 16px;
  line-height: 24px;
  font-style: normal;
  font-weight: 500;
  background: linear-gradient(90deg, #e4caf8 0%, #ffcfae 51.56%, #faffc6 100%);
}

.loan-header label {
  color: #292d35;
}

.loan-header a {
  color: #4c3cce;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-decoration: underline;
  font-weight: bold;
}

.header-options-hamburger {
  display: none;
}

.header-section {
  height: 80px;
  position: relative;
  max-width: 1326px;
  padding: 0 80px;
  width: 100%;
  opacity: 1;
  box-sizing: border-box;
}

.header-options {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

@media screen and (min-width: 640px) {
  .mobile-menu-content{
    display: flex;
    gap: 16px;
    align-items: center;
    height: 100%;
  }
}

.header-options .header-options-container {
  display: flex;
  gap: 16px;
  align-items: center;
  height: 100%;
}

.header-options .header-options-container .header-link {
  margin: 0;
  padding: 8px;
  font-family: "Poppins";
  max-width: 169px;
}

.header-options .header-options-container .header-link:hover {
  color: #4c3cce;
}

.header-options .dropdown {
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-options .dropdown:hover {
  overflow: inherit;
}

.header-options .dropdown .dropdown-btn {
  padding: 8px;
  border: none;
  background-color: initial;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #28313b;
  font-family: "Poppins";
}

.header-options .dropdown:hover .dropdown-btn {
  color: #4c3cce;
}

.header-options .dropdown .dropdown-menu {
  display: none;
}

@media screen and (min-width: 640px) {
  .header-options .dropdown:hover .dropdown-menu {
    display: initial;
    position: absolute;
    top: calc(100% - 20px);
    left: 8px;
    background-color: #fff;
    border-radius: 16px;
    padding: 24px;
    width: max-content;
    display: flex;
    flex-direction: column;
    filter: drop-shadow(0px 4px 30px rgba(0, 0, 0, 0.05));
  }

  .header-options .dropdown:hover .dropdown-menu .dropdown-item {
    margin: 0;
    padding: 8px;
    font-family: "Poppins";
    font-weight: normal;
  }

  .header-options .dropdown:hover .dropdown-menu .dropdown-item:hover {
    color: #4c3cce;
  }

  .header-options .dropdown:hover .solutions-dropdown {
    display: initial;
    position: absolute;
    top: calc(100% - 20px);
    left: 8px;
    background-color: #fff;
    border-radius: 16px;
    padding: 24px;
    width: 400px;
    filter: drop-shadow(0px 4px 30px rgba(0, 0, 0, 0.05));
  }

  .solutions-dropdown-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0px;
  }

  .solutions-column-header {
    flex: 1;
    font-family: "Poppins";
    font-weight: 600;
    font-size: 14px;
    color: #292d35;
  }

  .solutions-dropdown-separator {
    height: 1px;
    background-color: #e5e7eb;
    margin-bottom: 16px;
    width: 80%;
    height: 1px;
    margin-top: 15px;
  }

  .solutions-dropdown-content {
    display: flex;
    gap: 24px;
  }

  .solutions-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .solutions-column .solutions-column-title {
    display: none !important;
  }

  .solutions-column .dropdown-item {
    margin: 0;
    padding: 8px;
    font-family: "Poppins";
    font-weight: normal;
  }

  .solutions-column .dropdown-item:hover {
    color: #4c3cce;
  }
}

.header-options-divider {
  width: 1px;
  height: 40px;
  background-color: #c2c6ce;
}

.header-actions {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-nav-spacer {
  height: 140px;
}

.mobile-cta-container,
.mobile-cta {
  display: none;
}

.header-btn {
  font-family: Source Sans Pro;
  width: 128px;
  border-radius: 100px;
  height: 48px;
  padding: 8px;
  font-weight: 600;
  align-items: center;
  justify-content: center;
  display: flex;
  font-size: 14px;
  line-height: 24px;
}

.login-button {
  color: #fff;
  border: none;
  background-color: #292d35;
}

.trial-button {
  background-color: #fff;
  color: #292d35;
  border: 2px solid #292d35;
  padding: 8px;
  width: fit-content;
}

.empty-button {
  background: none;
  color: #28313b;
  border: none;
  width: fit-content;
  font-family: Poppins;
}

@media screen and (max-width: 640px) {
  .loan-header {
    font-size: 12px;
  }

  .header-container {
    background: white;
  }

  .header-section {
    height: 56px;
    padding: 16px;
    justify-content: space-between;
    box-sizing: border-box;
  }

  .header-options-divider {
    display: none;
  }

  .header-options .header-options-container {
    position: absolute;
    right: 0;
    top: 56px;
    width: 217px;
    display: none;
    flex-direction: column;
    background: white;
    height: calc(100vh - 116px);
    height: calc(100dvh - 116px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    align-items: flex-start;
    gap: 0 !important;
    justify-content: space-between;
  }

  #hamburger-background {
    background-color: #292d35;
    opacity: 0.8;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    z-index: 1;
  }

  .header-options .header-options-container .dropdown {
    height: auto;
    width: auto;
    flex-direction: column;
  }

  .mobile-cta-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 0px;
    position: sticky;
    bottom: 0;
    z-index: 100;
    background: white;
  }

  .header-options .header-options-container .mobile-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .mobile-cta {
    display: block;
  }

  .header-options .header-options-container .mobile-cta > button {
    padding: 8px 12px;
    width: 100%;
    margin: 12px;
    background-color: white;
    border-radius: 100px;
    border: 1px solid #292d35;
    font: 600 14px/20px "Source Sans Pro";
    color: #292d35;
  }

  .header-options
    .header-options-container
    .mobile-cta
    .create-account-button {
    background-color: #4c3cce;
    color: white;
    border: 1px solid #4c3cce;
  }

  .header-nav-spacer {
    height: 100px;
  }

  .header-options-container .dropdown-btn {
    width: 100%;
    display: flex;
    font-family: "Poppins" !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 24px !important;
    letter-spacing: 0px;
    text-align: left;
    padding: 12px 24px 12px 24px !important;
    color: #3d4350;
    justify-content: space-between;
    width: 217px;
  }

  .header-options .header-options-container .dropdown .dropdown-menu {
    background: transparent;
    position: static;
    display: none;
  }

  .header-options .header-options-container .dropdown-menu a {
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    padding: 12px 24px !important;
    font-family: "Poppins" !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 24px !important;
    letter-spacing: 0px;
  }

  .header-options .header-options-container .dropdown .solutions-dropdown {
    background: transparent;
    position: static;
    display: none;
    width: 100%;
    padding: 0;
  }

  .header-options
    .header-options-container
    .dropdown
    .solutions-dropdown-header {
    display: none;
  }

  .header-options .header-options-container .solutions-dropdown-separator {
    display: none;
  }

  .header-options .header-options-container .solutions-dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: hidden;
  }

  .header-options .header-options-container .solutions-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    margin-left: 5%;
  }

  .solutions-column .solutions-column-title {
    display: block;
    font-family: "Poppins";
    font-size: 13px;
    font-weight: 400;
    color: #292d35;
    margin: 8px 0 8px 10%;
    padding-bottom: 6px;
    height: 20px;
  }

  .header-options .header-options-container .solutions-column .dropdown-item {
    width: 100%;
    text-align: start;
    padding: 12px 32px 12px 12px !important;
    font-family: "Poppins" !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 24px !important;
    border-left: 1px solid #e5e7eb;
    margin-left: 10%;
  }

  .header-options-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .d-flex-imp {
    display: flex !important;
  }

  .d-none-imp {
    display: none !important;
  }

  .header-options .dropdown .active-menu {
    width: 217px;
    display: flex !important;
    flex-direction: column;
    max-height: calc(100vh - 116px);
    max-height: calc(100dvh - 116px);
    overflow-y: auto;
    padding-left: 10%;
    overflow-x: hidden;
  }

  .header-options .dropdown .active-menu .solutions-dropdown {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    max-height: calc(100vh - 56px);
    max-height: calc(100dvh - 56px);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .header-actions {
    display: none;
  }
}


