/* =========================================================================
   Luke Trares — Fluent Forms skin
   Loaded only when Fluent Forms is active (see functions.php).
   Restyles the default form to match the theme: dark fields, mono labels,
   paper submit button, hairline borders.
   ========================================================================= */

.fluentform {
  --ff-ink: #18181b;
  --ff-paper: #e8e6e3;
  --ff-dim: rgba(232, 230, 227, 0.62);
  --ff-faint: rgba(232, 230, 227, 0.40);
  --ff-line: rgba(232, 230, 227, 0.26);
  --ff-surface: #1e1e22;
  --ff-mono: var(--wp--custom--mono, "IBM Plex Mono", monospace);
  --ff-sans: var(--wp--custom--sans, "IBM Plex Sans", sans-serif);
  font-family: var(--ff-sans);
  color: var(--ff-paper);
}

/* Labels */
.fluentform .ff-el-input--label label,
.fluentform .ff-el-input--label,
.fluentform .ff_section_heading label {
  font-family: var(--ff-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--ff-faint);
  font-weight: 400;
}
.fluentform .ff-el-is-required.asterisk-right label:after,
.fluentform .ff-el-is-required.asterisk-left label:before { color: var(--ff-paper); }

/* Text inputs, textareas, selects */
.fluentform .ff-el-form-control,
.fluentform input[type="text"],
.fluentform input[type="email"],
.fluentform input[type="url"],
.fluentform input[type="tel"],
.fluentform input[type="number"],
.fluentform input[type="password"],
.fluentform input[type="search"],
.fluentform input[type="date"],
.fluentform textarea,
.fluentform select {
  background: transparent;
  color: var(--ff-paper);
  border: none;
  border-bottom: 1px solid var(--ff-line);
  border-radius: 0;
  padding: 0.55rem 0;
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 1rem;
  box-shadow: none;
  transition: border-color .2s ease;
}
.fluentform .ff-el-form-control:focus,
.fluentform textarea:focus,
.fluentform select:focus {
  outline: none;
  border-bottom-color: var(--ff-paper);
  box-shadow: none;
}
.fluentform ::placeholder { color: var(--ff-faint); opacity: 1; }
.fluentform select option { background: var(--ff-surface); color: var(--ff-paper); }
.fluentform textarea { border: 1px solid var(--ff-line); padding: 0.75rem; }

/* Checkboxes / radios */
.fluentform .ff-el-form-check label,
.fluentform .ff-el-form-check-label { font-family: var(--ff-sans); text-transform: none; letter-spacing: 0; color: var(--ff-dim); font-size: 0.95rem; }
.fluentform input[type="checkbox"],
.fluentform input[type="radio"] { accent-color: var(--ff-paper); }

/* Section headings / titles inside the form */
.fluentform .ff_section_heading h1,
.fluentform .ff_section_heading h2,
.fluentform .ff_section_heading h3 {
  font-family: var(--ff-mono); text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ff-paper); font-weight: 400;
}
.fluentform .ff_section_heading p { color: var(--ff-dim); }

/* Submit button */
.fluentform .ff-btn-submit,
.fluentform button[type="submit"],
.fluentform .ff-btn.ff-btn-submit {
  background: var(--ff-paper);
  color: var(--ff-ink);
  border: 1px solid var(--ff-paper);
  border-radius: 2px;
  font-family: var(--ff-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.fluentform .ff-btn-submit:hover,
.fluentform button[type="submit"]:hover {
  background: transparent;
  color: var(--ff-paper);
}

/* Validation + messages */
.fluentform .error,
.fluentform .text-danger,
.fluentform .ff-el-is-error .text-danger { color: #e0a0a0; font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; }
.fluentform .ff-el-is-error .ff-el-form-control { border-bottom-color: #b46b6b; }
.ff-message-success,
.fluentform_success {
  border: 1px solid var(--ff-line);
  background: linear-gradient(180deg, var(--ff-surface), transparent 140%);
  color: var(--ff-paper);
  padding: 1.25rem 1.5rem;
  font-family: var(--ff-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* Steps / progress bar tint */
.fluentform .ff-step-header .ff-el-progress-bar { background: var(--ff-paper); }
