.form-page {
  padding-top: 26px;
  padding-bottom: 16px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.page-head__eyebrow {
  margin: 0 0 6px;
  color: #2563eb;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.page-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-head__lead {
  margin: 8px 0 0;
  color: #64748b;
  max-width: 68ch;
}

.page-head__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.form-shell {
  background: #fff;
  border: 1px solid #dde5f0;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  padding: 24px;
}

.form-block {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e7edf5;
}

.form-block--last {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.form-block h3 {
  margin: 0 0 14px;
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-control,
.form-select {
  min-height: 46px;
  border-color: #d9e2ee;
  border-radius: 12px;
  padding-inline: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

textarea.form-control {
  min-height: 126px;
  resize: vertical;
}

.form-check-label {
  color: #475569;
}

.form-actions-mobile {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.admin-footer {
  padding: 14px 22px 20px;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.84rem;
  background: #f8fbff;
}

.admin-footer p {
  margin: 0;
}

.was-validated .form-control:valid,
.was-validated .form-select:valid,
.form-control.is-valid,
.form-select.is-valid {
  border-color: #16a34a;
  background-image: none;
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid,
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc2626;
  background-image: none;
}

@media (max-width: 991.98px) {
  .form-page {
    padding-top: 18px;
  }

  .page-head {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 14px;
  }

  .page-head__actions {
    display: none;
  }

  .form-shell {
    padding: 18px;
    border-radius: 14px;
  }

  .admin-footer {
    padding: 12px 14px 16px;
  }
}
