/* ═══════════════════════════════════════
   FORMS — Premium Form Elements
   ═══════════════════════════════════════ */

.form-control {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  outline: none;
  font-size: 13px;
  font-weight: 400;
  transition: all var(--duration-fast) var(--ease-out);
}

.form-control::placeholder {
  color: var(--muted);
}

.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.form-control:disabled {
  background: var(--bg-alt);
  color: var(--muted);
  cursor: not-allowed;
}

/* Textarea */
textarea.form-control {
  height: auto;
  min-height: 100px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.6;
}

/* Select */
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Label */
.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.form-label .required {
  color: var(--danger);
  margin-left: 2px;
}

/* Helper text */
.form-helper {
  margin-top: 5px;
  font-size: 10px;
  color: var(--muted);
}

.form-error {
  margin-top: 5px;
  font-size: 10px;
  color: var(--danger);
  font-weight: 500;
}

/* Form group */
.form-group {
  margin-bottom: 18px;
}

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink);
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  cursor: pointer;
}

/* Search specialization */
.form-search {
  position: relative;
}

.form-search .form-control {
  padding-left: 40px;
}

.form-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}