/*
 * Lotiva Forms — minimal base styles.
 *
 * All selectors are scoped under .lf-form — override freely in your theme.
 * No !important, no specificity wars. BEM naming convention.
 *
 * To style per-form: use #lf-form-contact, #lf-form-quote, etc.
 */

/* ── Container ───────────────────────────────────────────────────────── */
.lf-form {
  /* intentionally bare — your theme controls layout */
}

/* ── Fields ──────────────────────────────────────────────────────────── */
.lf-form__field {
  margin-bottom: 1.25rem;
}

.lf-form__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.lf-form__required {
  color: #e53e3e;
  margin-left: 2px;
  font-weight: 700;
}

/* ── Inputs ──────────────────────────────────────────────────────────── */
.lf-form__input {
  display: block;
  width: 100%;
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  line-height: 1.5;
  color: inherit;
  background: #fff;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.lf-form__input:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.25);
}

.lf-form__input--textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.lf-form__input--select {
  padding-right: 2.5rem;
  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 fill='%23718096' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  cursor: pointer;
}

/* ── Radio & checkbox ────────────────────────────────────────────────── */
.lf-form__radios {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lf-form__radio,
.lf-form__check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
}

.lf-form__radio input,
.lf-form__check input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* ── Validation errors ───────────────────────────────────────────────── */
.lf-form__error {
  color: #e53e3e;
  font-size: 0.875rem;
  margin-top: 0.3rem;
  min-height: 1.2em;
}

.lf-form__field:has(.lf-form__error:not(:empty)) .lf-form__input {
  border-color: #e53e3e;
}

/* ── Actions ─────────────────────────────────────────────────────────── */
.lf-form__actions {
  margin-top: 1.5rem;
}

.lf-form__submit {
  display: inline-block;
  padding: 0.65rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  background: #2b6cb0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.lf-form__submit:hover {
  background: #2c5282;
}

.lf-form__submit:active {
  transform: translateY(1px);
}

.lf-form__submit:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

/* ── Status messages ─────────────────────────────────────────────────── */
.lf-form__status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 5px;
  font-weight: 500;
  line-height: 1.4;
}

.lf-form__status:empty {
  display: none;
}

.lf-form__status--success {
  background: #f0fff4;
  color: #276749;
  border: 1px solid #9ae6b4;
}

.lf-form__status--error {
  background: #fff5f5;
  color: #9b2c2c;
  border: 1px solid #feb2b2;
}

/* ── Honeypot — never show this ──────────────────────────────────────── */
.lf-form__hp {
  display: none !important;
  visibility: hidden !important;
}
