:root {
  --primary: #2563eb;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --bg: #f3f6fb;
  --border: #dde5f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text-main);
}

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

.form-shell__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.form-shell__head h1 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 800;
}

.form-shell__head p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.form-control,
.form-select {
  min-height: 44px;
  border-color: #d9e2ee;
  border-radius: 12px;
  padding-inline: 12px;
}

.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: 120px;
  resize: vertical;
}

.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: 767.98px) {
  .form-shell {
    padding: 16px;
    border-radius: 14px;
  }

  .form-shell__head {
    flex-direction: column;
    align-items: stretch;
  }
}
