﻿/* ============================================================
   PROCUREMENT & LOGISTICS REQUEST — operational request workspace
   Scoped to .swpr- to avoid collision with theme/template styles.
   ============================================================ */

.swpr-page {
  background: #f4f6fb;
}

/* ---- Hero ------------------------------------------------- */
.swpr-hero {
  background: var(--thm-base);
  padding: 36px 0 30px;
}

.swpr-hero-eyebrow {
  display: inline-block;
  font-family: var(--thm-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.46);
  margin-bottom: 14px;
}

.swpr-hero-h1 {
  font-family: var(--thm-font);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 14px;
}

.swpr-hero-lead {
  font-family: var(--thm-font);
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255,255,255,0.72);
  max-width: 640px;
  margin: 0 0 10px;
}

/* ---- Hero content alignment (Registry & Request variants) --
   The default Bootstrap .container (max-width 1140px, 15px gutter,
   margin: 0 auto) sits at a different horizontal inset than the rest
   of the page's content column, leaving the eyebrow/heading/lead
   noticeably left of the masthead brand and the East Africa
   Operations hero (.sw-eahero-text in swiftaid.css). Reuse that same
   left/right inset formula here so the hero content column lines up
   with the masthead and other full-bleed hero sections. */
.swpr-hero--registry .container,
.swpr-hero--request .container {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: max(2.5rem, calc((100vw - 1100px) / 2 + 2.5rem));
  padding-right: max(2.5rem, calc((100vw - 1100px) / 2 + 2.5rem));
}

/* ---- Hero (Supplier Registry variant) ----------------------
   Mirrors the Capabilities page header's typographic hierarchy
   (.sw-cap-header / .sw-cap-h1 / .sw-cap-lead in swiftaid.css):
   larger padding, bolder/tighter display heading, narrower lead. */
.swpr-hero--registry {
  padding: 40px 0 48px;
}

.swpr-hero--registry .swpr-hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.44);
  margin-bottom: 20px;
}

.swpr-hero--registry .swpr-hero-h1 {
  font-weight: 800;
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.07;
  max-width: 620px;
  margin: 0 0 20px;
}

.swpr-hero--registry .swpr-hero-lead {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.62);
  max-width: 560px;
  margin: 0;
}

@media (max-width: 991px) {
  .swpr-hero--registry { padding: 32px 0 40px; }
}

@media (max-width: 767px) {
  .swpr-hero--registry { padding: 24px 0 32px; }
}

/* ---- Hero (Submit Request variant) --------------------------
   Same executive layout/hierarchy as the Supplier Registry hero:
   small eyebrow, bold tight headline, narrow lead. */
.swpr-hero--request {
  padding: 72px 0 80px;
}

.swpr-hero--request .swpr-hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.44);
  margin-bottom: 20px;
}

.swpr-hero--request .swpr-hero-h1 {
  font-weight: 800;
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.07;
  max-width: 620px;
  margin: 0 0 20px;
}

.swpr-hero--request .swpr-hero-lead {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.62);
  max-width: 560px;
  margin: 0 0 12px;
}

.swpr-hero--request .swpr-hero-lead:last-child {
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .swpr-hero--request { padding: 56px 0 64px; }
}

@media (max-width: 767px) {
  .swpr-hero--request { padding: 48px 0 56px; }
}

/* ---- Layout shell ----------------------------------------- */
.swpr-shell {
  padding: 64px 0 96px;
}

.swpr-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.swpr-form-col {
  flex: 1 1 620px;
  max-width: 100%;
}

.swpr-panel-col {
  flex: 0 1 360px;
}

@media (min-width: 992px) {
  .swpr-form-col { flex: 0 0 calc(67% - 20px); max-width: calc(67% - 20px); }
  .swpr-panel-col { flex: 0 0 calc(33% - 20px); max-width: calc(33% - 20px); }
}

/* ---- Form shell -------------------------------------------- */
.swpr-form-card {
  background: #F8FAFF;
  border: 1px solid #e8edf5;
  padding: clamp(24px, 4vw, 48px);
}

.swpr-section + .swpr-section,
.swpr-group + .swpr-section,
.swpr-row + .swpr-section {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid #e8edf5;
}

.swpr-section-num {
  display: inline-block;
  font-family: var(--thm-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(10,31,92,0.40);
  margin-bottom: 10px;
}

.swpr-section-h {
  font-family: var(--thm-font);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
  color: var(--thm-base);
  margin: 0 0 8px;
}

.swpr-section-sub {
  font-family: var(--thm-font);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--thm-b-text);
  margin: 0 0 18px;
}

.swpr-group + .swpr-group,
.swpr-row + .swpr-row,
.swpr-row + .swpr-group,
.swpr-group + .swpr-row,
.swpr-subgroup + .swpr-row,
.swpr-subgroup + .swpr-group { margin-top: 18px; }
.swpr-row .swpr-group { margin-top: 0; }
.swpr-row .swpr-group + .swpr-group { margin-top: 0; }

.swpr-label {
  display: block;
  font-family: var(--thm-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0A1F5C;
  margin-bottom: 7px;
}

.swpr-hint {
  display: block;
  font-family: var(--thm-font);
  font-size: 12.5px;
  color: #6b7585;
  margin-top: 6px;
}

/* ---- Inputs ------------------------------------------------ */
.swpr-input,
.swpr-select,
.swpr-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e0e6f1;
  background: #fbfcfe;
  font-family: var(--thm-font);
  font-size: 14px;
  color: #2b3650;
  transition: border-color 0.15s ease, background 0.15s ease;
}

input.swpr-input,
select.swpr-select {
  height: 44px;
  padding: 0 16px;
}

.swpr-input:focus,
.swpr-select:focus,
.swpr-textarea:focus {
  outline: none;
  border-color: var(--thm-base);
  background: #F8FAFF;
}

.swpr-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230A1F5C' stroke-width='1.4' fill='none' fill-rule='evenodd' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.swpr-textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.7;
}

.swpr-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .swpr-row-2 { grid-template-columns: 1fr 1fr; }
  .swpr-row-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---- Grid row label alignment ----------------------------- */
/* All groups in the same grid row share equal height (CSS Grid */
/* auto-row stretch). margin-top:auto on the input pushes it   */
/* to the bottom of that shared height, aligning all inputs in */
/* the row on the same horizontal baseline regardless of how   */
/* many lines the label above requires.                        */
@media (min-width: 640px) {
  .swpr-row .swpr-group {
    display: flex;
    flex-direction: column;
  }
  .swpr-row .swpr-group > .swpr-input,
  .swpr-row .swpr-group > .swpr-select {
    margin-top: auto;
  }
  .swpr-row .swpr-group .swpr-label {
    display: block;
    margin-bottom: 7px;
    padding-bottom: 0;
    min-height: 0;
  }
}

/* ---- Choice cards (radio-style: support type / priority) --- */
.swpr-choice-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .swpr-choice-list--inline { grid-template-columns: repeat(3, 1fr); }
  .swpr-choice-list--grid2 { grid-template-columns: 1fr 1fr; }
}

/* ---- Compact radio pills (procurement scope / value bands) -- */
.swpr-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.swpr-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid #e0e6f1;
  background: #fbfcfe;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.swpr-pill:hover { border-color: rgba(10,31,92,0.30); }

.swpr-pill input { position: absolute; opacity: 0; width: 0; height: 0; }

.swpr-pill-mark {
  flex: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid #c7d1e3;
  border-radius: 50%;
  position: relative;
}

.swpr-pill-mark::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  border-radius: 50%;
  background: var(--thm-base);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.swpr-pill input:checked ~ .swpr-pill-mark { border-color: var(--thm-base); }
.swpr-pill input:checked ~ .swpr-pill-mark::after { opacity: 1; transform: scale(1); }

.swpr-pill:has(input:checked) {
  border-color: var(--thm-base);
  background: rgba(10,31,92,0.035);
}

.swpr-pill-label {
  font-family: var(--thm-font);
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
  white-space: nowrap;
}

.swpr-pill:has(input:checked) .swpr-pill-label { color: var(--thm-base); }

/* ---- Sub-group heading inside a section (logistics groups, etc.) */
.swpr-subgroup {
  margin-top: 22px;
}

.swpr-subgroup:first-child { margin-top: 0; }

.swpr-subgroup-h {
  display: block;
  font-family: var(--thm-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(10,31,92,0.55);
  margin-bottom: 14px;
}

/* ---- Procurement line items (structured commodity table) ---- */
.swpr-lineitems {
  border: 1px solid #e8edf5;
}

.swpr-lineitems-head {
  display: none;
  background: #f4f6fb;
  border-bottom: 1px solid #e8edf5;
}

.swpr-lineitems-head,
.swpr-lineitem {
  grid-template-columns: 2fr 0.8fr 1fr 1.6fr 1.2fr 36px;
}

@media (min-width: 992px) {
  .swpr-lineitems-head,
  .swpr-lineitem { display: grid; }
}

.swpr-lineitems-head span {
  font-family: var(--thm-font);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10,31,92,0.50);
  padding: 12px 14px;
}

.swpr-lineitem {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 16px;
  align-items: center;
}

.swpr-lineitem + .swpr-lineitem {
  border-top: 1px solid #e8edf5;
}

@media (min-width: 992px) {
  .swpr-lineitem { gap: 0; padding: 0; }
  .swpr-lineitem > * { padding: 12px 14px; }
}

.swpr-lineitem-field label {
  display: block;
  font-family: var(--thm-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9aa5b4;
  margin-bottom: 6px;
}

@media (min-width: 992px) {
  .swpr-lineitem-field label { display: none; }
}

.swpr-li-input {
  width: 100%;
  border: 1px solid #e0e6f1;
  background: #fbfcfe;
  padding: 10px 12px;
  font-family: var(--thm-font);
  font-size: 13px;
  color: #2b3650;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.swpr-li-input:focus {
  outline: none;
  border-color: var(--thm-base);
  background: #F8FAFF;
}

.swpr-lineitem-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #c2cadb;
  font-size: 15px;
  cursor: pointer;
  padding: 6px;
  transition: color 0.15s ease;
}

.swpr-lineitem-remove:hover { color: #c0392b; }

.swpr-lineitem-remove[disabled] {
  visibility: hidden;
  cursor: default;
}

.swpr-lineitems-foot {
  padding: 14px 16px;
  background: #f8faff;
  border-top: 1px solid #e8edf5;
}

.swpr-add-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--thm-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--thm-base);
  background: transparent;
  border: 1px solid rgba(10,31,92,0.28);
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.swpr-add-line:hover,
.swpr-add-line:focus-visible,
.swpr-add-line:active {
  background: var(--thm-base);
  color: #ffffff;
  border-color: var(--thm-base);
}

.swpr-lineitems-example {
  font-family: var(--thm-font);
  font-size: 12px;
  line-height: 1.7;
  color: #9aa5b4;
  margin: 14px 0 0;
}

.swpr-lineitems-example code {
  font-family: var(--thm-font);
  font-size: 12px;
  color: #4a5568;
  background: #f4f6fb;
  padding: 2px 7px;
  border: 1px solid #e8edf5;
}

.swpr-choice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid #e0e6f1;
  background: #fbfcfe;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.swpr-choice:hover { border-color: rgba(10,31,92,0.30); }

.swpr-choice input { position: absolute; opacity: 0; width: 0; height: 0; }

.swpr-choice input:focus-visible ~ .swpr-choice-mark,
.swpr-choice input:focus-visible ~ .swpr-choice-copy {
  outline: 2px solid var(--thm-base);
  outline-offset: 3px;
}

.swpr-choice-mark {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1.5px solid #c7d1e3;
  border-radius: 50%;
  position: relative;
  transition: border-color 0.15s ease;
}

.swpr-choice-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--thm-base);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.swpr-choice input:checked ~ .swpr-choice-mark {
  border-color: var(--thm-base);
}

.swpr-choice input:checked ~ .swpr-choice-mark::after {
  opacity: 1;
  transform: scale(1);
}

.swpr-choice input:checked ~ .swpr-choice-copy .swpr-choice-h { color: var(--thm-base); }

.swpr-choice:has(input:checked) {
  border-color: var(--thm-base);
  background: rgba(10,31,92,0.035);
}

/* ---- Prominent choice list (Supplier Type — primary classification) ---- */
.swpr-choice--lg {
  padding: 24px 22px;
}

.swpr-choice-list--prominent .swpr-choice-mark {
  width: 20px;
  height: 20px;
}

.swpr-choice-list--prominent .swpr-choice-h {
  font-size: 15px;
}

.swpr-choice-list--prominent .swpr-choice:has(input:checked) {
  background: rgba(10,31,92,0.05);
  box-shadow: inset 0 0 0 1px var(--thm-base), 0 6px 18px rgba(10,31,92,0.12);
}

.swpr-choice-h {
  display: block;
  font-family: var(--thm-font);
  font-size: 14px;
  font-weight: 700;
  color: #2b3650;
  margin-bottom: 4px;
  transition: color 0.15s ease;
}

.swpr-choice-p {
  display: block;
  font-family: var(--thm-font);
  font-size: 12.5px;
  line-height: 1.6;
  color: #8a96a8;
}

/* ---- Checkbox grids (required goods / logistics support) --- */
.swpr-check-category + .swpr-check-category {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px dashed #e8edf5;
}

.swpr-check-cat-h {
  display: block;
  font-family: var(--thm-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(10,31,92,0.55);
  margin-bottom: 14px;
}

.swpr-check-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 20px;
}

@media (min-width: 640px) {
  .swpr-check-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 992px) {
  .swpr-check-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
}

.swpr-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 4px 0;
}

.swpr-check input { position: absolute; opacity: 0; width: 0; height: 0; }

.swpr-check input:focus-visible ~ .swpr-check-mark {
  outline: 2px solid var(--thm-base);
  outline-offset: 3px;
}

.swpr-check-mark {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  border: 1.5px solid #c7d1e3;
  position: relative;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.swpr-check-mark::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(40deg) scale(0.6);
  opacity: 0;
  transition: opacity 0.1s ease, transform 0.1s ease;
}

.swpr-check input:checked ~ .swpr-check-mark {
  border-color: var(--thm-base);
  background: var(--thm-base);
}

.swpr-check input:checked ~ .swpr-check-mark::after {
  opacity: 1;
  transform: rotate(40deg) scale(1);
}

.swpr-check-label {
  font-family: var(--thm-font);
  font-size: 13.5px;
  line-height: 1.5;
  color: #4a5568;
}

/* ---- Upload dropzone ---------------------------------------- */
.swpr-upload {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1.5px dashed #c7d1e3;
  background: #fbfcfe;
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.swpr-upload:hover,
.swpr-upload.is-dragover {
  border-color: var(--thm-base);
  background: rgba(10,31,92,0.03);
}

.swpr-upload input { display: none; }

.swpr-upload-icon {
  font-size: 22px;
  color: rgba(10,31,92,0.45);
  margin-bottom: 12px;
}

.swpr-upload-text {
  font-family: var(--thm-font);
  font-size: 14px;
  font-weight: 600;
  color: #2b3650;
  margin: 0 0 6px;
}

.swpr-upload-hint {
  font-family: var(--thm-font);
  font-size: 12.5px;
  color: #9aa5b4;
  margin: 0;
}

.swpr-upload-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.swpr-upload-type {
  font-family: var(--thm-font);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(10,31,92,0.55);
  border: 1px solid #e0e6f1;
  background: #fff;
  padding: 5px 11px;
}

.swpr-upload-list {
  margin-top: 14px;
  text-align: left;
}

.swpr-upload-list:empty { display: none; }

.swpr-upload-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--thm-font);
  font-size: 12.5px;
  color: #4a5568;
  padding: 9px 14px;
  background: #fff;
  border: 1px solid #e8edf5;
}

.swpr-upload-file + .swpr-upload-file { margin-top: 6px; }

.swpr-upload-file-name { word-break: break-all; }

.swpr-upload-file-size {
  flex: none;
  color: #9aa5b4;
}

.swpr-upload-file-remove {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #0A1F5C;
  font-size: 15px;
  cursor: pointer;
  padding: 0;
  border-radius: 2px;
}

.swpr-upload-file-remove:focus-visible { outline: 2px solid #0A1F5C; outline-offset: 1px; }

.swpr-upload-feedback {
  font-family: var(--thm-font);
  font-size: 12.5px;
  font-weight: 600;
  color: #1a8a42;
  margin-top: 8px;
  padding: 0 4px;
}

/* ---- Compact upload dropzone (required documents, paired side-by-side) ---- */
.swpr-upload--compact {
  padding: 22px 16px;
  min-width: 0;
}

.swpr-upload--compact .swpr-upload-icon {
  font-size: 18px;
  margin-bottom: 8px;
}

.swpr-upload--compact .swpr-upload-text {
  font-size: 13px;
  margin-bottom: 4px;
}

.swpr-upload--compact .swpr-upload-hint {
  font-size: 11.5px;
}

.swpr-upload--compact .swpr-upload-types {
  margin-top: 10px;
  gap: 6px;
}

.swpr-upload--compact .swpr-upload-type {
  font-size: 10px;
  padding: 4px 9px;
}

/* ---- Spam-protection honeypot -------------------------------
   Visually hidden (not display:none — some bots skip those) but
   removed from the tab order and screen-reader flow so it never
   reaches a genuine visitor. Left blank by humans; auto-filled by
   most automated submission scripts, which the backend then screens
   out (see procurement-system/submit.php). */
.swpr-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Submit -------------------------------------------------- */
.swpr-submit-row {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid #e8edf5;
}

.swpr-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--thm-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--thm-base);
  border: none;
  padding: 18px 42px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.swpr-submit-btn:hover,
.swpr-submit-btn:focus-visible,
.swpr-submit-btn:active {
  background: var(--thm-base-hover);
  color: #ffffff;
}

.swpr-submit-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -6px;
}

.swpr-submit-btn[disabled],
.swpr-submit-btn.is-loading {
  cursor: progress;
  opacity: 0.7;
}

.swpr-submit-note {
  font-family: var(--thm-font);
  font-size: 13px;
  line-height: 1.8;
  color: #8a96a8;
  max-width: 620px;
  margin: 22px 0 0;
}

.swpr-submit-note strong { color: #4a5568; font-weight: 600; }

/* ============================================================
   RIGHT-SIDE OPERATIONAL PANEL — credibility component
   ============================================================ */
.swpr-panel {
  position: sticky;
  top: 110px;
}

.swpr-panel-card {
  background: var(--thm-base);
  color: #ffffff;
  padding: clamp(28px, 3.5vw, 38px);
}

.swpr-panel-card + .swpr-panel-card { margin-top: 24px; }

.swpr-panel-eyebrow {
  display: block;
  font-family: var(--thm-font);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  margin-bottom: 14px;
}

.swpr-panel-h {
  font-family: var(--thm-font);
  font-weight: 700;
  font-size: 17px;
  color: #ffffff;
  margin: 0 0 16px;
  line-height: 1.4;
}

.swpr-panel-intro {
  font-family: var(--thm-font);
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255,255,255,0.62);
  margin: 0 0 22px;
}

.swpr-check-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.swpr-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--thm-font);
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.84);
  padding: 9px 0;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.swpr-check-list li:first-child { border-top: none; padding-top: 0; }

.swpr-check-glyph {
  flex: none;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: rgba(255,255,255,0.78);
  margin-top: 1px;
}

.swpr-panel-foot {
  font-family: var(--thm-font);
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(255,255,255,0.52);
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin: 0;
}

/* ---- Need Help panel card ---------------------------------- */
.swpr-panel-card--help {
  padding: clamp(24px, 3vw, 30px);
}

.swpr-panel-help-text {
  font-family: var(--thm-font);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.62);
  margin: 0 0 14px;
}

.swpr-panel-help-link {
  display: inline-block;
  font-family: var(--thm-font);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.35);
  transition: text-decoration-color 0.15s ease;
}

.swpr-panel-help-link:hover,
.swpr-panel-help-link:focus-visible {
  text-decoration-color: #ffffff;
}

.swpr-panel-help-note {
  font-family: var(--thm-font);
  font-size: 12.5px;
  color: rgba(255,255,255,0.52);
  margin: 8px 0 0;
}

/* Steps list */
.swpr-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: swpr-step;
}

.swpr-steps li {
  counter-increment: swpr-step;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-family: var(--thm-font);
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.86);
  padding: 13px 0;
}

.swpr-steps li::before {
  content: counter(swpr-step);
  flex: none;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255,255,255,0.14);
  border-radius: 50%;
}

.swpr-steps li + li {
  border-top: 1px solid rgba(255,255,255,0.10);
}

/* Responsive: panel un-stickies on small screens */
@media (max-width: 991.98px) {
  .swpr-panel { position: static; top: auto; }
}

/* ============================================================
   STEP WORKFLOW — progress indicator
   ============================================================ */
.swpr-stepper {
  display: flex;
  align-items: flex-start;
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
}

.swpr-stepper-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.swpr-stepper-item::before {
  content: "";
  position: absolute;
  top: 12px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: #e0e6f1;
  z-index: 0;
}

.swpr-stepper-item:first-child::before { display: none; }

.swpr-stepper-num {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--thm-font);
  font-size: 11px;
  font-weight: 700;
  color: #9aa5b4;
  background: #fff;
  border: 1.5px solid #e0e6f1;
  margin-bottom: 8px;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.swpr-stepper-label {
  font-family: var(--thm-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa5b4;
  line-height: 1.4;
  padding: 0 4px;
  transition: color .15s ease;
}

.swpr-stepper-item.is-complete .swpr-stepper-num {
  background: var(--thm-base);
  border-color: var(--thm-base);
  color: #fff;
}

.swpr-stepper-item.is-complete::before {
  background: var(--thm-base);
}

.swpr-stepper-item.is-complete .swpr-stepper-label,
.swpr-stepper-item.is-active .swpr-stepper-label {
  color: var(--thm-base);
}

.swpr-stepper-item.is-active .swpr-stepper-num {
  border-color: var(--thm-base);
  color: var(--thm-base);
}

.swpr-stepper-item.is-clickable { cursor: pointer; }
.swpr-stepper-item.is-clickable:hover .swpr-stepper-label { color: var(--thm-base); }

/* Mobile progress */
.swpr-progress-text {
  display: none;
  font-family: var(--thm-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--thm-base);
  margin: 0 0 10px;
}

.swpr-progress-bar {
  display: none;
  height: 3px;
  background: #e8edf5;
  margin-bottom: 28px;
  position: relative;
}

.swpr-progress-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--thm-base);
  width: 0%;
  transition: width .2s ease;
}

@media (max-width: 767.98px) {
  .swpr-stepper { display: none; }
  .swpr-progress-text,
  .swpr-progress-bar { display: block; }
}

/* ============================================================
   STEP WORKFLOW — step panels and navigation
   ============================================================ */
.swpr-step { display: none; }
.swpr-step.is-active { display: block; }

.swpr-step-title {
  font-family: var(--thm-font);
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 26px);
  color: var(--thm-base);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.swpr-step-intro {
  font-family: var(--thm-font);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--thm-b-text);
  max-width: 620px;
  margin: 0 0 36px;
}

.swpr-step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid #e8edf5;
  flex-wrap: wrap;
}

/* ---- Step 1 upload section: widen the dropzone slightly beyond
   the form's normal field width, and pull the Save Draft / Continue
   actions in close underneath it so they read as part of this
   section rather than a separate divided block. ---- */
#swprUploadSection .swpr-upload {
  width: calc(100% + 72px);
  margin-left: -36px;
  margin-right: -36px;
}

@media (max-width: 575.98px) {
  #swprUploadSection .swpr-upload {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

#swprUploadSection .swpr-step-nav {
  margin-top: 20px;
  padding-top: 0;
  border-top: none;
}

.swpr-step-nav-left,
.swpr-step-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.swpr-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--thm-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 32px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.swpr-btn-primary {
  background: var(--thm-base);
  color: #ffffff;
}

.swpr-btn-primary:hover,
.swpr-btn-primary:focus-visible,
.swpr-btn-primary:active {
  background: var(--thm-base-hover) !important;
  color: #ffffff !important;
}

.swpr-btn-secondary {
  background: transparent;
  color: var(--thm-base);
  border-color: var(--thm-base);
}

.swpr-btn-secondary:hover,
.swpr-btn-secondary:focus-visible,
.swpr-btn-secondary:active {
  background: rgba(10, 31, 92, 0.06) !important;
  color: var(--thm-base) !important;
  border-color: var(--thm-base) !important;
}

.swpr-btn-text {
  background: transparent;
  color: #9aa5b4;
  border: none;
  padding: 15px 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.swpr-btn-text:hover,
.swpr-btn-text:focus-visible,
.swpr-btn-text:active { color: var(--thm-base); }

.swpr-btn[disabled] {
  opacity: 0.55;
  cursor: progress;
}

/* ============================================================
   STEP WORKFLOW — inline field validation
   ============================================================ */
.swpr-field-error {
  display: none;
  font-family: var(--thm-font);
  font-size: 12px;
  font-weight: 600;
  color: #c0392b;
  margin-top: 8px;
}

.swpr-group.has-error .swpr-input,
.swpr-group.has-error .swpr-select,
.swpr-group.has-error .swpr-textarea {
  border-color: #c0392b;
  background: #fdf4f3;
}

.swpr-group.has-error .swpr-field-error {
  display: block;
}

.swpr-group.has-error .swpr-choice,
.swpr-group.has-error .swpr-check-grid {
  border-color: #c0392b;
}

/* ============================================================
   STEP WORKFLOW — emergency request logic
   ============================================================ */
.swpr-toggle-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.swpr-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  border: 1px solid #e0e6f1;
  background: #fbfcfe;
  cursor: pointer;
  font-family: var(--thm-font);
  font-size: 13px;
  font-weight: 700;
  color: #4a5568;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.swpr-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }

.swpr-toggle:has(input:checked) {
  border-color: var(--thm-base);
  background: rgba(10,31,92,0.035);
  color: var(--thm-base);
}

.swpr-emergency-banner {
  display: none;
  margin-top: 20px;
  padding: 20px 24px;
  background: #fdf4f3;
  border: 1px solid #f3d4cf;
  border-left: 3px solid #c0392b;
}

.swpr-emergency-banner.is-visible { display: block; }

.swpr-emergency-banner-h {
  font-family: var(--thm-font);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c0392b;
  margin: 0 0 10px;
}

.swpr-emergency-banner p {
  font-family: var(--thm-font);
  font-size: 13px;
  line-height: 1.75;
  color: #4a5568;
  margin: 0 0 8px;
}

.swpr-emergency-banner p:last-child { margin-bottom: 0; }

/* ============================================================
   STEP WORKFLOW — progressive disclosure (goods / logistics)
   ============================================================ */
.swpr-disclosure-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  background: #f4f6fb;
  border: 1px dashed #c7d1e3;
  margin-bottom: 28px;
}

.swpr-disclosure-notice p {
  font-family: var(--thm-font);
  font-size: 13px;
  line-height: 1.7;
  color: #8a96a8;
  margin: 0;
}

.swpr-step-fields { display: none; }
.swpr-step-fields.is-visible { display: block; }

/* ============================================================
   STEP WORKFLOW — review & submit
   ============================================================ */
.swpr-review-group + .swpr-review-group {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid #e8edf5;
}

.swpr-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.swpr-review-head h3 {
  font-family: var(--thm-font);
  font-weight: 700;
  font-size: 15px;
  color: var(--thm-base);
  margin: 0;
}

.swpr-review-edit {
  font-family: var(--thm-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--thm-base);
  background: transparent;
  border: 1px solid rgba(10,31,92,0.28);
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.swpr-review-edit:hover,
.swpr-review-edit:focus-visible,
.swpr-review-edit:active {
  background: var(--thm-base);
  color: #ffffff;
}

.swpr-review-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 24px;
  margin: 0;
}

@media (min-width: 640px) {
  .swpr-review-table { grid-template-columns: 1fr 1fr; }
}

.swpr-review-row dt {
  font-family: var(--thm-font);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10,31,92,0.45);
  margin: 0 0 4px;
}

.swpr-review-row dd {
  font-family: var(--thm-font);
  font-size: 13.5px;
  line-height: 1.6;
  color: #2b3650;
  margin: 0;
}

.swpr-review-row dd.is-empty {
  color: #c2cadb;
  font-style: italic;
}

.swpr-review-row--full { grid-column: 1 / -1; }

/* ============================================================
   OPERATIONAL PROCESS PANEL — post-submission steps + timelines
   ============================================================ */
.swpr-process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: swpr-proc;
}

.swpr-process-list li {
  counter-increment: swpr-proc;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
}

.swpr-process-list li + li {
  border-top: 1px solid rgba(255,255,255,0.10);
}

.swpr-process-list li::before {
  content: counter(swpr-proc);
  flex: none;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--thm-font);
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255,255,255,0.14);
  border-radius: 50%;
}

.swpr-process-body { flex: 1; }

.swpr-process-h {
  font-family: var(--thm-font);
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
  line-height: 1.4;
}

.swpr-process-time {
  font-family: var(--thm-font);
  font-size: 11.5px;
  color: rgba(255,255,255,0.52);
  margin: 0;
}

/* ============================================================
   SUPPORTING DOCUMENTS UPLOAD — final field group of Step 1,
   directly above the Save Draft / Continue actions
   ============================================================ */
.swpr-upload-optional-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #9aa5b4;
  text-transform: none;
}

/* ============================================================
   SUBMISSION CONFIRMATION CARD
   Replaces the generic Bootstrap alert on successful submission.
   ============================================================ */
.swpr-confirm-card {
  background: #ffffff;
  border: 1px solid #e0e8f5;
  border-top: 3px solid #22a651;
  margin-top: 28px;
}

.swpr-confirm-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px 16px;
  border-bottom: 1px solid #eef1fa;
}

.swpr-confirm-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #22a651;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50%;
  line-height: 1;
}

.swpr-confirm-title {
  font-family: var(--thm-font);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1a8a42;
}

.swpr-confirm-body {
  padding: 24px 28px 28px;
}

.swpr-confirm-ref-block {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eef1fa;
}

.swpr-confirm-ref-label {
  display: block;
  font-family: var(--thm-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(10,31,92,0.45);
  margin-bottom: 10px;
}

.swpr-confirm-ref {
  display: inline-block;
  font-family: 'Courier New', Courier, monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0A1F5C;
  background: #eef1fa;
  padding: 10px 18px;
  user-select: all;
  cursor: text;
}

.swpr-confirm-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 480px) {
  .swpr-confirm-meta { grid-template-columns: 1fr 1fr; }
}

.swpr-confirm-meta-label {
  display: block;
  font-family: var(--thm-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10,31,92,0.45);
  margin-bottom: 5px;
}

.swpr-confirm-meta-value {
  display: block;
  font-family: var(--thm-font);
  font-size: 13.5px;
  font-weight: 600;
  color: #2b3650;
  line-height: 1.4;
}

.swpr-confirm-note {
  font-family: var(--thm-font);
  font-size: 13px;
  line-height: 1.75;
  color: #6b7a99;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid #eef1fa;
}

.swpr-confirm-note strong {
  color: #2b3650;
  font-weight: 600;
}

.swpr-confirm-warning {
  font-family: var(--thm-font);
  font-size: 12.5px;
  line-height: 1.65;
  color: #7a5200;
  background: #fdf6e3;
  border: 1px solid #f0d890;
  padding: 12px 16px;
  margin-top: 16px;
}

.swpr-confirm-docs {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eef1fa;
}

.swpr-confirm-docs-label {
  font-family: var(--thm-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10,31,92,0.45);
  margin-bottom: 8px;
}

.swpr-confirm-docs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.swpr-confirm-docs-list li {
  font-family: var(--thm-font);
  font-size: 13px;
  color: #4a5568;
  line-height: 1.6;
  padding-left: 14px;
  position: relative;
}

.swpr-confirm-docs-list li + li { margin-top: 3px; }

.swpr-confirm-docs-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: #9aa5b4;
}

/* ============================================================
   SUPPLIER FORM — success alert institutional override
   Replaces Bootstrap's green alert-success with the Swiftaid
   institutional palette for the .server_response element.
   alert-danger remains Bootstrap default (red).
   ============================================================ */
.server_response .alert-success {
  background: #F4F5F8;
  border: 1px solid #d0d4df;
  border-left: 4px solid #0A1F5C;
  color: #0f1c3f;
  border-radius: 3px;
}
