.search-section {
  padding: 100px 0;

  background: #f7f9fc;
}

.search-container {
  width: min(1180px, calc(100% - 40px));

  margin: 0 auto;
}


/* ==================== HEADING ==================== */

.search-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 40px;

  margin-bottom: 42px;
}

.search-eyebrow {
  display: inline-block;

  margin-bottom: 12px;

  color: #1769e0;

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 1.5px;
}

.search-heading h2 {
  margin: 0;

  color: #172033;

  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;

  letter-spacing: -2px;
}

.search-heading h2 span {
  color: #1769e0;
}

.search-heading > p {
  max-width: 390px;

  margin: 0;

  color: #667085;

  font-size: 14px;
  line-height: 1.75;
}


/* ==================== SEARCH PANEL ==================== */

.search-panel {
  display: grid;

  grid-template-columns:
    1.15fr
    1.15fr
    1.05fr
    auto;

  align-items: end;

  gap: 14px;

  padding: 22px;

  background: #ffffff;

  border: 1px solid #e7ecf3;
  border-radius: 18px;

  box-shadow:
    0 14px 40px rgba(23, 32, 51, 0.07);
}

.search-panel-field {
  min-width: 0;
}

.search-panel-field label {
  display: block;

  margin: 0 0 8px 3px;

  color: #344054;

  font-size: 11px;
  font-weight: 700;
}

.search-input-wrap {
  position: relative;
}

.search-field-icon {
  position: absolute;

  left: 14px;
  top: 50%;

  z-index: 2;

  transform: translateY(-50%);

  color: #1769e0;

  font-size: 16px;
  font-weight: 700;

  pointer-events: none;
}

.search-input-wrap select {
  width: 100%;
  height: 52px;

  padding: 0 40px 0 42px;

  border: 1px solid #dfe5ee;
  border-radius: 11px;

  outline: none;

  background: #ffffff;

  color: #172033;

  font-family: inherit;

  font-size: 13px;
  font-weight: 600;

  cursor: pointer;

  appearance: none;

  background-image:
    linear-gradient(45deg, transparent 50%, #667085 50%),
    linear-gradient(135deg, #667085 50%, transparent 50%);

  background-position:
    calc(100% - 18px) 22px,
    calc(100% - 13px) 22px;

  background-size:
    5px 5px,
    5px 5px;

  background-repeat: no-repeat;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.search-input-wrap select:hover {
  border-color: #b8c7dc;
}

.search-input-wrap select:focus {
  border-color: #1769e0;

  box-shadow:
    0 0 0 3px rgba(23, 105, 224, 0.10);
}


/* ==================== BUTTON ==================== */

.search-submit-button {
  height: 52px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 12px;

  padding: 0 23px;

  border: 0;
  border-radius: 11px;

  background: #1769e0;
  color: #ffffff;

  font-family: inherit;

  font-size: 12px;
  font-weight: 800;

  white-space: nowrap;

  cursor: pointer;

  box-shadow:
    0 9px 22px rgba(23, 105, 224, 0.20);

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.search-submit-button:hover {
  background: #0d4fb5;

  transform: translateY(-2px);

  box-shadow:
    0 13px 28px rgba(23, 105, 224, 0.26);
}

.search-submit-button:active {
  transform: translateY(0);
}

.search-submit-arrow {
  font-size: 17px;

  transition: transform 0.2s ease;
}

.search-submit-button:hover .search-submit-arrow {
  transform: translateX(3px);
}


/* ==================== RESULTS HEADER ==================== */

.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-top: 58px;
  margin-bottom: 20px;
}

.results-label {
  display: block;

  margin-bottom: 6px;

  color: #1769e0;

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 1.4px;
}

.search-results-header h3 {
  margin: 0;

  color: #172033;

  font-size: 24px;
  font-weight: 800;

  letter-spacing: -0.7px;
}

.results-count {
  padding: 8px 12px;

  border: 1px solid #dfe7f2;
  border-radius: 20px;

  background: #ffffff;

  color: #667085;

  font-size: 10px;
  font-weight: 700;
}


/* ==================== EMPTY STATE ==================== */

.search-results {
  min-height: 260px;
}

.search-empty-state {
  min-height: 270px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 42px 25px;

  background: #ffffff;

  border: 1px dashed #ccd7e6;
  border-radius: 18px;

  text-align: center;
}

.search-empty-icon {
  width: 52px;
  height: 52px;

  display: grid;
  place-items: center;

  margin-bottom: 17px;

  border-radius: 14px;

  background: #edf4ff;

  color: #1769e0;

  font-size: 21px;
}

.search-empty-status {
  margin-bottom: 9px;

  color: #45a87a;

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 1.2px;
}

.search-empty-state h3 {
  margin: 0 0 9px;

  color: #172033;

  font-size: 20px;
  font-weight: 800;
}

.search-empty-state p {
  max-width: 520px;

  margin: 0;

  color: #667085;

  font-size: 12px;
  line-height: 1.7;
}

.search-empty-button {
  display: inline-flex;
  align-items: center;

  gap: 9px;

  margin-top: 22px;

  padding: 11px 17px;

  border-radius: 9px;

  background: #1769e0;
  color: #ffffff;

  text-decoration: none;

  font-size: 11px;
  font-weight: 700;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.search-empty-button:hover {
  background: #0d4fb5;

  transform: translateY(-2px);
}

.search-empty-button span {
  font-size: 15px;
}


/* ==================== TRUST NOTE ==================== */

.search-trust-note {
  display: flex;
  align-items: flex-start;

  gap: 12px;

  margin-top: 22px;

  padding: 15px 17px;

  border: 1px solid #e5ebf4;
  border-radius: 12px;

  background: #ffffff;
}

.search-trust-icon {
  width: 25px;
  height: 25px;

  flex: 0 0 25px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: #edf9f3;

  color: #38a878;

  font-size: 11px;
  font-weight: 800;
}

.search-trust-note p {
  margin: 0;

  color: #667085;

  font-size: 10px;
  line-height: 1.65;
}

.search-trust-note strong {
  color: #344054;
}


/* ==================== TABLET ==================== */

@media (max-width: 950px) {

  .search-heading {
    align-items: flex-start;

    flex-direction: column;

    gap: 16px;
  }

  .search-heading > p {
    max-width: 600px;
  }

  .search-panel {
    grid-template-columns: 1fr 1fr;
  }

  .search-submit-button {
    width: 100%;
  }

}


/* ==================== MOBILE ==================== */

@media (max-width: 600px) {

  .search-section {
    padding: 70px 0;
  }

  .search-container {
    width: calc(100% - 28px);
  }

  .search-heading {
    margin-bottom: 30px;
  }

  .search-heading h2 {
    font-size: 35px;

    letter-spacing: -1.4px;
  }

  .search-heading > p {
    font-size: 12px;
  }

  .search-panel {
    grid-template-columns: 1fr;

    padding: 17px;

    border-radius: 15px;
  }

  .search-input-wrap select,
  .search-submit-button {
    height: 50px;
  }

  .search-results-header {
    align-items: flex-start;

    flex-direction: column;

    margin-top: 45px;
  }

  .search-empty-state {
    padding: 35px 18px;
  }

  .search-empty-state h3 {
    font-size: 18px;
  }

  .search-trust-note {
    padding: 13px;
  }

}
