/* ============ PROJECT FIND — homenew premium search ============ */
.project-find {
  position: relative;
  padding: clamp(80px, 10vw, 130px) 0 clamp(90px, 11vw, 140px);
  background: var(--background);
  overflow: visible;
}

.project-find__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.project-find__ghost {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: clamp(72px, calc(20px + 14vw), 220px);
  letter-spacing: 0.06em;
  line-height: 1;
}

.project-find__ghost--fill {
  color: var(--primary-color-two);
  opacity: 0.06;
  z-index: 0;
}

.project-find__ghost--outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(151, 140, 33, 0.14);
  z-index: 1;
}

html[data-theme="dark"] .project-find__ghost--fill { opacity: 0.08; }
html[data-theme="dark"] .project-find__ghost--outline {
  -webkit-text-stroke-color: rgba(242, 242, 242, 0.08);
}

.project-find__inner {
  position: relative;
  z-index: 2;
}

.project-find__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.project-find__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-color);
  background: rgba(151, 140, 33, 0.1);
  border: 1px solid rgba(151, 140, 33, 0.22);
  margin-bottom: 1rem;
}

.project-find__eyebrow svg {
  width: 14px;
  height: 14px;
}

.project-find__head .section-heading {
  margin-bottom: 0.75rem;
}

.project-find__lead {
  margin: 0 auto;
  max-width: 540px;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--primary-color-two);
  opacity: 0.82;
}

.project-find__card {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 2px;
  border-radius: 1.35rem;
  background: linear-gradient(
    130deg,
    rgba(151, 140, 33, 0.55),
    rgba(151, 140, 33, 0.15),
    rgba(60, 60, 59, 0.12),
    rgba(151, 140, 33, 0.45)
  );
  background-size: 260% 260%;
  animation: pfBorderFlow 10s ease infinite;
  box-shadow:
    0 24px 60px rgba(60, 60, 59, 0.08),
    0 8px 24px rgba(151, 140, 33, 0.06);
}

.project-find__card::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  top: -120px;
  right: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(151, 140, 33, 0.18), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.project-find__form {
  position: relative;
  z-index: 3;
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: calc(1.35rem - 2px);
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(255, 255, 255, 0.65), transparent 55%),
    linear-gradient(165deg, rgba(255, 250, 244, 0.98) 0%, rgba(243, 235, 221, 0.92) 100%);
}

.project-find__card:has(.choices.is-open) .project-find__form {
  z-index: 10;
}

html[data-theme="dark"] .project-find__form {
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(255, 255, 255, 0.04), transparent 55%),
    linear-gradient(165deg, rgba(42, 42, 42, 0.98) 0%, rgba(33, 33, 33, 0.95) 100%);
}

.pf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem 1.15rem;
  align-items: end;
}

.pf-field {
  position: relative;
  z-index: 1;
  overflow: visible;
}

.pf-field:has(.choices.is-open) {
  z-index: 50;
}

.pf-field label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-color-two);
  opacity: 0.72;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.pf-field:focus-within label,
.pf-field.is-filled label,
.pf-field:has(.choices.is-open) label {
  color: var(--primary-color);
  opacity: 1;
}

.pf-select-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 58px;
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 250, 244, 0.9) 100%);
  border: 1px solid rgba(151, 140, 33, 0.16);
  box-shadow:
    0 6px 20px rgba(60, 60, 59, 0.06),
    0 1px 0 rgba(255, 255, 255, 1) inset;
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s ease,
    background 0.28s ease;
  overflow: visible;
}

.pf-select-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(151, 140, 33, 0.07), transparent 42%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

html[data-theme="dark"] .pf-select-wrap {
  background: linear-gradient(180deg, rgba(48, 48, 48, 0.98) 0%, rgba(36, 36, 36, 0.95) 100%);
  border-color: rgba(151, 140, 33, 0.22);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pf-field.is-filled .pf-select-wrap {
  border-color: rgba(151, 140, 33, 0.38);
  box-shadow:
    0 10px 28px rgba(151, 140, 33, 0.12),
    0 1px 0 rgba(255, 255, 255, 1) inset;
}

.pf-field.is-filled .pf-select-wrap::before {
  opacity: 1;
}

.pf-select-wrap:focus-within,
.pf-field:has(.choices.is-open) .pf-select-wrap {
  border-color: rgba(151, 140, 33, 0.62);
  box-shadow:
    0 0 0 4px rgba(151, 140, 33, 0.14),
    0 12px 32px rgba(151, 140, 33, 0.14);
  transform: translateY(-2px);
}

.pf-select-wrap:focus-within::before,
.pf-field:has(.choices.is-open) .pf-select-wrap::before {
  opacity: 1;
}

.pf-select-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  flex-shrink: 0;
  color: var(--primary-color);
  background: linear-gradient(135deg, rgba(151, 140, 33, 0.16), rgba(151, 140, 33, 0.05));
  border-right: 1px solid rgba(151, 140, 33, 0.14);
  transition: background 0.28s ease, color 0.28s ease;
}

.pf-select-wrap:focus-within .pf-select-icon,
.pf-field.is-filled .pf-select-icon,
.pf-field:has(.choices.is-open) .pf-select-icon {
  background: linear-gradient(135deg, rgba(151, 140, 33, 0.24), rgba(151, 140, 33, 0.1));
}

.pf-select-icon svg {
  width: 19px;
  height: 19px;
}

.pf-select-wrap select {
  flex: 1;
  min-width: 0;
  height: 58px;
  padding: 0 3.5rem 0 1rem;
  border: none;
  background: transparent;
  color: var(--primary-color-two);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  appearance: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.pf-select-wrap:has(.project-find-choices) select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Choices.js — custom rounded dropdown panel */
.project-find-choices {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  margin-bottom: 0 !important;
}

.project-find-choices .choices__inner {
  min-height: 58px;
  padding: 0 3.5rem 0 1rem !important;
  border: none !important;
  border-radius: 0 1rem 1rem 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--primary-color-two);
  display: flex;
  align-items: center;
  cursor: pointer;
}

.project-find-choices .choices__list--single {
  padding: 0 !important;
}

.project-find-choices .choices__list--single .choices__item {
  margin-bottom: 0 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-find-choices .choices__list--dropdown {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transition:
    opacity 0.2s ease,
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.24s;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: calc(100% + 0.5rem) !important;
  margin: 0 !important;
  border-radius: 1rem !important;
  border: 1px solid rgba(151, 140, 33, 0.22) !important;
  background: #fffaf4 !important;
  box-shadow:
    0 4px 6px rgba(60, 60, 59, 0.06),
    0 16px 40px rgba(60, 60, 59, 0.14),
    0 8px 24px rgba(151, 140, 33, 0.12) !important;
  overflow: hidden;
  isolation: isolate;
  z-index: 10000 !important;
}

html[data-theme="dark"] .project-find-choices .choices__list--dropdown {
  background: #2a2a2a !important;
  border-color: rgba(151, 140, 33, 0.28) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 4px 16px rgba(151, 140, 33, 0.1) !important;
}

.project-find-choices .choices__list--dropdown .choices__list {
  max-height: 260px !important;
  overflow-y: auto !important;
  padding: 0.4rem !important;
  overscroll-behavior: contain;
  background: #fffaf4 !important;
}

html[data-theme="dark"] .project-find-choices .choices__list--dropdown .choices__list {
  background: #2a2a2a !important;
}

.project-find-choices.is-open .choices__list--dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.project-find-choices .choices__list--dropdown .choices__item--choice {
  padding: 0.72rem 1rem !important;
  margin: 0.15rem 0 !important;
  border-radius: 0.7rem !important;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary-color-two);
  background: #fffaf4 !important;
  transition: background 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

html[data-theme="dark"] .project-find-choices .choices__list--dropdown .choices__item--choice {
  background: #2a2a2a !important;
}

.project-find-choices .choices__list--dropdown .choices__item--choice.is-highlighted {
  background: linear-gradient(
    135deg,
    rgba(151, 140, 33, 0.2),
    rgba(151, 140, 33, 0.08)
  ) !important;
  color: var(--primary-color);
  transform: translateX(2px);
}

.project-find-choices .choices__list--dropdown .choices__item--selectable.is-highlighted {
  background: linear-gradient(
    135deg,
    rgba(151, 140, 33, 0.2),
    rgba(151, 140, 33, 0.08)
  ) !important;
}

.project-find-choices .choices__placeholder {
  opacity: 0.55;
}

.project-find-choices::after {
  display: none !important;
}

.pf-select-wrap select:focus {
  outline: none;
}

.pf-select-wrap select option {
  color: #1a1a1a;
  background: #fffaf4;
  padding: 0.5rem;
}

.pf-chevron {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(151, 140, 33, 0.12);
  border: 1px solid rgba(151, 140, 33, 0.2);
  color: var(--primary-color);
  pointer-events: none;
  z-index: 2;
  transition: transform 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.pf-chevron svg {
  width: 12px;
  height: 12px;
  transition: transform 0.28s ease;
}

.pf-select-wrap:focus-within .pf-chevron,
.pf-field:has(.choices.is-open) .pf-chevron {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 12px rgba(151, 140, 33, 0.35);
}

.pf-select-wrap:focus-within .pf-chevron svg,
.pf-field:has(.choices.is-open) .pf-chevron svg {
  transform: rotate(180deg);
}

.pf-field--action {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.pf-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  height: 58px;
  padding: 0 0.55rem 0 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, transparent 42%),
    linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 52%, var(--primary-color) 100%);
  background-size: 100% 100%, 220% 220%;
  background-position: 0 0, 0% 50%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 14px 34px rgba(151, 140, 33, 0.32),
    0 4px 14px rgba(60, 60, 59, 0.1);
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease,
    background-position 0.55s ease,
    border-color 0.32s ease;
}

.pf-submit__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 28%,
    rgba(255, 255, 255, 0.22) 48%,
    transparent 68%
  );
  transform: translateX(-120%);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

.pf-submit__text {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.pf-submit__icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.32s ease,
    box-shadow 0.32s ease;
}

.pf-submit__icon svg {
  width: 16px;
  height: 16px;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.pf-submit:hover {
  transform: translateY(-3px);
  background-position: 0 0, 100% 50%;
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 20px 44px rgba(151, 140, 33, 0.4),
    0 8px 20px rgba(60, 60, 59, 0.12);
}

.pf-submit:hover .pf-submit__shine {
  transform: translateX(120%);
}

.pf-submit:hover .pf-submit__icon {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 6px 16px rgba(0, 0, 0, 0.16);
}

.pf-submit:hover .pf-submit__icon svg {
  transform: translateX(3px);
}

.pf-submit:focus-visible {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 0 0 4px rgba(151, 140, 33, 0.22),
    0 18px 40px rgba(151, 140, 33, 0.36);
}

.pf-submit:active {
  transform: translateY(-1px);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.12),
    0 10px 24px rgba(151, 140, 33, 0.28);
}

.pf-submit:active .pf-submit__icon {
  transform: scale(0.96);
}

.project-find__hint {
  position: relative;
  z-index: 0;
  margin: 0.85rem 0 0;
  padding: 0 0.25rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--primary-color-two);
  opacity: 0.55;
}

.project-find__card:has(.choices.is-open) .project-find__hint {
  visibility: hidden;
}

@keyframes pfBorderFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.pf-field--shake .pf-select-wrap {
  animation: pfShake 0.45s ease;
}

@keyframes pfShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

@media (max-width: 991.98px) {
  .pf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pf-field--action {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .project-find__ghost { font-size: clamp(56px, 22vw, 96px); }
  .pf-grid {
    grid-template-columns: 1fr;
  }
  .project-find__head { margin-bottom: 1.75rem; }
}
