/* PB Hero Search Block */

section.pb-hero-search {
  background: linear-gradient(135deg, #142143 0%, #1e3a5f 100%);
  padding: 72px 0 80px;
  position: relative;
}

section.pb-hero-search::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

section.pb-hero-search .pb-hero-search-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}

section.pb-hero-search .pb-hero-search-title {
  color: #ffffff;
  font-family: var(--font-head);
  font-size: clamp(28px, 4.5vw, var(--typography-size-h1));
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.12;
  margin-bottom: 14px;
  margin-top: 0;
  text-align: center;
}

section.pb-hero-search p.pb-hero-search-subheading {
  color: #FEE6CD;
  font-size: var(--typography-size-h4);
  line-height: 1.6;
  margin-bottom: 44px;
  margin-top: 0;
  opacity: 0.88;
  text-align: center;
}

/* Form wrapper */
section.pb-hero-search .pb-hero-search-form {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.18);
  padding: 18px;
}

/* Fields row */
section.pb-hero-search .pb-hero-search-fields {
  align-items: stretch;
  display: flex;
  gap: 12px;
}

@media (max-width: 767px) {
  section.pb-hero-search {
    padding: 40px 0;
  }

  section.pb-hero-search .pb-hero-search-fields {
    flex-direction: column;
    align-items: center;
  }
}

/* Hide original select elements (Choices.js will handle them) */
section.pb-hero-search .pb-hero-search-select {
  display: none;
}

/* Submit button */
section.pb-hero-search .pb-hero-search-submit {
  align-items: center;
  background-color: #EB204C;
  border: none;
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  letter-spacing: 0.02em;
  padding: 12px 26px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

section.pb-hero-search .pb-hero-search-submit:hover {
  background-color: #c91a3d;
  box-shadow: 0 4px 16px rgba(235, 32, 76, 0.4);
  transform: translateY(-1px);
}

section.pb-hero-search .pb-hero-search-submit svg {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  section.pb-hero-search .pb-hero-search-submit {
    align-self: center;
    min-width: 200px;
  }
}

/* Choices.js custom styling */
section.pb-hero-search .choices {
  flex: 1;
  margin-bottom: 0;
  min-width: 0;
  position: relative;
}

@media (max-width: 767px) {
  section.pb-hero-search .choices {
    align-self: stretch;
    width: 100%;
  }
}

section.pb-hero-search .choices__inner {
  align-items: center;
  background-color: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  display: flex;
  font-size: 14px;
  min-height: 48px;
  padding: 12px 14px;
  transition: border-color 0.2s ease;
}

section.pb-hero-search .choices__list--single {
  padding: 0;
}

section.pb-hero-search .choices__list--single .choices__item {
  color: #374151;
}

section.pb-hero-search .choices[data-type*=select-one]::after {
  border-color: #9ca3af transparent transparent transparent;
  right: 1rem;
  top: 50%;
  margin-top: -2px;
}

section.pb-hero-search .choices.is-open::after {
  border-color: transparent transparent #9ca3af transparent;
  margin-top: -7px;
}

section.pb-hero-search .choices.is-focused .choices__inner,
section.pb-hero-search .choices__inner:focus-within {
  border-color: #142143;
  outline: none;
}

section.pb-hero-search .choices__list--dropdown {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  z-index: 9999;
}

section.pb-hero-search .choices__list--dropdown .choices__item--selectable.is-highlighted {
  background-color: #d2c0b3;
  color: #1a1b2a;
}

section.pb-hero-search .choices__list--dropdown .choices__item--selectable {
  padding: 12px 14px;
}

section.pb-hero-search .choices__input {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  padding: 8px 12px;
}

section.pb-hero-search .choices__input:focus {
  border-color: #142143;
  outline: none;
}

section.pb-hero-search .choices__placeholder {
  color: #9ca3af;
  opacity: 1;
}

/* Clear button */
section.pb-hero-search .pb-hero-search-clear {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.25rem;
  position: absolute;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  transition: color 0.2s ease;
  z-index: 2;
}

section.pb-hero-search .pb-hero-search-clear:hover {
  color: #374151;
}
