/* Search pages — layout within sz-home chrome (no heavy background image) */

.sz-search-page .sz-main {
  min-height: 52vh;
  padding-top: 36px;
  padding-bottom: 56px;
}

.sz-search-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.sz-search-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.sz-search-tabs .btn {
  flex: 1 1 220px;
  font-size: 16px !important;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 10px;
  white-space: normal;
  line-height: 1.35;
}

.sz-search-card {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(226, 218, 198, 0.95);
  border-radius: 14px;
  padding: 18px 16px 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.sz-search-card .form-control2 {
  display: block;
  width: 100%;
  height: 38px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #0f172a;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-sizing: border-box;
}

.sz-search-card .form-control2:focus {
  border-color: #0b5634;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(11, 86, 52, 0.15);
}

.sz-search-hint {
  display: block;
  margin-top: 4px;
  padding-left: 4px;
  font-size: 12px;
  color: #94a3b8;
}

.sz-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
  justify-content: flex-end;
}

.sz-search-actions .btn {
  flex: 1 1 auto;
  min-width: 0;
}

.sz-captcha-image {
  min-height: 38px;
  display: flex;
  align-items: center;
}

.sz-captcha-image img,
.sz-captcha-image table {
  max-width: 100%;
  height: auto;
}

.sz-captcha-refresh-btn {
  width: 38px;
  height: 38px;
  padding: 0 !important;
  line-height: 38px;
  text-align: center;
}

.sz-search-fields > [class*="col-"] {
  margin-bottom: 6px;
}

.sz-search-captcha-row {
  display: none; /* legacy */
}

.sz-search-msg {
  text-align: center;
  margin-top: 8px;
  min-height: 22px;
}

.sz-search-info {
  margin-top: 14px;
  text-align: center;
}

.sz-search-info a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  text-decoration: none;
  font-size: 13px;
}

.sz-search-info img {
  width: 20px;
  height: 20px;
}

.btn-default2 {
  color: #fff;
  background-color: #1e293b;
  border-color: #0f172a;
  border-radius: 8px;
  padding: 7px 16px;
}

.btn-default2:hover {
  color: #fff;
  background-color: #334155;
  border-color: #1e293b;
}

@media (max-width: 767px) {
  .sz-search-tabs .btn {
    font-size: 14px !important;
  }
}

/* Loading overlay — fixed center, does not use Bootstrap modal (avoids body jump) */
.sz-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.42);
  padding: 16px;
  box-sizing: border-box;
}

.sz-loading-overlay.is-open {
  display: flex;
}

.sz-loading-box {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.sz-loading-box .sz-loading-title {
  padding: 12px 16px;
  font-weight: 700;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
}

.sz-loading-box .sz-loading-body {
  padding: 16px;
}

.sz-loading-box .progress {
  margin-bottom: 0;
  height: 22px;
}

/* Prevent Bootstrap modal-open from shifting layout if used elsewhere */
body.sz-search-page.modal-open {
  padding-right: 0 !important;
  overflow: auto !important;
}
