@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --navy: #00487d;
  --sky: #ecf4f8;
  --orange: #f15a22;
  --search-control-height: 2.5rem;
  font-family: Montserrat, sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Montserrat, sans-serif;
}

/* Full-bleed sticky bar; background lives on header so it reaches both edges. */
body > header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  box-sizing: border-box;
  background-color: #fff;
  box-shadow: 0 1px 0 rgba(0, 72, 125, 0.12);
}

/* ========== header styles ========== */
.navbar {
  background-color: #fff;
  padding: 0.9rem 1.25rem;
  margin-bottom: 2rem;
}

.navbar-container {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  height: 88px;
  margin-left: 10%;
  width: auto;
  display: block;
}

.navbar-menu {
  list-style: none;
  font-size: 14px;
  display: flex;
  gap: .75rem;
  margin: 0 5% 0 0;
  padding: 0;
  align-items: center;
}

.navbar-menu li a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: 9999px;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.navbar-menu li a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.navbar-menu li a.navbar-orange-button {
  display: inline-flex;
  background: var(--orange);
  color: #ffffff !important;
  border: none;
  border-radius: 9999px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
  padding: 0.45rem 0.7rem;
  align-items: center;
}

.search-schools:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

@media (max-width: 1350px) {
  .navbar-container {
    flex-direction: column;
    gap: 0.75rem;
  }

  .navbar-menu {
    justify-content: center;
    flex-wrap: wrap;
  }

  .navbar-logo {
    margin-left: 0;
    margin-right: 0;
  }

  .navbar-menu {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ========== navbar dropdowns (SCHOOLS + account menu) ========== */
.navbar .dropdown {
  position: relative;
  display: inline-block;
}

.navbar .dropdown-content {
  display: none;
  position: absolute;
  /* Align to trigger’s left edge so menus extend rightward (SCHOOLS lives on the left of the bar). */
  left: 0;
  right: auto;
  top: calc(100% + 6px);
  min-width: 200px;
  background: var(--sky);
  border: 1px solid rgba(0, 72, 125, 0.15);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  z-index: 50;
  overflow: hidden;
}

/* Account / avatar menu sits toward the right — anchor to the button’s right so it doesn’t spill off-screen. */
.navbar .user-account-dropdown .dropdown-content {
  left: auto;
  right: 0;
}

.navbar .dropdown.open .dropdown-content {
  display: block;
}

/* Open dropdown: highlight the nav trigger (SCHOOLS, JOBS, account) */
.navbar .dropdown.open > .dropdown-button {
  background: var(--orange);
  color: #ffffff;
}

.navbar .dropdown.open > .dropdown-button.user-menu-button {
  border-color: var(--orange);
}

.navbar .dropdown-content a {
  display: block;
  font-weight: 400;
  padding: 0.65rem 1rem;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 9999px;
}

.navbar .dropdown-content a:hover {
  background: var(--orange);
  color: #ffffff;
  border-radius: 9999px;
}

/* SCHOOLS menu: secondary panel opens to the right of each row */
.navbar .schools-dropdown .dropdown-content.schools-dropdown__panel {
  overflow: visible;
  padding: 0.35rem 0;
  min-width: 220px;
}

.navbar .nav-flyout-item {
  position: relative;
}

.navbar .nav-flyout-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 14px;
  font-family: Montserrat, sans-serif;
  text-align: left;
  font-weight: 600;
  padding: 0.65rem 0.85rem 0.65rem 1rem;
  color: var(--navy);
  background: transparent;
  border: none;
  cursor: default;
  white-space: nowrap;
  border-radius: 0;
  user-select: none;
}

.navbar .nav-flyout-trigger::after {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  flex-shrink: 0;
  opacity: 0.75;
}

.navbar .nav-flyout-trigger:hover,
.navbar .nav-flyout-item:hover > .nav-flyout-trigger,
.navbar .nav-flyout-item:focus-within > .nav-flyout-trigger {
  background: var(--orange);
  color: #ffffff;
  border-radius: 9999px;
}

.navbar .nav-flyout-submenu {
  display: none;
  position: absolute;
  left: calc(100% - 4px);
  top: 0;
  min-width: 240px;
  background: var(--sky);
  border: 1px solid rgba(0, 72, 125, 0.15);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  z-index: 60;
  padding: 0.35rem 0;
}

/* Hover keeps flyout open; focus-within covers keyboard tab into links */
.navbar .nav-flyout-item:hover .nav-flyout-submenu,
.navbar .nav-flyout-item:focus-within .nav-flyout-submenu {
  display: block;
}

.navbar .nav-flyout-submenu a {
  display: block;
  font-weight: 400;
  padding: 0.55rem 1rem;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 0;
}

.navbar .nav-flyout-submenu a:hover {
  background: var(--orange);
  color: #ffffff;
  border-radius: 9999px;
}

/* Narrow viewports: no hover — stack links under each heading */
@media (max-width: 600px) {
  .navbar .nav-flyout-submenu {
    position: static;
    display: block;
    margin-top: 0.25rem;
    margin-left: 0.5rem;
    box-shadow: none;
    border-radius: 8px;
    border: 1px dashed rgba(0, 72, 125, 0.2);
  }
}

.navbar .dropdown-button.user-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(0, 72, 125, 0.2);
  background: #fff;
  border-radius: 9999px;
  cursor: pointer;
  color: var(--navy);
  line-height: 0;
}

.navbar .dropdown-button.user-menu-button--initials {
  line-height: 1;
}

.navbar .dropdown-button.user-menu-button:hover {
  background: var(--sky);
}

.navbar .dropdown-button.user-menu-button .user-menu-initials {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.navbar .dropdown-button.user-menu-button svg {
  width: 22px;
  height: 22px;
}

/* ========== footer styles ========== */
.footer {
  background-color: var(--navy);
  background-image: url('/static/img/artboard-4@3x.png');
  background-size: cover;
  background-position: center;
  background-blend-mode: screen;
  padding: 20px;
  margin: 15ch 0 0 0;
  display: flex;
  align-items: center;
  text-align: right;
  color: #ffffff;
  font-size: 14px;
}

.footer-logo {
  height: 180px;
  width: auto;
  display: block;
  margin-right: auto;
  margin-left: 10%;
}

.footer-menu {
  list-style: none;
  gap: 1.25rem;
  margin: 0 0 0 auto;
  padding: 0;
  margin-right: 10%;
}

.button-title {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: white;
}

.button-subheader {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: white;
  margin-bottom: 0.1rem;
  margin-top: 0.5rem;
}

.button-link {
  color: var(--orange);
  text-decoration: none;
  font-weight: 400;
  padding: 0.1rem 0 0.7rem;
  text-decoration: underline;
}

/* ========== shared styles ========== */

/* ========== request call styles ========== */

.request-call {
  background: var(--navy);
  margin: var(--element-gap) 60px var(--element-gap) 0 ;
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
  padding: clamp(16px, 3%, 32px) 0;
}

.request-call-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 40px);
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
  padding: 0 5%;
}

.request-call-left {
  flex: 2;
  min-width: 220px;
  text-align: left;
  padding-right: 20px;
}

.request-call-divider {
  width: 2px;
  height: 150px;
  background: white;
  flex-shrink: 0;
  margin-left: 20px;
  margin-right: 60px;
}

.request-call-right {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.button-call {
  background: white;
  color: var(--navy);
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-size: clamp(14px, 1.5vw, 20px);
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: bold;
  width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.request-call-text {
  color: white;
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: 500;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.75;
  letter-spacing: normal;
  text-align: left;
  padding: 0;
  margin: 0;
}

.phone-icon {
  width: clamp(55px, 8vw, 90px);
  height: clamp(55px, 8vw, 90px);
  object-fit: contain;
  padding-left: 20px;
  flex-shrink: 0;
}

@media (max-width: 1200px) {
  .request-call {
    margin-right: 0;
    border-radius: 0;
  }

  .request-call-layout {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .request-call-left {
    text-align: center;
  }

  .request-call-divider {
    width: 80%;
    height: 2px;
  }

  .request-call-text {
    text-align: center;
  }
}

/* ========== tabs section styles ========== */
.tabs-section-container {
  border-radius: 20px;
  padding: 24px 0;
  margin: 40px 24px;
}

.wrapper {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0 20px;
}

/* Restore desktop floor only when viewport is wide enough */
@media (min-width: 676px) {
  .wrapper {
    min-width: 675px;
  }
}

.tab-nav {
  display: flex;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  gap: clamp(0.4rem, 1.8vw, 2.2rem);
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 0;
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: visible;
  width: 100%;
}

.tab-btn {
  background: #ecf4f8;
  color: #959595;
  border-radius: 999px;
  padding: clamp(0.5rem, 1.1vw, 0.95rem) clamp(0.7rem, 2.2vw, 1.8rem);
  font-weight: 600;
  cursor: pointer;
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  font-size: clamp(0.8rem, 1.3vw, 1rem);
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.1;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .tab-nav { gap: 4px; padding-bottom: 10px; }
  .tab-btn { padding: 0.45rem 0.35rem; font-size: 0.72rem; }

  .tab-btn.active::after {
    bottom: -8px;
    height: 8px;
  }
}

.tab-btn.active {
  color: var(--orange);
  position: relative;
  background: #ecf4f8;

}

.tab-btn.active::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: -14px;
  height: 10px;
  border-radius: 999px;
  background: var(--orange);
  transform-origin: center;
  animation: active-tab-line-in 220ms ease-out;
}

@keyframes active-tab-line-in {
  from {
    transform: scaleX(0.2);
    opacity: 0;
  }

  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

.tab-header {
  color: var(--navy);
  font-size: 20px;
  font-weight: bold;
  padding: 0;
  text-align: left;
}

.tab-header-text {
  color: white;
  font-size: 14px;
  font-weight: 400;
  padding: 0;
  text-align: left;
}

.tab-text {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.6;
  padding: 0;
  margin: 0;
  text-align: left;
}

.wrapper>.card {
  background: white;
  color: var(--navy);
  border-radius: 16px;
  margin: 0;
  max-width: 100%;
  padding: 20px;
}

.tab-card {
  background: white;
  color: var(--navy);
  border-radius: 16px;
  margin: 0;
  max-width: 100%;
  padding: 20px;
}
.panel {
  display: none;
}

.panel.active {
  background: var(--sky);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  position: relative;
  z-index: 1;

}

.panel-content {
  flex: 2;
  padding: 20px;
}

.panel-image {
  flex: 0 0 auto;
  padding-top: 20px;
}

.panel-image img {
  width: 400px;
  height: 400px;
  max-width: none;
  border-radius: 1000px;
  object-fit: cover;
  display: block;
}

.panel-content h2 {
  color: var(--navy);
  margin: 0 0 12px;
}

.panel-content p {
  width: auto;
  height: auto;
  padding: 0;
  margin: 0 0 12px;
  text-align: left;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.6;
}

.checklist {
  margin: 0 0 12px 20px;
  text-align: left;
  color: var(--navy);
}

@media (max-width: 900px) {
  .panel.active {
    flex-direction: column;
  }
}

/* ========== review banner styles ========== */

.review-container {
  display: block;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--navy);
  background-image: url('/static/img/artboard-4@3x.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: var(--element-gap) 0 var(--element-gap) 60px;
  border-top-left-radius: 50px;
  border-bottom-left-radius: 50px;
  padding: 40px;
  font-family: Montserrat;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: #ffffff;
  text-align: center;
}

.review-text {
  max-width: 1200px;
  margin: 10px auto;
}

.review-container .text-style-1 {
  display: block;
  margin-top: 16px;
  font-weight: 700;
  color: #ffffff;
}

.review-container .text-style-2 {
  display: block;
  margin-top: 4px;
  color: #d1d5db;
  font-size: 16px;
}

/* ========== dropdown styles ========== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-button {
  color: var(--navy);
  border: none;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  padding: 0.45rem 0.7rem;
  align-items: center;
  white-space: nowrap;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: var(--sky);
  min-width: 300px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  border-radius: 20px;
  z-index: 1;
}

.dropdown-content a {
  color: var(--navy);
  padding: 24px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  padding: 0.45rem 0.7rem;
  align-items: center;
  border-radius: 20px;
}

.dropdown-content a:hover {
  background-color: var(--orange);
  color: white;
  border-radius: 20px;
}

.dropdown.open .dropdown-content {
  display: block;
  border-radius: 20px;
}

/* Privacy policy modal (footer link + HTMX) */
.privacy-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 36, 61, 0.55);
  box-sizing: border-box;
}

.privacy-modal-overlay.hidden {
  display: none;
}

.privacy-modal-dialog {
  position: relative;
  width: min(42rem, 100%);
  max-height: min(90vh, 900px);
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--navy);
  border-radius: 1rem;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.privacy-modal-toolbar {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  padding: 0.5rem 0.5rem 0;
}

.privacy-modal-close {
  border: none;
  background: transparent;
  color: var(--navy);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.privacy-modal-close:hover {
  background: var(--sky);
  color: var(--orange);
}

.privacy-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  text-align: left;
}

.privacy-modal-body h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: var(--navy);
}

.privacy-modal-body h2 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.15rem;
}

.privacy-modal-body h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.05rem;
}

.privacy-modal-body .font-600,
.privacy-policy-page .font-600 {
  font-weight: 600;
}

.privacy-modal-body .font-500,
.privacy-policy-page .font-500 {
  font-weight: 500;
}

.privacy-policy-page {
  max-width: 48rem;
  margin: 2rem auto;
  padding: 0 1.25rem 3rem;
  color: var(--navy);
  text-align: left;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.privacy-policy-page h1 {
  margin-top: 0;
  font-size: 1.75rem;
}

.privacy-policy-page h2 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.15rem;
}

.privacy-policy-page h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.05rem;
}

/* ========== school search widget + search results page ========== */

.search-page {
  max-width: 92rem;
  margin: 2rem auto;
  padding: 0 clamp(0.75rem, 2vw, 1.25rem);
}

.search-page h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--navy);
  text-align: center;
  font-family: Montserrat, sans-serif;
  line-height: 1.2;
}

@media (min-width: 480px) {
  .search-page h1 {
    font-size: 1.75rem;
  }
}

.search-page .lede {
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  font-family: Montserrat, sans-serif;
}

.search-page .search-browse-hint {
  color: #64748b;
  font-size: 0.95rem;
  text-align: center;
  margin: 0 auto 1.25rem;
  max-width: 42rem;
  line-height: 1.45;
}

.search-form {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: start;
  padding: 2rem clamp(1rem, 3vw, 2.5rem);
  background: var(--orange);
  border: 1px solid #e2e6ef;
  border-radius: 90px;
  margin: 0 auto 2rem;
  width: 1400px;
  max-width: min(92rem, calc(100% - 1.25rem));
  box-sizing: border-box;
  overflow: visible;
}

/*
 * Homepage search: same input width always (--home-field-width).
 * Narrow: one vertical column (title, rule, each field, search, actions).
 * Wide (min-width): single horizontal row, no wrap — tune --home-wide-min if needed.
 */
.search-form.search-form--home {
  --home-field-width: 16rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 500px;
  overflow-x: visible;
  overflow-y: visible;
}

.search-form.search-form--home .search-form__title {
  margin: 0;
  width: var(--home-field-width);
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: 0.02em;
  padding: 0 1.5rem 0 1.5rem;
  flex: 0 0 auto;
}

.search-form.search-form--home .search-form__divider {
  margin: 0;
  flex-shrink: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 9999px;
  width: min(var(--home-field-width), 100%);
  height: 2px;
}

.search-form.search-form--home .search-form__inputs-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: var(--home-field-width);
  flex: 0 0 auto;
}

.search-form.search-form--home .row {
  width: var(--home-field-width);
  max-width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.search-form.search-form--home .search-button {
  flex: 0 0 auto;
}

.search-form.search-form--home .actions {
  grid-column: unset;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  width: var(--home-field-width);
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 0;
}

/* One horizontal row from this width up (fits title + rule + 4×fields + search + actions). */
@media (min-width: 1400px) {
  .search-form.search-form--home {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 1400px;
  }

  .search-form.search-form--home .search-form__title {
    width: auto;
    max-width: none;
    text-align: left;
    white-space: nowrap;
  }

  .search-form.search-form--home .search-form__divider {
    width: 2px;
    height: 3rem;
    align-self: center;
  }

  .search-form.search-form--home .search-form__inputs-row {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    width: auto;
    max-width: none;
    align-items: center;
    gap: 0.65rem;
  }

  .search-form.search-form--home .row {
    width: var(--home-field-width);
    min-width: var(--home-field-width);
    max-width: var(--home-field-width);
    flex: 0 0 var(--home-field-width);
  }

  .search-form.search-form--home .actions {
    width: auto;
    max-width: none;
    flex-wrap: nowrap;
  }
}

.search-form .row {
  display: grid;
  gap: 0.35rem;
  overflow: visible;
  justify-items: stretch;
  min-width: 0;
}

.search-form .row.row-submit-group {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.search-form .row-submit-group {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

.search-form label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #ffffff;
}

.search-form input[type="text"],
.search-form input[type="search"],
.search-form input[type="number"],
.search-form select {
  padding: 0.5rem 0.65rem;
  border: 1px solid #ccd3e0;
  border-radius: 6px;
  font-size: 0.95rem;
  min-height: var(--search-control-height);
  box-sizing: border-box;
}

.search-form input:not([type="hidden"]):not([type="submit"]):not([type="button"]),
.search-form select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.search-form .row.row-submit-group select,
.search-form .row-submit-group select {
  flex: 1 1 10rem;
  width: auto;
  min-width: 0;
  max-width: none;
}

.search-form .actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.25rem;
}



@media (max-width: 719px) {
  .search-form .actions {
    justify-content: center;
  }
}

.search-form .search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  flex-shrink: 0;
  background-color: var(--navy);
  background-image: url("../img/icons/search-icon.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.35rem 1.35rem;
  color: transparent;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  overflow: hidden;
}

.search-form .search-button:hover {
  background-color: #0b3761;
}

.search-form .btn-secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid #cbd5e1;
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
}

.search-form .btn-secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.search-errors { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; font-size: 0.9rem; }
.search-errors ul { margin: 0; padding-left: 1.25rem; }
.center-badge { font-size: 0.85rem; color: #475569; margin-bottom: 1rem; }
.results-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: row; gap: 0.75rem; }
.result-card {
  border: 1px solid #e2e6ef;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  background: #fff;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
}
.result-card h2 { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.35rem 0; }
.result-card h2 a { color: #0f172a; text-decoration: none; }
.result-card h2 a:hover { text-decoration: underline; color: var(--orange); }
.result-meta { font-size: 0.88rem; color: #64748b; line-height: 1.4; }
.result-distance { font-weight: 700; color: var(--orange); font-size: 0.95rem; white-space: nowrap; }
.empty-state { color: #64748b; font-size: 0.95rem; padding: 1rem 0; }
/* Premium grid on search: same columns as category pages, without the tall header overlap */
.search-page .search-premium-cards-wrap {
  margin: 0 0 2rem 0;
  position: relative;
  z-index: 1;
}
.search-page .search-premium-cards-wrap .premium-schools-grid {
  padding-bottom: 1.5rem;
}
.search-page .search-premium-distance {
  margin: 0 0 0.75rem 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--orange);
  text-align: center;
}
.search-page .search-tier-label {
  margin: 0 0 0.35rem 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a3a6b;
}
.search-page hr.search-premium-free-divider {
  border: 0;
  border-top: 1px solid #ccd3e0;
  margin: 2.25rem auto 1.75rem;
  width: min(1114px, 100%);
  box-sizing: border-box;
}
.search-form .place-autocomplete-host {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: visible;
  position: relative;
  z-index: 5;
}

.search-form .place-autocomplete-host gmp-place-autocomplete {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: var(--search-control-height);
  border: 1px solid #ccd3e0;
  border-radius: 6px;
  font-size: 0.95rem;
  color-scheme: light;
  overflow: visible;
}

/* Geolocation control overlaid inside the address field */
.search-form .location-input-wrap {
  position: relative;
  width: 100%;
  align-self: stretch;
}

/* Match name/category/radius (50px); Places widget defaults taller than min-height: 2.5rem */
.search-form .location-input-wrap > input[type="text"],
.search-form .location-input-wrap gmp-place-autocomplete {
  height: 50px;
  min-height: 50px;
  max-height: 50px;
  box-sizing: border-box;
}

.search-form .location-input-wrap > input[type="text"] {
  padding-right: 2.75rem;
}

.search-form .row--location {
  margin-bottom: 0.15rem;
}

.search-form .location-input-wrap .search-form__geo-status {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.2rem);
  margin: 0;
}

.search-form .search-form__geo-btn {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  margin: 0;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: var(--navy);
  background-image: url("../img/location.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.35rem 1.35rem;
  color: var(--navy);
  cursor: pointer;
  box-sizing: border-box;
}

.search-form .search-form__geo-btn:hover {
  background: var(--orange);
  background-image: url("../img/location.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.35rem 1.35rem;
}

.search-form .search-form__geo-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.search-form .search-form__geo-status {
  display: block;
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
  min-height: 1.2em;
}