/* ==========================================================================
   PARTNER REGISTRATION
   Loaded only by partner-register.php, on top of css/pages.css.

   The form is long, so each block carries its own colour: business details in
   red, money in blue, documents in yellow, and the approval note in orange.
   The colour is never the only cue — every block also has its own icon and
   its own heading.
   ========================================================================== */

/* ---------- hero ---------- */
.pr-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.pr-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-gold);
  margin-bottom: 6px;
}

.pr-hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-cream, #FAF6EF);
  border: 1px solid #EFE3CE;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
  flex-shrink: 0;
}

.pr-hero-note i { color: #0F9D58; font-size: 1.05rem; }
.pr-hero-note a { color: #1D4ED8; font-weight: 700; }
.pr-hero-note a:hover { text-decoration: underline; }

/* ---------- section icons ---------- */
.pr-ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.pr-ico-red    { background: #FEE2E2; color: #C0392B; }
.pr-ico-blue   { background: #DBEAFE; color: #1D4ED8; }
.pr-ico-yellow { background: #FEF3C7; color: #A16207; }
.pr-ico-orange { background: #FFEDD5; color: #C2410C; }

.pr-sec-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.pr-sec-head h2 { margin-bottom: 2px; }
.pr-sec-head .hint { margin: 0; }

/* A coloured spine, so the blocks stay apart when you scroll fast. */
.pr-section { border-left: 4px solid transparent; }
.pr-red    { border-left-color: #E05C4E; }
.pr-blue   { border-left-color: #2563EB; }
.pr-yellow { border-left-color: #EAB308; }

.pr-tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  background: #FEF3C7;
  color: #92400E;
  border-radius: 20px;
  padding: 3px 11px;
  font-family: var(--font-primary);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.req { color: #C0392B; font-weight: 800; }

/* ---------- checkboxes ---------- */
.pr-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 7px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
}

.pr-check input { width: auto; margin-top: 2px; flex-shrink: 0; }

.pr-check-box {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-main);
}

.pr-check-box a { color: #1D4ED8; font-weight: 700; }
.pr-check-box a:hover { text-decoration: underline; }

/* ---------- uploads ---------- */
.pr-uploads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pr-upload {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px dashed #CBD5E1;
  border-radius: var(--radius-md);
  padding: 13px 15px;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.pr-upload:hover { border-color: var(--primary-gold); background: #FFFDF8; }

/* The real input stays reachable by keyboard and screen readers — it is the
   label that is styled, not a div pretending to be a control. */
.pr-upload input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pr-upload input[type="file"]:focus-visible + .pr-up-state {
  outline: 2px solid var(--primary-gold);
  outline-offset: 2px;
}

.pr-up-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #FEF3C7;
  color: #A16207;
  display: grid;
  place-items: center;
  font-size: 0.98rem;
}

.pr-up-text strong {
  display: block;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

/* Direct child only — the required asterisk lives inside the <strong> and
   must stay on the same line as the document name. */
.pr-up-text > span {
  display: block;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.pr-up-state {
  font-size: 0.74rem;
  font-weight: 700;
  color: #1D4ED8;
  white-space: nowrap;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 5px 12px;
  background: #FFFFFF;
}

.pr-upload.has-file { border-style: solid; border-color: #A7F3D0; background: #F6FDFA; }
.pr-upload.has-file .pr-up-ico { background: #D1FAE5; color: #047857; }
.pr-upload.has-file .pr-up-state { color: #047857; border-color: #A7F3D0; background: #ECFDF5; }
.pr-upload.is-bad { border-color: #FCA5A5; background: #FEF2F2; }
.pr-upload.is-bad .pr-up-state { color: #B91C1C; border-color: #FCA5A5; background: #FEF2F2; }

/* ---------- status flow ---------- */
.pr-flow-card {
  background: #FFFBF5;
  border: 1px solid #FBDCB8;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 18px;
}

.pr-flow-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 16px;
}

.pr-flow-head h2 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--dark-navy);
  margin-bottom: 3px;
}

.pr-flow-head p { font-size: 0.82rem; line-height: 1.55; color: var(--text-muted); }

.pr-flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  counter-reset: prstep;
}

.pr-step {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #F0E2CE;
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.pr-step strong {
  display: block;
  font-size: 0.83rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 3px;
}

.pr-step span:not(.pr-dot) {
  display: block;
  font-size: 0.73rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.pr-dot {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #CBD5E1;
  margin-bottom: 8px;
}

.pr-step.is-now { border-color: #F59E0B; box-shadow: 0 0 0 2px #FDE9C8; }
.pr-step.is-now .pr-dot { background: #F59E0B; }
.pr-step.pr-ok .pr-dot { background: #10B981; }
.pr-step.pr-bad .pr-dot { background: #EF4444; }

/* ---------- submit ---------- */
.pr-submit-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 4px 0 40px;
}

.pr-submit-row .btn-primary-block { max-width: 260px; margin: 0; }
.pr-submit-row .hint { max-width: 420px; margin: 0; }
.pr-submit-row .hint.is-error { color: #B91C1C; font-weight: 600; }

/* A field the browser or our own check rejected */
.form-field input.is-bad,
.form-field select.is-bad,
.form-field textarea.is-bad { border-color: #DC2626; background: #FEF2F2; }

.field-error {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #B91C1C;
  margin-top: 5px;
}

/* ---------- submitted ---------- */
.pr-done {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-left: 4px solid #10B981;
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  margin-bottom: 40px;
}

.pr-done h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark-navy);
  margin-bottom: 8px;
}

.pr-done p { font-size: 0.88rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 10px; }

.pr-ref {
  display: inline-block;
  background: #F1F5F9;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-family: var(--font-alt, monospace);
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark-navy);
  letter-spacing: 0.5px;
  margin: 6px 0 14px;
}

/* ---------- terms ---------- */
.pr-terms ol { padding-left: 18px; }
.pr-terms li { font-size: 0.85rem; line-height: 1.65; color: var(--text-muted); margin-bottom: 10px; }
.pr-terms li strong { color: var(--text-main); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .pr-hero { flex-direction: column; }
  .pr-hero-note { width: 100%; }
  .pr-flow { grid-template-columns: repeat(2, 1fr); }
  .pr-uploads { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .pr-flow { grid-template-columns: 1fr; }
  .pr-upload { grid-template-columns: 34px 1fr; }
  .pr-up-state { grid-column: 2; justify-self: start; margin-top: 6px; }
  .pr-submit-row .btn-primary-block { max-width: none; width: 100%; }
}
