/* VENDOR-COPY — do not edit here.
 * SOURCE: /Volumes/FileSync/AI/Claude/Projects/Site-Kit/widgets/form/form.css
 * COPIED: 2026-09-03.
 *
 * ONE ADAPTATION, and it is a subtraction: the widget's third-level LITERAL
 * HUE fallbacks (var(--sk-x, var(--x, LITERAL))) are removed. FHT defines every
 * one of --surface / --surface2 / --ink / --muted / --line / --line-soft /
 * --accent / --crit on :root for all four theme paths, so the fallback could
 * never fire — and the house rule is that no literal colour ships inside this
 * app, where it would sit outside the token audit and follow no theme.
 * Geometry, rhythm and every selector are the widget's, untouched.
 * Fix bugs in Site-Kit and re-copy; never read across projects at runtime.
 */
/* ============================================================ Site-Kit form
 * The lean look. One field primitive, one vertical rhythm, equal columns.
 *
 * SOURCE: extracted 2026-08-31 from the two implementations the owner approved —
 * Fernhollow Acres' New Task slide panel (Seven-Springs-Resort/Fernhollow-Acres/
 * App/web/css/style.css) and the the dashboard's feedback modal
 * (the agency Support/SOAR-Dashboard/AppsScript/Styles.html ~1623, ~1879).
 *
 * WHY IT EXISTS. the owner, 2026-08-31: "SOme fields are biger than others, Some
 * are durther down the page than they should be. It is confusing." That is one
 * bug seen twice. FHT's admin.html carried 217 inline style= attributes — 19 x
 * flex:1, 4 x width:110px, 3 x width:90px, 3 x max-width:150px and a spread of
 * flex:2;min-width:220px/200px/180px — while .rowform, the container they all
 * sat in, had no CSS rule at all. Every form was hand-sized, and flex-wrap with
 * mismatched min-widths pushed fields onto new lines unpredictably.
 *
 * THE TOKEN CONTRACT. Every value below comes from a custom property with a
 * fallback, so a host that already defines its palette gets its own brand for
 * free and NO literal hue is shipped here. One geometry, many brands.
 *
 *   --sk-surface      the field's own ground        (falls back to --surface)
 *   --sk-surface-2    a recessed ground             (--surface2)
 *   --sk-ink          field text                    (--ink)
 *   --sk-muted        labels and hints              (--muted)
 *   --sk-line         field borders                 (--line)
 *   --sk-line-soft    dividers                      (--line-soft)
 *   --sk-accent       focus ring, primary action    (--accent)
 *   --sk-danger       the required star, errors     (--crit)
 *   --sk-radius       panel corners                 (--radius)
 *   --sk-radius-sm    field corners                 (--radius-sm)
 *   --sk-ease         transitions                   (--ease)
 *   --sk-shadow       panel shadow                  (--shadow)
 *
 * A host needs to define nothing if it already uses the estate's usual names.
 * ------------------------------------------------------------------------- */

.sk-form {
  --_surface:   var(--sk-surface,   var(--surface));
  --_surface2:  var(--sk-surface-2, var(--surface2));
  --_ink:       var(--sk-ink,       var(--ink));
  --_muted:     var(--sk-muted,     var(--muted));
  --_line:      var(--sk-line,      var(--line));
  --_lineSoft:  var(--sk-line-soft, var(--line-soft));
  --_accent:    var(--sk-accent,    var(--accent));
  --_danger:    var(--sk-danger,    var(--crit));
  --_radius:    var(--sk-radius,    var(--radius,    8px));
  --_radiusSm:  var(--sk-radius-sm, var(--radius-sm, 5px));
  --_ease:      var(--sk-ease,      var(--ease,      cubic-bezier(.4,0,.2,1)));

  /* THE ONE RHYTHM. Gap on the container, never margin on the child — a
     margin-based rhythm collapses against a sibling's and doubles against a
     wrapper's, which is precisely "some are further down the page than they
     should be". Change this number and every form in the app moves together. */
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* ---------------------------------------------------------------- the field */
.sk-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }

.sk-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--_muted);
}
.sk-req  { color: var(--_danger); font-weight: 700; margin-left: .25em; }
.sk-hint { font-size: .78rem; color: var(--_muted); }

/* The error sits WITH its field, so no project ever needs alert() to report a
   validation failure — which is what made the old flow feel like a 1990s form. */
.sk-error { font-size: .78rem; color: var(--_danger); font-weight: 600; }
.sk-field[data-invalid] > .sk-control,
.sk-field[data-invalid] input,
.sk-field[data-invalid] select,
.sk-field[data-invalid] textarea { border-color: var(--_danger); }

/* ------------------------------------------------------------- the controls */
/* ONE rule for every control. width:100% is the whole fix for "some fields are
   bigger than others" — a field fills its grid cell rather than guessing. */
.sk-form input[type="text"],
.sk-form input[type="email"],
.sk-form input[type="tel"],
.sk-form input[type="url"],
.sk-form input[type="date"],
.sk-form input[type="time"],
.sk-form input[type="number"],
.sk-form input[type="search"],
.sk-form input[type="password"],
.sk-form select,
.sk-form textarea,
.sk-form .sk-control {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  font: inherit;
  font-size: .92rem;
  color: var(--_ink);
  background: var(--_surface2);
  border: 1px solid var(--_line);
  border-radius: var(--_radiusSm);
  padding: 11px 13px;
  /* The date picker's calendar button, the number spinners and the caret are
     drawn by the browser from the element's colour scheme, not from `color`.
     On a dark field the default light scheme paints them near-black on
     near-black and they vanish — a real bug reported on SOAR's All Work
     screen. `inherit` hands the control whatever the host theme resolved. */
  color-scheme: inherit;
  transition: border-color .16s var(--_ease), box-shadow .16s var(--_ease);
}
.sk-form textarea { min-height: 92px; resize: vertical; }

.sk-form input:focus-visible,
.sk-form select:focus-visible,
.sk-form textarea:focus-visible,
.sk-form .sk-control:focus-visible {
  outline: none;
  border-color: var(--_accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--_accent) 22%, transparent);
}
.sk-form :disabled { opacity: .55; cursor: not-allowed; }

/* A checkbox or radio is the one control that must NOT be full width. */
.sk-form input[type="checkbox"],
.sk-form input[type="radio"] { width: auto; min-width: 0; padding: 0; }
.sk-check { display: flex; align-items: center; gap: 9px; font-size: .92rem; min-height: 44px; }

/* --------------------------------------------------------------- the layout */
/* minmax(0,1fr) is load-bearing: it makes the columns EQUAL BY CONSTRUCTION.
   Plain 1fr lets a long option in a <select> blow its own column wider than
   its neighbour, which is the bug this whole file exists to remove. */
.sk-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}
.sk-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sk-span  { grid-column: 1 / -1; }

/* A group of exclusive choices, which reads better than a two-option select. */
.sk-toggle { display: flex; gap: 0; border: 1px solid var(--_line);
             border-radius: var(--_radiusSm); overflow: hidden; }
.sk-toggle > button {
  flex: 1 1 0; min-width: 0; min-height: 44px; padding: 9px 12px;
  font: inherit; font-size: .88rem; color: var(--_muted);
  background: var(--_surface); border: 0; cursor: pointer;
  border-right: 1px solid var(--_line);
  transition: background .14s var(--_ease), color .14s var(--_ease);
}
.sk-toggle > button:last-child { border-right: 0; }
.sk-toggle > button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--_accent) 14%, var(--_surface));
  color: var(--_ink); font-weight: 600;
}

/* A run of actions. Primary last, because that is where a thumb ends up. */
.sk-actions { display: flex; gap: 10px; justify-content: flex-end;
              flex-wrap: wrap; align-items: center; }
.sk-actions .sk-spacer { margin-right: auto; }

/* ---------------------------------------------------------------- the phone */
@media (max-width: 680px) {
  /* One column. A two-up grid at 390px gives two fields too narrow to read,
     which is the other half of "it is confusing". */
  .sk-row, .sk-row-3 { grid-template-columns: minmax(0, 1fr); }
  /* 16px stops iOS zooming the viewport the moment a field takes focus.
     THE SELECTORS MUST MATCH THE BASE RULE'S SPECIFICITY. A shorter
     `.sk-form input` loses to `.sk-form input[type="text"]` above — class +
     type beats class + type + attribute — so the override silently did
     nothing and a measured control came back at 14.72px. Caught by the
     widget's own proof page, 2026-08-31. */
  .sk-form input[type="text"],
  .sk-form input[type="email"],
  .sk-form input[type="tel"],
  .sk-form input[type="url"],
  .sk-form input[type="date"],
  .sk-form input[type="time"],
  .sk-form input[type="number"],
  .sk-form input[type="search"],
  .sk-form input[type="password"],
  .sk-form select,
  .sk-form textarea,
  .sk-form .sk-control {
    font-size: 16px; padding: 12px 13px;
  }
  .sk-actions { flex-direction: column-reverse; align-items: stretch; }
  .sk-actions > * { width: 100%; min-height: 46px; }
  .sk-actions .sk-spacer { margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sk-form *, .sk-toggle > button { transition: none !important; }
}
