.sba-form-wrap {
  --sba-accent: #f2b315;
  --sba-secondary: #1f3b63;
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, .06);
  color: #21303f;
}
.sba-form-head {
  display: grid;
  grid-template-columns: 1.5fr minmax(220px, 340px);
  gap: 20px;
  margin-bottom: 24px;
}
.sba-title { margin: 0 0 8px; font-size: 32px; line-height: 1.15; }
.sba-intro { margin: 0; color: #5a6674; line-height: 1.6; }
.sba-progress-card {
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
  border: 1px solid #eceef2;
  border-radius: 18px;
  padding: 18px;
  align-self: start;
}
.sba-progress-text, .sba-step-count { font-size: 14px; color: #465362; }
.sba-progress-percent { font-weight: 700; color: var(--sba-secondary); }
.sba-progress-bar { height: 10px; background: #edf0f4; border-radius: 999px; margin: 12px 0; overflow: hidden; }
.sba-progress-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sba-accent), var(--sba-secondary)); transition: width .24s ease; }
.sba-step-nav {
  list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px;
}
.sba-step-nav-item {
  background: #f7f8fa; color: #5f6c79; border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 600;
}
.sba-step-nav-item.is-active { background: color-mix(in srgb, var(--sba-accent) 18%, #fff); color: #7a5a00; }
.sba-step { display: none; }
.sba-step.is-active { display: block; }
.sba-step-header {
  display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; margin-bottom: 20px;
}
.sba-step-header h3 { margin: 0 0 6px; font-size: 24px; }
.sba-step-header p { margin: 0; color: #5f6b79; line-height: 1.55; }
.sba-step-index {
  width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, var(--sba-accent) 20%, #fff); color: #7a5a00; font-weight: 700; display:flex; align-items:center; justify-content:center; font-size: 18px;
}
.sba-fields-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 16px;
}
.sba-field-full { grid-column: 1 / -1; }
.sba-field label { display: block; font-weight: 600; margin-bottom: 8px; }
.sba-field input,
.sba-field select,
.sba-field textarea {
  width: 100%; border: 1px solid #dbe0e6; border-radius: 14px; padding: 13px 14px; font-size: 15px; box-sizing: border-box; background: #fff;
}
.sba-field textarea { min-height: 120px; resize: vertical; }
.sba-field input:focus,
.sba-field select:focus,
.sba-field textarea:focus {
  outline: none; border-color: var(--sba-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sba-accent) 16%, transparent);
}
.sba-choice-group { display: flex; gap: 10px; flex-wrap: wrap; }
.sba-choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}
.sba-choice input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}
.sba-choice-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid #dbe0e6;
  border-radius: 999px;
  padding: 10px 16px;
  background: #fff;
  color: #344255;
  line-height: 1.15;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.sba-choice input:focus-visible + .sba-choice-label {
  outline: none;
  border-color: var(--sba-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--sba-accent) 18%, transparent);
}
.sba-choice input:checked + .sba-choice-label {
  border-color: var(--sba-accent);
  background: var(--sba-accent);
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--sba-accent) 30%, transparent);
}
.sba-choice:hover .sba-choice-label { transform: translateY(-1px); }
.sba-choice-group.is-yesno {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid #dfe4ea;
  border-radius: 999px;
  background: #f2f5f8;
  padding: 4px;
  width: min(100%, 260px);
}
.sba-choice-group.is-yesno .sba-choice { display: block; margin: 0; }
.sba-choice-group.is-yesno .sba-choice-label {
  width: 100%;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: #5b6674;
  box-shadow: none;
  padding: 10px 14px;
  box-sizing: border-box;
}
.sba-choice-group.is-yesno .sba-choice input:checked + .sba-choice-label {
  background: var(--sba-accent);
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--sba-accent) 28%, transparent);
}
.sba-choice-group.is-yesno .sba-choice-no input:checked + .sba-choice-label {
  background: #b42318;
  color: #fff;
  box-shadow: 0 8px 18px rgba(180, 35, 24, .22);
}
.sba-help { margin: 8px 0 0; color: #6a7683; font-size: 13px; line-height: 1.45; }
.sba-required { color: #a84d00; }
.sba-field.is-hidden { display: none; }
.sba-form-foot { margin-top: 28px; }
.sba-privacy { margin: 0 0 12px; color: #60707f; font-size: 14px; line-height: 1.5; }
.sba-actions { display:flex; gap:12px; justify-content:flex-end; align-items:center; margin-top:18px; }
.sba-button {
  border: none; background: var(--sba-accent); color: #fff; border-radius: 999px; padding: 13px 22px; font-weight: 700; cursor: pointer; transition: transform .2s ease, opacity .2s ease;
}
.sba-button:hover { transform: translateY(-1px); }
.sba-button[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.sba-button-secondary { background: #eef2f6; color: #243444; }
.sba-message {
  margin: 0 0 18px;
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 650;
  line-height: 1.45;
  border: 1px solid transparent;
}
.sba-message.is-success { background: #ecfdf3; color: #0f6a3e; border-color: #abefc6; }
.sba-message.is-error { background: #fff4f2; color: #b42318; border-color: #fecdca; }
.sba-field.has-error input,
.sba-field.has-error select,
.sba-field.has-error textarea,
.sba-field.has-error .sba-choice-group { border-color: #d92d20; box-shadow: 0 0 0 4px rgba(217,45,32,.08); }
.sba-error-text { margin: 8px 0 0; font-size: 13px; color: #b42318; line-height: 1.45; }
.sba-recaptcha-wrap { margin-top: 12px; }
@supports not (color: color-mix(in srgb, #000 20%, #fff)) {
  .sba-step-nav-item.is-active { background: rgba(242,179,21,.15); }
  .sba-step-index { background: rgba(242,179,21,.18); }
  .sba-field input:focus,
  .sba-field select:focus,
  .sba-field textarea:focus { box-shadow: 0 0 0 4px rgba(242,179,21,.12); }
  .sba-choice input:focus-visible + .sba-choice-label { box-shadow: 0 0 0 4px rgba(242,179,21,.14); }
  .sba-choice input:checked + .sba-choice-label,
  .sba-choice-group.is-yesno .sba-choice input:checked + .sba-choice-label { box-shadow: 0 8px 18px rgba(242,179,21,.22); }
}
@media (max-width: 900px) {
  .sba-form-head { grid-template-columns: 1fr; }
  .sba-fields-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sba-form-wrap { padding: 18px; border-radius: 18px; }
  .sba-title { font-size: 28px; }
  .sba-step-header { grid-template-columns: 1fr; }
  .sba-actions { flex-direction: column; align-items: stretch; }
  .sba-button { width: 100%; }
  .sba-choice-group.is-yesno { width: 100%; }
}

.sba-form.is-submitted .sba-step-nav,
.sba-form.is-submitted .sba-steps,
.sba-form.is-submitted .sba-form-foot {
  display: none;
}
.sba-form.is-submitted .sba-message.is-success {
  margin: 8px 0 0;
}
.sba-message.is-success {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ecfdf3 0%, #ffffff 100%);
  color: #0f5132;
  border-color: #abefc6;
  box-shadow: 0 14px 34px rgba(15, 106, 62, .12);
  font-size: 16px;
}
.sba-message-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: #12b76a;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
}
.sba-message-content {
  display: grid;
  gap: 5px;
}
.sba-message-content strong {
  display: block;
  margin: 0;
  color: #0b3b25;
  font-size: 22px;
  line-height: 1.2;
}
.sba-message-content span {
  display: block;
  color: #275842;
  font-weight: 500;
  line-height: 1.55;
}
@media (max-width: 640px) {
  .sba-message.is-success {
    padding: 18px;
    border-radius: 18px;
  }
  .sba-message-content strong {
    font-size: 19px;
  }
}

.sba-message-spam-note {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
}
