/* ══ Form Components ══════════════════════════════════════════ */

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.form-label.required::after {
  content: ' *';
  color: #e94560;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #dde2ea;
  border-radius: 8px;
  font-size: 14px;
  color: #1a1a2e;
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  font-family: inherit;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #0f3460;
  box-shadow: 0 0 0 3px rgba(15,52,96,.08);
}
.form-input::placeholder { color: #94a3b8; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.form-textarea { resize: vertical; min-height: 80px; }

.form-hint {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

/* Toggle switch */
.form-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.form-switch input { display: none; }
.switch-track {
  width: 40px; height: 22px;
  background: #dde2ea;
  border-radius: 11px;
  position: relative;
  transition: background .2s;
  flex-shrink: 0;
}
.switch-track::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  top: 3px; left: 3px;
  transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.form-switch input:checked + .switch-track {
  background: #e94560;
}
.form-switch input:checked + .switch-track::after {
  transform: translateX(18px);
}

/* Inline form row */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.form-group { margin-bottom: 0; }
.form-group + .form-group { margin-top: 16px; }
