/*
 * SWE Raising Concern Form — layout v2
 * Palette matches sriwang.com (green #2A896C + orange #D77514).
 * Everything is scoped under .swe-rcf-card so the legacy theme cannot break it.
 */

/* ---------- Theme-proof base ---------- */
.swe-rcf-card,
.swe-rcf-card *,
.swe-rcf-card *::before,
.swe-rcf-card *::after { box-sizing: border-box; }

.swe-rcf-card {
  --rcf-green: #1e7a60;
  --rcf-green-dark: #14573f;
  --rcf-green-deep: #0f3d2e;
  --rcf-green-soft: #eef8f4;
  --rcf-green-line: #cbe7dc;
  --rcf-orange: #d77514;
  --rcf-ink: #1c2a26;
  --rcf-muted: #5b6b66;
  --rcf-line: #e2ebe7;
  --rcf-card: #fbfdfc;
  --rcf-red: #dc2626;

  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  color: var(--rcf-ink);
  border: 1px solid var(--rcf-line);
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(15, 61, 46, 0.10), 0 2px 6px rgba(15, 61, 46, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow: hidden;
}
.swe-rcf-card p,
.swe-rcf-card ol,
.swe-rcf-card ul { margin: 0; }
.swe-rcf-card ol { padding-left: 20px; }
.swe-rcf-card ol.swe-rcf-intro { padding-left: 0; }
.swe-rcf-card h2,
.swe-rcf-card h3 { margin: 0; font-family: inherit; }
.swe-rcf-card small { font-family: inherit; }
.swe-rcf-card .req { color: var(--rcf-red); font-weight: 700; }

/* ---------- Branded header ---------- */
.swe-rcf-head {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "shield heading" "progress progress";
  gap: 6px 14px;
  align-items: center;
  padding: 20px 24px 16px;
  background:
    radial-gradient(circle at 92% -30%, rgba(215, 117, 20, 0.35), transparent 52%),
    linear-gradient(135deg, var(--rcf-green-deep) 0%, var(--rcf-green) 100%);
  color: #fff;
}
.swe-rcf-shield {
  grid-area: shield;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-size: 26px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
}
.swe-rcf-shield svg { display: block; }
.swe-rcf-heading { grid-area: heading; min-width: 0; }
.swe-rcf-brand {
  margin: 0 0 2px !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  text-align: left !important;
  color: #ffffff !important; /* must stay white over the theme's black `p` rule */
}
.swe-rcf-title {
  font-size: clamp(20px, 3.4vw, 27px) !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: #fff !important;
}
.swe-rcf-progress {
  grid-area: progress;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.swe-rcf-progress-track {
  flex: 1;
  height: 7px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 99px;
  overflow: hidden;
}
.swe-rcf-progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--rcf-orange), #f6b26b);
  border-radius: 99px;
  transition: width 0.35s ease;
}
.swe-rcf-progress-text {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}
.swe-rcf-progress-text b { color: #ffd9ae; }

/* ---------- Policy / confidentiality panel ---------- */
.swe-rcf-policy {
  margin: 16px 22px 0;
  padding: 13px 15px 12px;
  background: var(--rcf-green-soft);
  border: 1px solid var(--rcf-green-line);
  border-left: 4px solid var(--rcf-green);
  border-radius: 12px;
}
.swe-rcf-policy-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  text-align: left !important;
  color: var(--rcf-green-dark) !important;
}
.swe-rcf-intro {
  list-style: none !important;
  padding-left: 0 !important;
  counter-reset: rcf-policy;
  display: grid;
  gap: 5px;
}
/* Flex row = the badge can never overlap the text, whatever the theme does to li. */
.swe-rcf-intro li {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  margin: 0 !important;
  padding-left: 0 !important;
  font-size: 13px;
  line-height: 1.5;
  color: #3d4f49;
}
.swe-rcf-intro li::before {
  counter-increment: rcf-policy;
  content: counter(rcf-policy);
  position: static !important;
  flex: 0 0 auto;
  margin-top: 3px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: var(--rcf-green);
  border-radius: 50%;
}
.swe-rcf-required-note {
  margin: 10px 22px 0 !important;
  font-size: 12.5px !important;
  text-align: left !important;
  color: var(--rcf-muted) !important;
}

/* ---------- Notices ---------- */
.swe-rcf-errors,
.swe-rcf-success {
  margin: 14px 22px 0;
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 14px;
}
.swe-rcf-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid var(--rcf-red);
  color: #991b1b;
}
.swe-rcf-errors p { font-weight: 700 !important; margin-bottom: 6px !important; }
.swe-rcf-errors ul { margin: 0 !important; padding-left: 18px !important; }
.swe-rcf-success {
  background: var(--rcf-green-soft);
  border: 1px solid var(--rcf-green-line);
  border-left: 4px solid var(--rcf-green);
  color: var(--rcf-green-dark);
}
.swe-rcf-success p { margin-bottom: 7px !important; }
.swe-rcf-success p:last-child { margin-bottom: 0 !important; }
/* Keep notice text on our typography instead of the theme's justified Arial black. */
.swe-rcf-errors p, .swe-rcf-errors li,
.swe-rcf-success p {
  font-family: inherit !important;
  font-size: 14px !important;
  text-align: left !important;
  color: inherit !important;
  font-weight: inherit !important;
}
.swe-rcf-errors p { font-weight: 700 !important; }
.swe-rcf-ref {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--rcf-green-line);
  border-radius: 8px;
  padding: 4px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
}

/* ---------- Sections ---------- */
.swe-rcf-form { display: block; }
.swe-rcf-section { padding: 4px 22px 0; }
.swe-rcf-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 10px !important;
  font-size: 14.5px !important;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--rcf-green-dark);
}
.swe-rcf-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--rcf-green-line), transparent);
}
.swe-rcf-section-num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--rcf-green);
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(30, 122, 96, 0.35);
}

/* ---------- Question blocks ---------- */
.swe-rcf-field {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0 0 10px;
  padding: 12px 14px 13px;
  background: var(--rcf-card);
  border: 1px solid var(--rcf-line);
  border-radius: 14px;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.swe-rcf-field:focus-within {
  background: #fff;
  border-color: var(--rcf-green);
  box-shadow: 0 0 0 4px rgba(30, 122, 96, 0.10);
}
.swe-rcf-field legend {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  margin-bottom: 2px;
  font-size: 14.5px;
  line-height: 1.4;
}
.swe-rcf-field legend .qno {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  margin-right: 7px;
  vertical-align: -5px;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  color: var(--rcf-green-dark);
  background: #dff0e9;
  border-radius: 7px;
}
.swe-rcf-qbm { display: block; font-weight: 700; color: var(--rcf-ink); }
.swe-rcf-qen {
  display: block;
  font-style: italic;
  font-weight: 500;
  font-size: 13.5px;
  color: var(--rcf-muted);
}
.swe-rcf-hint {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: #7a8a85;
}

/* ---------- Text inputs (defeats the theme's `input {font: Arial 12px}`) ---------- */
.swe-rcf-field input[type="text"],
.swe-rcf-field input[type="email"],
.swe-rcf-field input[type="tel"],
.swe-rcf-field textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 9px 12px;
  color: var(--rcf-ink);
  background: #fff;
  border: 1px solid #cbd8d3;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.45;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.swe-rcf-field textarea { min-height: 112px; resize: vertical; }
.swe-rcf-field input[type="text"]:focus,
.swe-rcf-field input[type="email"]:focus,
.swe-rcf-field input[type="tel"]:focus,
.swe-rcf-field textarea:focus {
  outline: none;
  border-color: var(--rcf-green);
  box-shadow: 0 0 0 4px rgba(30, 122, 96, 0.12);
}
.swe-rcf-field ::placeholder { color: #9aa8a3; }

/* ---------- Choice options ---------- */
.swe-rcf-opts { display: grid; gap: 6px; margin-top: 8px; }
.swe-rcf-opts-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.swe-rcf-opts label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 11px;
  font-size: 14px;
  line-height: 1.45;
  color: #33423d;
  background: #fff;
  border: 1px solid var(--rcf-line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.swe-rcf-opts label:hover { border-color: #9dc9ba; background: #f6fbf9; }
.swe-rcf-opts input {
  flex: 0 0 auto;
  margin: 2px 0 0;
  width: 16px;
  height: 16px;
  accent-color: var(--rcf-green);
}
.swe-rcf-opts label:has(input:checked) {
  color: var(--rcf-green-dark);
  background: var(--rcf-green-soft);
  border-color: var(--rcf-green);
  box-shadow: inset 0 0 0 1px var(--rcf-green);
  font-weight: 600;
}
.swe-rcf-opts-inline label { align-items: center; }
.swe-rcf-other-wrap { margin-top: 8px; }
.swe-rcf-other-wrap[hidden] { display: none; }

/* ---------- Two-up question pairs ---------- */
.swe-rcf-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.swe-rcf-pair .swe-rcf-field { margin-bottom: 10px; }

/* ---------- Evidence upload ---------- */
.swe-rcf-file {
  position: relative;
  display: block;
  margin-top: 8px;
  padding: 14px 14px 12px;
  text-align: center;
  background: #f8fcfa;
  border: 1.5px dashed #a9cfc1;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.swe-rcf-file:hover,
.swe-rcf-file:focus-within,
.swe-rcf-file.is-drag {
  background: var(--rcf-green-soft);
  border-color: var(--rcf-green);
}
.swe-rcf-file input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.swe-rcf-file-pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--rcf-green-dark);
  background: #fff;
  border: 1px solid var(--rcf-green-line);
  border-radius: 99px;
  box-shadow: 0 2px 6px rgba(15, 61, 46, 0.08);
}
.swe-rcf-file-ico { font-size: 15px; }
.swe-rcf-file-list {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  padding: 0;
  list-style: none;
  text-align: left;
}
.swe-rcf-file-list:empty { display: none; }
.swe-rcf-file-list li {
  font-size: 13px;
  color: var(--rcf-ink);
  background: #fff;
  border: 1px solid var(--rcf-line);
  border-radius: 8px;
  padding: 6px 10px;
  word-break: break-all;
}
.swe-rcf-file-list li::before { content: "✓ "; color: var(--rcf-green); font-weight: 800; }
.swe-rcf-file small {
  display: block;
  margin-top: 10px;
  font-size: 11.5px;
  color: #7a8a85;
}

/* ---------- Declaration ---------- */
.swe-rcf-declare { background: #fffaf3; border-color: #f3ddc0; }
.swe-rcf-declare .swe-rcf-opts label {
  background: #fff;
  border-color: #f0d4ac;
  font-weight: 600;
}
.swe-rcf-declare .swe-rcf-opts label:has(input:checked) {
  color: var(--rcf-green-dark);
  background: var(--rcf-green-soft);
  border-color: var(--rcf-green);
}

/* ---------- Submit ---------- */
.swe-rcf-submit-wrap { padding: 4px 0 20px; text-align: center; }
.swe-rcf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--rcf-green) 0%, var(--rcf-green-dark) 100%);
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(20, 87, 63, 0.28);
  transition: transform 0.16s, box-shadow 0.18s, opacity 0.18s;
}
.swe-rcf-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(20, 87, 63, 0.34);
}
.swe-rcf-submit span[aria-hidden] { transition: transform 0.18s; }
.swe-rcf-submit:hover span[aria-hidden] { transform: translateX(4px); }
.swe-rcf-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; box-shadow: none; }
.swe-rcf-submit:focus-visible { outline: 3px solid #f6b26b; outline-offset: 2px; }
.swe-rcf-reassure {
  margin-top: 10px !important;
  font-size: 12.5px !important;
  text-align: center !important;
  color: var(--rcf-muted) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  .swe-rcf-head { padding: 20px 18px 16px; }
  .swe-rcf-shield { width: 44px; height: 44px; font-size: 22px; border-radius: 13px; }
  .swe-rcf-policy,
  .swe-rcf-required-note,
  .swe-rcf-errors,
  .swe-rcf-success { margin-left: 16px; margin-right: 16px; }
  .swe-rcf-section { padding: 4px 16px 0; }
  .swe-rcf-pair { grid-template-columns: 1fr; gap: 0; }
  .swe-rcf-field { padding: 13px 13px 14px; }
  .swe-rcf-opts-inline { flex-direction: column; }
  .swe-rcf-opts-inline label { width: 100%; }
}

/* Stack two-up pairs when the card itself gets narrow (sidebar layouts). */
.swe-rcf-card { container-type: inline-size; }
@container (max-width: 560px) {
  .swe-rcf-pair { grid-template-columns: 1fr; gap: 0; }
}

/* __CSS_PART2__ */
