.tnb-sf-shell {
  width: 100%;
  margin: 25px auto 0;
}

.tnb-sf-shell .tnb-sf-wrap {
  width: 100%;
  max-width: 100%;
}

.tnb-sf-wrap {
  --tnb-sf-bg-1: #0b1220;
  --tnb-sf-bg-2: #111827;
  --tnb-sf-bg-3: #1f2a44;
  --tnb-sf-text: #f8fafc;
  --tnb-sf-subtext: #cbd5e1;
  --tnb-sf-accent: #f57c0b;
  --tnb-sf-accent-hover: #f19020;
  --tnb-sf-border: rgba(148, 163, 184, 0.32);
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--tnb-sf-border);
  border-radius: 18px;
  padding: 10px 25px 0;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.15), transparent 35%),
    linear-gradient(138deg, var(--tnb-sf-bg-1), var(--tnb-sf-bg-2) 45%, var(--tnb-sf-bg-3));
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.3);
  color: var(--tnb-sf-text);
}

.tnb-sf-title {
  margin: 0 0 10px;
  color: var(--tnb-sf-text);
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  font-weight: 800;
  text-transform: uppercase;
}

.tnb-sf-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(190px, 210px);
  gap: 14px;
}

.tnb-sf-field {
  min-width: 0;
}

.tnb-sf-label {
  display: none;
}

.tnb-sf-select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  font-size: 0.96rem;
  font-weight: 500;
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.08);
}

.tnb-sf-select:focus {
  outline: none;
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.26);
}

.tnb-sf-select:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.tnb-sf-shell .select2-container {
  width: 100% !important;
}

.tnb-sf-shell .select2-container--default .select2-selection--single {
  min-height: 48px;
  height: 48px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.08);
}

.tnb-sf-shell .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 46px;
  padding: 0 38px 0 14px;
  color: #0f172a;
  font-size: 0.96rem;
  font-weight: 500;
}

.tnb-sf-shell .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #64748b;
}

.tnb-sf-shell .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px;
  right: 8px;
}

.tnb-sf-shell .select2-container--default.select2-container--focus .select2-selection--single,
.tnb-sf-shell .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.26);
}

.tnb-sf-shell .select2-container--default.select2-container--disabled .select2-selection--single {
  opacity: 0.7;
  cursor: not-allowed;
}

.tnb-sf-select2-dropdown {
  border-color: rgba(148, 163, 184, 0.38);
  border-radius: 10px;
  overflow: hidden;
}

.tnb-sf-shell .select2-container--default .select2-search--dropdown .select2-search__field {
  border-color: rgba(148, 163, 184, 0.5);
  border-radius: 7px;
}

.tnb-sf-shell
  .select2-container--default
  .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #f59e0b;
  color: #fff;
}

.tnb-sf-field-button {
  min-width: 190px;
  display: flex;
  align-items: center;
}

.tnb-sf-label-placeholder {
  display: none;
}

.tnb-sf-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 11px;
  padding: 0 18px;
  background: linear-gradient(120deg, var(--tnb-sf-accent), #f97316);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.28);
}

.tnb-sf-button:hover {
  background: linear-gradient(120deg, var(--tnb-sf-accent-hover), #ea580c);
  transform: translateY(-1px);
}

.tnb-sf-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.35), 0 10px 22px rgba(245, 158, 11, 0.28);
}

.tnb-sf-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.tnb-sf-message {
  margin: 12px 0 0;
  min-height: 22px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.tnb-sf-message.is-error {
  color: #fecaca;
}

.tnb-sf-message.is-success {
  color: #bbf7d0;
}

.tnb-sf-message.is-info {
  color: #bfdbfe;
}

.tnb-sf-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(1px);
  z-index: 2;
}

.tnb-sf-wrap.is-loading .tnb-sf-overlay {
  display: flex;
}

.tnb-sf-wrap.is-loading .tnb-sf-form,
.tnb-sf-wrap.is-loading .tnb-sf-title,
.tnb-sf-wrap.is-loading .tnb-sf-message {
  opacity: 0.58;
}

.tnb-sf-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.26);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tnb-sf-spin 0.75s linear infinite;
}

.tnb-sf-wrap-error {
  border-color: rgba(248, 113, 113, 0.55);
}

@keyframes tnb-sf-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {
  .tnb-sf-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .tnb-sf-field-button {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .tnb-sf-label-placeholder {
    display: none;
  }
}

@media (max-width: 820px) {
  .tnb-sf-field {
    display: block !important;
  }
  .tnb-sf-wrap {
    padding: 10px 20px 0;
    border-radius: 15px;
  }

  .tnb-sf-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tnb-sf-field-button {
    min-width: 0;
  }

  .tnb-sf-label-placeholder {
    display: none;
  }

  .tnb-sf-button {
    width: 100%;
  }
}

