/* ================================================
   Novaro Earth — Seller Onboarding
   Design: Cred-level Premium Dark · Forest Green + Gold
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Brand Palette */
  --green-1: #2d6a4f;
  --green-2: #1b4332;
  --green-3: #081c15;
  --green-glow: rgba(45, 106, 79, 0.4);
  --gold-1: #d4a017;
  --gold-2: #f0c040;
  --gold-light: rgba(240, 192, 64, 0.15);
  --gold-border: rgba(212, 160, 23, 0.35);

  /* Backgrounds */
  --bg-base: #060e09;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-input: rgba(255, 255, 255, 0.055);
  --bg-section-accent: linear-gradient(135deg, rgba(45,106,79,0.12) 0%, rgba(212,160,23,0.05) 100%);

  /* Text */
  --text-primary: #eef4f1;
  --text-secondary: #8fa99a;
  --text-muted: #526b5c;
  --text-placeholder: #3a4f42;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-card: rgba(45, 106, 79, 0.2);
  --border-focus: rgba(240, 192, 64, 0.7);

  /* Feedback */
  --success: #4ade80;
  --error: #f87171;
  --warning: #fb923c;
  --info: #34d399;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 50px;

  /* Transitions */
  --t: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Rich Background ── */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(45, 106, 79, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(212, 160, 23, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 40% 60% at 50% 50%, rgba(27, 67, 50, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 14, 9, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(45, 106, 79, 0.25);
  padding: 0 32px;
}

.header-inner {
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-img {
  height: 52px;
  width: auto;
  border-radius: 8px;
  background: #fff;
  padding: 6px 16px;
  object-fit: contain;
}

.header-tagline {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Progress Bar ── */
.progress-bar-outer {
  position: sticky;
  top: 62px;
  z-index: 99;
  height: 3px;
  background: rgba(6, 14, 9, 0.95);
}

.progress-bar-inner {
  height: 3px;
  background: linear-gradient(90deg, var(--green-1), var(--gold-2));
  transition: width 0.5s ease;
  box-shadow: 0 0 12px rgba(212, 160, 23, 0.6);
  border-radius: 0 2px 2px 0;
  width: 0%;
}

.progress-label {
  position: absolute;
  right: 16px;
  top: 6px;
  font-size: 10px;
  color: var(--gold-1);
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ── Hero Banner ── */
.hero-banner {
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin: 52px auto 0;
  padding: 0 24px;
}

.hero-content {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg,
    rgba(27, 67, 50, 0.55) 0%,
    rgba(45, 106, 79, 0.2) 40%,
    rgba(212, 160, 23, 0.08) 100%
  );
  border: 1px solid rgba(45, 106, 79, 0.4);
  border-radius: var(--r-lg);
  padding: 52px 56px;
  backdrop-filter: blur(12px);
}

/* Cred-style ambient orb */
.hero-content::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,106,79,0.25) 0%, transparent 70%);
  top: -150px; left: -100px;
  pointer-events: none;
}

.hero-content::after {
  content: '';
  position: absolute;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,0.12) 0%, transparent 70%);
  bottom: -80px; right: -40px;
  pointer-events: none;
}

.hero-content h1 {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #eef4f1 30%, var(--gold-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}

.hero-content p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 580px;
  line-height: 1.7;
}

.marketplace-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  background: rgba(212, 160, 23, 0.1);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-pill);
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-1);
  letter-spacing: 0.03em;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge-secure {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.25);
}
.badge-gst {
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.25);
}
.badge-velocity {
  background: rgba(240, 192, 64, 0.1);
  color: var(--gold-2);
  border: 1px solid var(--gold-border);
}

/* ── Form Container ── */
.form-container {
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin: 0 auto;
  padding: 36px 24px 100px;
}

/* ── Form Section ── */
.form-section {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-lg);
  padding: 40px;
  margin-bottom: 20px;
  overflow: hidden;
  /* Scroll animation */
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease,
    background 0.2s ease, border-color 0.2s ease, box-shadow 0.3s ease;
}

.form-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Vivid left accent bar per section */
.form-section::before {
  content: '';
  position: absolute;
  left: 0; top: 16px; bottom: 16px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--green-1), var(--gold-1));
  opacity: 0.7;
}

/* Top shimmer line */
.form-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45,106,79,0.5), rgba(212,160,23,0.3), transparent);
}

.form-section:hover {
  background: var(--bg-card-hover);
  border-color: rgba(45, 106, 79, 0.35);
  box-shadow: 0 0 48px rgba(45, 106, 79, 0.12);
}

/* ── Section Header ── */
.section-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}

.section-icon {
  font-size: 26px;
  flex-shrink: 0;
  margin-top: 3px;
  filter: saturate(1.4);
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ── Tags ── */
.velocity-tag,
.conditional-tag {
  margin-left: auto;
  flex-shrink: 0;
  border-radius: var(--r-pill);
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.velocity-tag {
  background: rgba(212, 160, 23, 0.1);
  color: var(--gold-1);
  border: 1px solid var(--gold-border);
}

.conditional-tag {
  background: rgba(251, 146, 60, 0.1);
  color: var(--warning);
  border: 1px solid rgba(251, 146, 60, 0.3);
}

.tag-optional {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 2px 8px;
  font-weight: 500;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── Form Grid ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.full-width { grid-column: 1 / -1; }

/* ── Form Group ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.required { color: var(--gold-2); margin-left: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: var(--t);
  outline: none;
  width: 100%;
}

.form-group input::placeholder { color: var(--text-placeholder); font-weight: 400; }
.form-group select option { background: #0e1f16; color: var(--text-primary); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--border-focus);
  background: rgba(240, 192, 64, 0.04);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12);
}

.form-group input.valid {
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.03);
}

.form-group input.invalid,
.form-group select.invalid {
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(248, 113, 113, 0.04);
}

.field-hint {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: -4px;
}

.error-msg {
  font-size: 12px;
  color: var(--error);
  font-weight: 600;
  min-height: 16px;
  display: block;
}

/* ── File Upload ── */
.file-upload-area {
  border: 1.5px dashed rgba(45, 106, 79, 0.35);
  border-radius: var(--r-md);
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--t);
  background: rgba(45, 106, 79, 0.04);
}

.file-upload-area:hover {
  border-color: rgba(212, 160, 23, 0.5);
  background: rgba(212, 160, 23, 0.04);
  transform: translateY(-1px);
}

.file-upload-area.dragover {
  border-color: var(--gold-2);
  background: rgba(212, 160, 23, 0.08);
  transform: scale(1.01);
}

.file-upload-area.uploaded {
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.05);
}

.file-upload-icon { font-size: 28px; margin-bottom: 8px; }
.file-upload-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
.file-upload-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.file-row { display: flex; gap: 12px; }
.file-upload-area.half { flex: 1; padding: 20px 12px; }

.file-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(74, 222, 128, 0.07);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: #4ade80;
  margin-top: 8px;
}

/* ── Alerts ── */
.info-alert {
  border-radius: var(--r-sm);
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
}

.alert-warning {
  background: rgba(251, 146, 60, 0.08);
  border: 1px solid rgba(251, 146, 60, 0.25);
  color: #fdba74;
}

.alert-info {
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #6ee7b7;
}

/* ── Warehouse Entry ── */
.warehouse-entry {
  background: rgba(45, 106, 79, 0.06);
  border: 1px solid rgba(45, 106, 79, 0.2);
  border-radius: var(--r-md);
  padding: 26px;
  margin-bottom: 16px;
  animation: slideDown 0.3s ease;
}

/* ── Product two-path layout ── */
.product-path {
  transition: opacity 0.25s ease;
  border-radius: var(--r-md);
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.015);
}

.product-path.path-dimmed {
  opacity: 0.28;
  pointer-events: none;
  filter: grayscale(0.4);
}

.path-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.path-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.path-badge-link {
  background: rgba(240, 192, 64, 0.12);
  color: var(--gold-2);
  border: 1px solid var(--gold-border);
}

.path-badge-manual {
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.product-or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-or-divider::before,
.product-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.06);
}

.product-shipment-block {
  margin-top: 20px;
}


@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.warehouse-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.warehouse-entry-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-remove {
  background: rgba(248, 113, 113, 0.08);
  color: var(--error);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: var(--r-sm);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: var(--t);
}
.btn-remove:hover { background: rgba(248, 113, 113, 0.16); }

/* ── Subsection Label ── */
.subsection-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(212, 160, 23, 0.15);
  margin-bottom: 22px;
}

/* ── Add More Button ── */
.btn-add-more {
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 1.5px dashed rgba(45, 106, 79, 0.4);
  border-radius: var(--r-md);
  color: var(--green-1);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  letter-spacing: 0.01em;
}

.btn-add-more:hover {
  border-color: var(--green-1);
  background: rgba(45, 106, 79, 0.08);
  color: #4ade80;
}

/* ── Declaration ── */
.declaration-box {
  background: rgba(45, 106, 79, 0.07);
  border: 1px solid rgba(45, 106, 79, 0.2);
  border-radius: var(--r-md);
  padding: 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--gold-1);
  cursor: pointer;
  margin-top: 1px;
}

.link { color: var(--gold-1); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ── Submit Button ── */
.submit-wrapper { text-align: center; margin-top: 16px; }

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 52px;
  background: linear-gradient(135deg, var(--green-1) 0%, #1b5e3a 50%, var(--gold-1) 150%);
  color: #fff;
  border: none;
  border-radius: var(--r-pill);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--t-slow);
  letter-spacing: 0.03em;
  box-shadow:
    0 8px 32px rgba(45, 106, 79, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  border-radius: inherit;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 48px rgba(45, 106, 79, 0.55),
    0 4px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-icon {
  font-size: 18px;
  font-weight: 400;
}

.submit-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

.submit-note strong { color: var(--text-secondary); }

/* ── Success Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: linear-gradient(160deg, #0d1f14, #060e09);
  border: 1px solid rgba(45, 106, 79, 0.4);
  border-radius: var(--r-lg);
  padding: 52px 44px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 0 80px rgba(45, 106, 79, 0.25),
    0 0 200px rgba(212, 160, 23, 0.06);
  animation: modalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.86); }
  to   { opacity: 1; transform: scale(1); }
}

.modal-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: rgba(74, 222, 128, 0.12);
  border: 2px solid rgba(74, 222, 128, 0.35);
  border-radius: 50%;
  color: #4ade80;
  font-size: 28px;
  font-weight: 700;
}

.modal-card h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.modal-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 28px 24px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

.site-footer strong { color: var(--gold-1); }

/* ── Utilities ── */
.hidden { display: none !important; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .full-width { grid-column: 1; }
  .form-section { padding: 28px 20px; }
  .hero-content { padding: 36px 28px; }
  .hero-content h1 { font-size: 26px; }
  .header-tagline { display: none; }
  .btn-submit { padding: 15px 36px; font-size: 14px; }
  .section-header { flex-wrap: wrap; }
  .velocity-tag, .conditional-tag { margin-left: 0; margin-top: 8px; }
  .file-row { flex-direction: column; }
}
