.home-directory-search { position: relative; z-index: 10; margin: -66px 0 80px; }
.home-search-card { background: #fff; border: 1px solid #e9e5ef; border-radius: 18px; box-shadow: 0 16px 48px rgba(30, 20, 53, .12); padding: 20px 24px 0; }
.home-search-row { display: grid; grid-template-columns: 1fr 1.6fr 1.15fr auto; gap: 0; align-items: center; }
.home-search-field { min-width: 0; padding: 4px 24px; border-inline-end: 1px solid #e9e5ef; }
.home-search-field:first-child { padding-inline-start: 0; }
.home-search-field label { display: block; color: #3f3450; font-size: 13px; font-weight: 600; line-height: 1.5; margin: 0 0 7px; }
.home-search-field select, .home-search-field input { display: block; width: 100%; min-width: 0; min-height: 28px; padding: 0 22px 0 0; margin: 0; border: 0; border-radius: 0; background-color: transparent; color: #20172d; font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1.6; box-shadow: none; }
.home-search-field input { padding-inline-end: 0; }
.home-search-field input::placeholder { color: #82788d; font-weight: 400; opacity: 1; }
.home-search-field select { appearance: none; background: url('../images/icons/angle-down-gray2-20.svg') right center / 18px no-repeat; cursor: pointer; }
.home-search-field:focus-within { border-radius: 6px; outline: 2px solid var(--themeColor, #6c1cff); outline-offset: 4px; }
.home-search-field input:focus, .home-search-field select:focus { outline: none; box-shadow: none; }
.home-search-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 14px 28px; margin-inline-start: 24px; border: 0; border-radius: 12px; background: var(--themeColor, #6c1cff); color: #fff; font-size: 16px; font-weight: 600; transition: filter .15s ease, box-shadow .15s ease; }
.home-search-submit:hover { filter: brightness(.9); box-shadow: 0 5px 15px rgba(108, 28, 255, .2); }
.home-search-submit:focus-visible, .home-search-more summary:focus-visible, .home-search-clear:focus-visible, .home-search-apply:focus-visible { outline: 2px solid #432078; outline-offset: 4px; }
.home-search-more { margin-top: 18px; border-top: 1px solid #f0edf4; }
.home-search-more summary { display: flex; align-items: center; gap: 8px; width: fit-content; padding: 13px 0; color: #65576f; font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; }
.home-search-more summary::-webkit-details-marker { display: none; }
.home-search-filter-icon { font-size: 20px; line-height: 1; }
.home-search-chevron { margin-inline-start: 5px; font-size: 17px; transition: transform .15s ease; }
.home-search-more[open] .home-search-chevron { transform: rotate(180deg); }
.home-search-more[open] summary { color: var(--themeColor, #6c1cff); }
.home-search-refinements { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 4px 0 18px; margin: 0; border: 0; min-width: 0; }
.home-search-refinements[hidden] { display: none; }
.home-search-extra-field { min-width: 0; }
.home-search-extra-field label { display: block; margin-bottom: 7px; color: #3f3450; font-size: 14px; font-weight: 500; }
.home-search-extra-field select, .home-search-extra-field input { width: 100%; min-height: 46px; border: 1px solid #e1dbe8; border-radius: 8px; padding: 10px 12px; background-color: #fcfbfd; color: #3f3450; font: inherit; font-size: 15px; }
.home-search-extra-field :is(select,input):focus { outline: 2px solid var(--themeColor, #6c1cff); outline-offset: 2px; }
.home-search-advanced-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f0edf4; padding: 14px 0 18px; }
.home-search-clear { background: transparent; border: 0; padding: 8px 0; color: #65576f; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.home-search-apply { background: #f4efff; color: var(--themeColor, #6c1cff); border: 0; border-radius: 8px; padding: 10px 16px; font-size: 14px; font-weight: 600; }
.home-search-apply span { margin-inline-start: 12px; }
@media (max-width: 991.98px) {
    .home-search-card { padding: 18px 20px 0; }
    .home-search-field { padding-inline: 14px; }
    .home-search-row { grid-template-columns: 1fr 1.4fr 1fr auto; }
    .home-search-submit { padding-inline: 18px; margin-inline-start: 14px; }
    .home-search-field input, .home-search-field select { font-size: 15px; }
}
@media (max-width: 767.98px) {
    .home-directory-search { margin-top: -40px; margin-bottom: 48px; }
    .home-search-row { grid-template-columns: 1fr 1fr; gap: 18px 0; }
    .home-search-keyword { grid-row: 1; grid-column: 1 / -1; padding: 0 0 16px; border-inline-end: 0; border-bottom: 1px solid #e9e5ef; }
    .home-search-field:first-child { padding-inline-end: 16px; }
    .home-search-field:nth-child(3) { border: 0; padding-inline-end: 0; }
    .home-search-submit { grid-column: 1 / -1; margin: 0; min-height: 50px; }
    .home-search-refinements { grid-template-columns: 1fr 1fr; }
    .home-search-refinements > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 399.98px) {
    .home-search-card { padding-inline: 16px; }
    .home-search-refinements { grid-template-columns: 1fr; }
}
