/* GMS Apply and Refer forms. Everything is scoped under .gmsf so it cannot
   disturb the rest of the site. Colours can be re-pointed to the site's own
   variables once this is merged with assets/css. */
:root {
  --gmsf-ink: #0a0a0a;
  --gmsf-muted: #5c5c5c;
  --gmsf-line: #cfcfcf;
  --gmsf-bg: #ffffff;
  --gmsf-soft: #f5f4f1;
  --gmsf-accent: #0a0a0a;
  --gmsf-bad: #b3261e;
  --gmsf-good: #1b6e3c;
}
.gmsf {
  color: var(--gmsf-ink);
  background: var(--gmsf-bg);
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  box-sizing: border-box;
}
.gmsf *, .gmsf *::before, .gmsf *::after { box-sizing: border-box; }
.gmsf h1, .gmsf h2 { margin: 0 0 8px; line-height: 1.2; }
.gmsf h1 { font-size: 1.75rem; }
.gmsf h2 { font-size: 1.4rem; }
.gmsf-intro { margin: 0 0 20px; color: var(--gmsf-muted); }

.gmsf-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .gmsf-grid { grid-template-columns: 1fr 1fr; }
  .gmsf-wide { grid-column: 1 / -1; }
}

.gmsf-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.gmsf-field > label, .gmsf-field > legend {
  display: block; font-weight: 600; margin-bottom: 6px; padding: 0;
}
.gmsf-opt { font-weight: 400; color: var(--gmsf-muted); }
.gmsf-hint { margin: 4px 0 0; font-size: .875rem; color: var(--gmsf-muted); }

.gmsf input[type="text"], .gmsf input[type="tel"], .gmsf input[type="email"],
.gmsf input[type="number"], .gmsf select, .gmsf input[type="file"], .gmsf input[type="date"] {
  width: 100%; min-height: 46px; padding: 10px 12px;
  font: inherit; color: inherit; background: #fff;
  border: 1px solid var(--gmsf-line); border-radius: 6px;
}
.gmsf input:focus-visible, .gmsf select:focus-visible, .gmsf button:focus-visible {
  outline: 3px solid #1a73e8; outline-offset: 2px;
}

.gmsf-ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.gmsf-field > label.gmsf-tick, .gmsf-tick { font-weight: 400; margin: 0; }
.gmsf-tick { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; min-height: 32px; }
.gmsf-tick input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--gmsf-accent); }

.gmsf-invalid input:not([type="checkbox"]), .gmsf-invalid select { border-color: var(--gmsf-bad); }
.gmsf-error { margin: 4px 0 0; font-size: .875rem; color: var(--gmsf-bad); }
.gmsf-error:empty { display: none; }
.gmsf-form-error {
  margin: 16px 0 0; padding: 12px 14px; border-radius: 6px;
  color: var(--gmsf-bad); background: #fdecea; border: 1px solid #f3b8b3;
}

.gmsf-submit {
  margin-top: 20px; min-height: 48px; padding: 12px 28px;
  font: inherit; font-weight: 600; cursor: pointer;
  color: #000; background: var(--yellow, #ffd600); font-weight: 800;
  border: 0; border-radius: 4px;
}
.gmsf-submit:disabled { opacity: .6; cursor: progress; }

/* Hidden spam trap: off-screen, not display:none, so bots still fill it. */
.gmsf-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.gmsf-result {
  padding: 22px 20px; border-radius: 8px;
  background: var(--gmsf-soft); border: 1px solid var(--gmsf-line);
}
.gmsf-result:focus { outline: none; }
.gmsf-thanks { margin: 0; font-size: 1.125rem; }
.gmsf-number { white-space: nowrap; font-size: 1.25rem; letter-spacing: .02em; }
.gmsf-note { margin: 10px 0 0; color: var(--gmsf-muted); }
.gmsf-note:empty { display: none; }
.gmsf-test {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 6px; font-weight: 600;
  color: #fff; background: var(--gmsf-bad);
}

/* Careers text blocks */
.gmsf-warning {
  margin: 0 0 20px; padding: 14px 16px; border-radius: 6px; font-weight: 600;
  background: #fff6e0; border: 1px solid #e6c36a; color: #4a3600;
}
.gmsf-ladder { margin: 8px 0 16px; padding-left: 22px; }
.gmsf-ladder li { margin: 2px 0; }

/* Plain header and footer used on the hidden /refer page only */
.gmsf-page { margin: 0; background: var(--gmsf-soft, #f5f4f1); }
.gmsf-bar { background: #fff; border-bottom: 4px solid #f7d21e; text-align: center; padding: 18px 20px; font: 16px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.gmsf-bar a { color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .04em; display: inline-flex; align-items: center; }
.gmsf-bar img { height: 56px; width: auto; display: block; margin: 0 auto; }
.gmsf-foot { max-width: 720px; margin: 0 auto; padding: 16px 20px 32px; font: 14px/1.5 system-ui, sans-serif; color: #5c5c5c; }

/* Inside the main site pages the form sits in the site's own container. */
.container > .gmsf { max-width: 860px; margin: 0 auto; padding: 32px; background: #fff; border: 1px solid var(--border, #e3e1da); border-radius: 7px; }
@media (max-width: 639px) { .container > .gmsf { padding: 20px 16px; } }
.gmsf-walkin { margin: 18px 0 0; }
.container > .gmsf { font: inherit; }

/* Contact page: the form keeps the site's own look; only messages come from here. */
form[data-gms-form="contact"] + .gmsf-result, .c-form ~ .gmsf-result { margin-top: 16px; }

/* 18-11 draft HR pages */
.gmsf-draft{background:#fff4d6;border:1px solid #e6c34a;color:#5a4500;font-weight:700;padding:10px 14px;border-radius:6px;margin:0 0 18px;font-size:14px}
.gmsf-section{font-size:17px;font-weight:800;margin:18px 0 0;padding-top:14px;border-top:1px solid #e3e3dc;grid-column:1/-1}
.gmsf-label{display:block;font-weight:700;font-size:14px;margin-bottom:8px}
.gmsf-submit[disabled]{opacity:.5;cursor:not-allowed}
.gmsf textarea{width:100%;font:inherit;padding:10px 12px;border:1px solid #cfcfc6;border-radius:6px;box-sizing:border-box}

/* 18-11 referral page */
.ref-hero{background:#0d6b3a;color:#fff;border-radius:10px;padding:26px 24px;margin:0 0 22px;text-align:center}
.ref-hero .ref-kicker{color:#f7d21e;font-weight:800;letter-spacing:.06em;text-transform:uppercase;font-size:13px;margin:0 0 6px}
.ref-hero h1{color:#fff;font-size:2rem;margin:0 0 6px}
.ref-hero .ref-big{color:#f7d21e;font-size:1.6rem;font-weight:800;margin:0 0 10px}
.ref-hero p{margin:0;color:#e6f2ea}
.ref-levels{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:0 0 8px}
.ref-level{background:#fff;border:1px solid #e3e1da;border-top:4px solid #0d6b3a;border-radius:8px;padding:12px 10px;text-align:center}
.ref-level strong{display:block;font-size:1.15rem;color:#0d6b3a}
.ref-level span{display:block;font-size:12.5px;color:#444;margin-top:4px;line-height:1.35}
.ref-level em{display:block;font-style:normal;font-size:11px;font-weight:800;letter-spacing:.05em;color:#8a8a80;margin-bottom:4px}
.ref-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}
.ref-step{background:#fffbea;border:1px solid #f1e3a3;border-radius:8px;padding:12px;font-size:14px}
.ref-step b{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#f7d21e;margin-right:6px}
.ref-terms{font-size:13.5px;color:#444;margin:0 0 22px;padding-left:18px}
.ref-terms li{margin:3px 0}
.ref-h2{font-size:1.15rem;margin:22px 0 10px}
@media(max-width:700px){.ref-levels{grid-template-columns:repeat(2,1fr)}.ref-steps{grid-template-columns:1fr}.ref-hero h1{font-size:1.6rem}}

/* 18-11 exit form: 1–10 rating rows */
.gmsf-note{background:#eef6f0;border-left:4px solid #0d6b3a;padding:10px 12px;margin:4px 0 0;font-size:14px}
.gmsf-scale{border:1px solid #e3e1da;border-radius:8px;overflow:hidden;background:#fff}
.gmsf-srow{display:grid;grid-template-columns:minmax(180px,1.3fr) 2fr;align-items:center;gap:8px;padding:8px 10px;border-top:1px solid #f0efe9}
.gmsf-srow:first-child{border-top:0}
.gmsf-shead{background:#f7f6f2;font-size:12px;font-weight:800;color:#666}
.gmsf-sq{font-size:14px}
.gmsf-scells{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;text-align:center}
.gmsf-scells label{display:flex;justify-content:center;padding:4px 0;cursor:pointer}
.gmsf-scells input{width:18px;height:18px;margin:0;accent-color:#0d6b3a}
.gmsf-scale .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.gmsf-sends{display:flex;justify-content:space-between;font-size:12px;color:#666;padding:6px 10px;background:#f7f6f2}
@media(max-width:700px){.gmsf-srow{grid-template-columns:1fr}.gmsf-shead .gmsf-sq{display:none}}

/* 18-11 grievance: voice notes, photos, videos */
.vn-box{display:flex;align-items:center;gap:14px;background:#eef6f0;border:1px solid #cfe3d6;border-radius:40px;padding:8px 16px 8px 8px}
.vn-mic{flex:none;width:64px;height:64px;border-radius:50%;border:0;background:#0d6b3a;color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.18)}
.vn-on .vn-mic{background:#c62828;animation:vnpulse 1.2s infinite}
@keyframes vnpulse{0%{box-shadow:0 0 0 0 rgba(198,40,40,.5)}100%{box-shadow:0 0 0 16px rgba(198,40,40,0)}}
.vn-status{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.vn-state{font-size:14px}
.vn-time{font-size:13px;color:#555;font-variant-numeric:tabular-nums}
.vn-level{display:block;height:6px;background:#d6e7dc;border-radius:3px;overflow:hidden}
.vn-level i{display:block;height:100%;width:0;background:#0d6b3a;transition:width .08s}
.vn-list{list-style:none;padding:0;margin:10px 0 0;display:grid;gap:8px}
.vn-list li{display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:#fff;border:1px solid #e3e1da;border-radius:10px;padding:8px}
.vn-list audio{height:36px;max-width:100%}
.vn-meta{font-size:12.5px;color:#555}
.vn-del{margin-left:auto;border:1px solid #e0b4b0;background:#fff;color:#b3261e;border-radius:6px;padding:4px 10px;cursor:pointer}
.md-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px;margin-top:10px}
.md-item{position:relative;border:1px solid #e3e1da;border-radius:8px;overflow:hidden;background:#000}
.md-item img,.md-item video{display:block;width:100%;height:100px;object-fit:cover}
.md-item span{position:absolute;left:4px;bottom:4px;background:rgba(0,0,0,.6);color:#fff;font-size:11px;padding:1px 5px;border-radius:4px}
.md-item button{position:absolute;top:4px;right:4px;width:24px;height:24px;border-radius:50%;border:0;background:rgba(0,0,0,.65);color:#fff;cursor:pointer;line-height:1}
.gmsf input[type="date"]{display:block;-webkit-appearance:none;appearance:none;font-size:16px;text-align:left}
.gmsf input[type="date"]::-webkit-date-and-time-value{text-align:left}
.gmsf-thanks{background:#eef6f0;border:1px solid #cfe3d6;border-radius:10px;padding:20px;margin-top:10px}
.gmsf-thanks strong{font-size:1.2em}
