/* =============================================
   BVetter — signup.css
   Page: Create account multi-step form (no navbar).
   Depends: variables.css (must load first in HTML)

   Path from public/html/[page].html:
     <link rel="stylesheet" href="../css/variables.css"/>
     <link rel="stylesheet" href="../css/signup.css"/>

   All colors use CSS custom properties from variables.css.
   To change a color: edit variables.css only — not this file.
   ============================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Manrope', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background: #ffffff;
}

.page-wrapper {
  display: flex;
  width: 100%;
  height: 100vh;
}

/* =============================================
   LEFT PANEL
   ============================================= */
.left-panel {
  width: 60%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 72px;
  background: #ffffff;
  overflow-y: auto;
}

.form-container {
  width: 100%;
  max-width: 480px;
  padding-top: 40px;
}

.logo {
  width: 100px;
  margin: 0 auto 0 auto;
  display: block;
}

.form-container h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-green-dark);
  margin-bottom: 24px;
  text-align: center;
  width: 100%;
}

/* =============================================
   STEPPER
   ============================================= */
.stepper {
  display: flex;
  align-items: flex-start;
  margin-bottom: 28px;
  width: 100%;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border-input);
  background: #ffffff;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: all 0.3s;
}

.step-circle.active {
  background: var(--color-green);
  border-color: var(--color-green);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(17, 193, 37, 0.15);
}

.step-circle.done {
  background: var(--color-green);
  border-color: var(--color-green);
  color: #ffffff;
}

.check-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.step-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.step-line {
  z-index: 1;
  flex-shrink: 0;
  width: 200px;
  margin: 0 -20px;
  margin-top: 20px;
  height: 3px;
  background: var(--border-default);
  align-self: flex-start;
  border-radius: 2px;
}

.step-line.done {
  background: var(--color-green);
}

.step-line.active {
  background: var(--color-green);
}

/* =============================================
   FORM STEPS
   ============================================= */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

/* =============================================
   FORM ELEMENTS
   ============================================= */
.form-group {
  margin-bottom: 16px;
  width: 100%;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-body);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.hint {
  float: right;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.input-wrapper input {
  width: 100%;
  padding: 13px 44px;
  border: 1.5px solid var(--border-input);
  border-radius: 10px;
  font-size: 13.5px;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-input-alt);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.input-wrapper input.no-icon {
  padding-left: 14px;
}

.input-wrapper input::placeholder {
  color: var(--text-faint);
  font-weight: 400;
}

.input-wrapper input:focus {
  border-color: var(--color-green-dark);
  background: #ffffff;
}

.toggle-pw {
  position: absolute;
  right: 14px;
  width: 18px;
  height: 18px;
  object-fit: contain;
  cursor: pointer;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  width: 100%;
  padding: 13px 40px 13px 14px;
  border: 1.5px solid var(--border-input);
  border-radius: 10px;
  font-size: 13.5px;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-input-alt);
  outline: none;
  appearance: none;
  cursor: pointer;
}

.select-wrapper select:focus {
  border-color: var(--color-green-dark);
}

.chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 18px;
  line-height: 1;
}

.upload-box {
  border: 1.5px dashed var(--border-input);
  border-radius: 10px;
  background: var(--bg-input-alt);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.upload-box:hover {
  border-color: var(--color-green-dark);
}

.upload-box.has-file {
  border-style: solid;
  border-color: var(--color-green-dark);
  padding: 14px 16px;
}

.proof-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.proof-preview[hidden] {
  display: none;
}

.proof-preview-thumb {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border-input);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.proof-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proof-preview-info {
  flex: 1;
  min-width: 0;
}

.proof-preview-info p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-green-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proof-preview-info span {
  display: block;
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
}

.proof-remove-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.proof-remove-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.proof-remove-btn img {
  width: 12px;
  height: 12px;
}

.upload-box p {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
}

.upload-box span {
  display: block;
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 4px;
}

.upload-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.upload-preview-img {
  max-width: 100%;
  max-height: 140px;
  border-radius: 8px;
  object-fit: contain;
  border: 1px solid var(--border-input);
}

.upload-preview-pdf {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--color-green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-preview-pdf-icon {
  width: 26px;
  height: 26px;
}

.upload-preview-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-body);
  word-break: break-all;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-green-dark);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-row label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.checkbox-row a {
  color: var(--color-green-dark);
  font-weight: 700;
  text-decoration: none;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.upload-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.upload-label-row label {
  margin-bottom: 0;
}

.edit-icon-sm {
  width: 16px;
  height: 16px;
  object-fit: contain;
  cursor: pointer;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--color-green-dark) 0%, var(--color-green) 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.2s;
  margin-bottom: 14px;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-flex {
  flex: 2;
  width: auto;
  margin-bottom: 0;
}

.btn-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.btn-back {
  flex: 1;
  padding: 14px;
  background: var(--bg-input-alt);
  color: var(--text-body);
  font-size: 14px;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  border: 1.5px solid var(--border-input);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-back:hover {
  background: var(--border-default);
}

.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 14px;
}

.alt-link {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}

.alt-link a {
  font-weight: 700;
  color: var(--color-green-dark);
  text-decoration: none;
}

/* =============================================
   SUCCESS CARD — redesigned
   ============================================= */
.success-card {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  background: #fff;
}

.success-top {
  background: var(--gradient-hero);
  padding: 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.success-top::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  pointer-events: none;
}

.success-top::after {
  content: '';
  position: absolute;
  bottom: -30px; left: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}

.success-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2.5px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.success-icon::before {
  content: '';
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.success-check {
  width: 28px;
  height: 28px;
  object-fit: contain;
  position: relative;
  z-index: 3;
  filter: brightness(0) invert(1);
}

.success-label {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,0.75);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.success-body {
  padding: 28px 28px 24px;
}

.success-body h3 {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: -0.3px;
}

.success-body > p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
  text-align: center;
}

.ref-box {
  background: var(--bg-input);
  border: 1.5px solid var(--border-default);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 22px;
}

.ref-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-faint);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ref-number {
  font-size: 18px;
  font-weight: 900;
  color: var(--color-green-dark);
  letter-spacing: 0.5px;
}

.copy-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s;
}

.copy-icon:hover {
  opacity: 1;
}

.ref-hint {
  display: block;
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 8px;
  line-height: 1.5;
}

.btn-back-login {
  width: 100%;
  padding: 15px 20px;
background: linear-gradient(135deg, var(--color-green-dark) 0%, var(--color-green) 100%);
  box-shadow: 0 4px 16px rgba(0, 179, 40, 0.28);  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  font-family: 'Manrope', sans-serif;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.2s, transform 0.15s;
  margin-bottom: 12px;
  letter-spacing: 0.2px;
}

.btn-back-login:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-back-login:active {
  transform: translateY(0);
}

.btn-close-text {
  width: 100%;
  background: none;
  border: 1.5px solid var(--border-default);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  text-align: center;
  padding: 12px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-close-text:hover {
  background: var(--bg-page);
  border-color: var(--border-input);
  color: var(--text-body);
}

/* =============================================
   RIGHT PANEL
   ============================================= */
.right-panel {
  width: 40%;
  position: relative;
  overflow: hidden;
  background: var(--color-navy);
}

.bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.right-logo {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 80px;
  z-index: 3;
}

.right-content {
  position: absolute;
  bottom: 60px;
  left: 40px;
  right: 40px;
  z-index: 3;
}

.right-content h1 {
  font-size: 44px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 16px;
}

.right-content p {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.5px;
  line-height: 1.5;
  text-transform: uppercase;
}

.cross-deco {
  position: absolute;
  color: rgba(255,255,255,0.15);
  font-weight: 900;
  line-height: 1;
  user-select: none;
  z-index: 2;
}

.cross-1 {
  font-size: 180px;
  bottom: 30px;
  right: -20px;
}

.cross-2 {
  font-size: 120px;
  bottom: -20px;
  right: 80px;
}

/* =============================================
   RESPONSIVE — see public/css/variables.css for
   the shared breakpoint scale used across all pages.

   .step-line is a fixed 200px connector — with 3
   steps that's 400px+ before the circles/labels
   are even counted, wider than any mobile viewport,
   so it needs to shrink at every non-desktop size.
   ============================================= */

/* ── Tablet: 481px – 1024px ─────────────────── */
@media (max-width: 1024px) {
  .page-wrapper { flex-direction: column; height: auto; min-height: 100vh; }

  .left-panel {
    width: 100%;
    padding: 32px 40px;
    overflow-y: visible;
  }

  .form-container { padding-top: 24px; }

  .stepper { justify-content: center; }

  .step-line { width: 60px; margin: 0 -10px; margin-top: 20px; }

  .right-panel {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    padding: 0 32px;
  }

  .right-content {
    position: relative;
    z-index: 3;
    bottom: auto;
    left: auto;
    right: auto;
  }

  .right-content h1 { font-size: 26px; margin-bottom: 10px; }

  .right-content p { font-size: 11px; }

  .cross-deco { display: none; }
}

/* ── Mobile: up to 480px ─────────────────────── */
@media (max-width: 480px) {
  .left-panel { padding: 24px 20px; }

  .form-container { padding-top: 16px; }

  .form-container h2 { font-size: 26px; }

  .stepper { justify-content: center; }

  .step-line { width: 36px; margin: 0 -2px; margin-top: 16px; }

  .step-circle { width: 32px; height: 32px; font-size: 12px; }

  .step-label { display: none; }

  .two-col { grid-template-columns: 1fr; }

  .upload-box { padding: 28px 16px; }

  /* Green promo panel is dropped entirely on mobile — logo
     + heading already center themselves at the top of the
     form (.logo has auto margins, h2 is text-align:center). */
  .right-panel { display: none; }
}