.ff-public-body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(1, 152, 18, 0.10), rgba(36, 97, 196, 0.12)),
    #f6f8fb;
}

.ff-public-shell {
  width: 100%;
  min-height: 100vh;
  padding: 32px 16px;
}

.ff-public-panel {
  width: min(1120px, 100%);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.08);
  padding: clamp(20px, 4vw, 44px);
}

.ff-brand-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  color: #12602b;
  font-weight: 700;
}

.ff-brand-line img {
  height: 36px;
  width: auto;
}

.ff-heading {
  width: 100%;
}

.ff-heading h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: 0;
  color: #152536;
}

.ff-preamble {
  width: 100%;
  color: #3f4a57;
  line-height: 1.62;
  margin-bottom: 28px;
}

.ff-preamble a {
  color: #0b7a2a;
  font-weight: 600;
}

.ff-form {
  display: grid;
  gap: 22px;
}

.ff-step {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: clamp(16px, 3vw, 28px);
  background: #fff;
}

.ff-step-title {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.ff-step-title > span {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: #019812;
  font-weight: 700;
}

.ff-step-title h2 {
  font-size: 1.2rem;
  margin: 0;
  letter-spacing: 0;
}

.ff-step-title p,
.ff-lots-panel p {
  margin: 4px 0 0;
  color: #67717e;
}

.ff-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.ff-project-card {
  min-height: 136px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  text-align: left;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ff-project-card:hover,
.ff-project-card.selected {
  border-color: #019812;
  box-shadow: 0 10px 28px rgba(1, 152, 18, 0.14);
  transform: translateY(-1px);
}

.ff-project-card i {
  color: #019812;
  margin-bottom: 10px;
}

.ff-project-card strong,
.ff-project-card small {
  display: block;
}

.ff-project-card small {
  color: #66727f;
  margin-top: 8px;
}

.ff-lots-panel {
  margin-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 18px;
}

.ff-lots-panel h3 {
  font-size: 1rem;
  margin: 0;
}

.ff-lot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.ff-lot-item {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ff-disabled {
  opacity: 0.55;
}

.ff-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ff-choice-row .btn {
  border-width: 2px;
  font-weight: 600;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.ff-choice-row .btn-check:checked + .btn {
  color: #fff;
  background-color: #019812;
  border-color: #017c10;
  box-shadow: 0 10px 24px rgba(1, 152, 18, 0.28);
  transform: translateY(-1px);
}

.ff-choice-row .btn-check:checked + .btn i {
  color: #fff;
}

.ff-captcha-row {
  display: grid;
  grid-template-columns: auto minmax(160px, 240px) auto;
  gap: 12px;
  align-items: center;
}

.ff-submit-row {
  display: flex;
  justify-content: flex-end;
}

.ff-toast-host {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1080;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

.ff-form-toast {
  width: 100%;
  max-width: 420px;
  color: #172435;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-left: 4px solid #019812;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
}

.ff-form-toast + .ff-form-toast {
  margin-top: 10px;
}

.ff-form-toast .toast-header {
  color: #172435;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ff-form-toast .toast-body {
  line-height: 1.45;
}

.ff-form-toast-success {
  border-left-color: #019812;
}

.ff-form-toast-warning {
  border-left-color: #f4a100;
}

.ff-form-toast-danger {
  border-left-color: #dc3545;
}

.ff-form-toast-info {
  border-left-color: #0d6efd;
}

.ff-form-toast-success .ff-toast-icon {
  color: #019812;
}

.ff-form-toast-warning .ff-toast-icon {
  color: #b87300;
}

.ff-form-toast-danger .ff-toast-icon {
  color: #dc3545;
}

.ff-form-toast-info .ff-toast-icon {
  color: #0d6efd;
}

.ff-admin-body {
  min-width: 320px;
  background: #f6f8fb;
}

.ff-admin-window {
  width: min(1480px, calc(100vw - 24px));
  margin: 7rem auto 2rem;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 8px;
  padding: 18px;
}

.ff-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.ff-stat {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.ff-stat strong {
  display: block;
  font-size: 1.8rem;
  color: #019812;
}

.ff-wysiwyg-box {
  min-height: 260px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

@media (max-width: 700px) {
  .ff-public-shell {
    padding: 12px;
  }

  .ff-captcha-row {
    grid-template-columns: 1fr;
  }

  .ff-submit-row {
    justify-content: stretch;
  }

  .ff-submit-row .btn {
    width: 100%;
  }
}
