/* ===========================
   Search page styling
   =========================== */

/* Keep template layout intact */
body {
  margin: 0;
}

/* ===== Layout ===== */
.search-layout {
  margin-top: 10px;
}

/* ===== Search card ===== */
.search-card {
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
  overflow: hidden;
}

.search-card-header {
  padding: 16px 18px;
  background: linear-gradient(
    135deg,
    rgba(13,110,253,0.14),
    rgba(13,110,253,0.05)
  );
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.search-card-header h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.search-card-header p {
  margin: 2px 0 0 0;
  color: rgba(0,0,0,0.65);
  font-size: 0.95rem;
}

/* ===== Form ===== */
.form-container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
  align-items: flex-end;
  padding: 18px;
}

/* Selection block */
.selection-type {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.02);
  min-width: 210px;
}

.selection-type input[type="radio"] {
  accent-color: #0d6efd;
  transform: translateY(1px);
  margin-right: 6px;
}

.input-box {
  min-width: 320px;
}

.input-box label,
.selection-type label {
  font-weight: 700;
  margin-bottom: 6px;
  display: inline-block;
}

/* ===== Select2 ===== */
.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  background: #fff;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.select2-container--default
.select2-selection--single
.select2-selection__rendered {
  padding-left: 12px;
  line-height: 44px;
  color: rgba(0,0,0,0.82);
}

.select2-container--default
.select2-selection--single
.select2-selection__arrow {
  height: 44px;
  right: 10px;
}

.select2-container--default.select2-container--focus
.select2-selection--single {
  border-color: rgba(13,110,253,0.55);
  box-shadow: 0 0 0 .25rem rgba(13,110,253,0.15);
}

.select2-dropdown {
  border-radius: 12px;
  overflow: hidden;
}

/* ===== Search button ===== */
.btn-search-nice {
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
  color: #fff;
  box-shadow: 0 10px 22px rgba(13,110,253,0.25);
  transition: transform .12s ease,
              box-shadow .12s ease,
              filter .12s ease;
  white-space: nowrap;
}

.btn-search-nice:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 14px 28px rgba(13,110,253,0.30);
}

.btn-search-nice:active {
  transform: translateY(0);
}

/* ===== How-to panel ===== */
.howto {
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.02);
  border-radius: 18px;
  padding: 18px;
  height: 100%;
}

.howto h5 {
  font-weight: 900;
  margin-bottom: 10px;
}

.howto .step {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: flex-start;
}

.howto .badge-step {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  background: rgba(13,110,253,0.12);
  color: #0b5ed7;
  flex: 0 0 28px;
}

.howto ul {
  margin: 8px 0 0 0;
  padding-left: 18px;
}

.howto li {
  margin: 6px 0;
  color: rgba(0,0,0,0.80);
}

.muted {
  color: rgba(0,0,0,0.65);
  font-size: 0.95rem;
}
