/* ============================================================
   Vendor / Advertiser Signup Forms
   ============================================================ */

/* ── Page layout ─────────────────────────────────────────── */
.vendor-signup-page {
  min-height: 100vh;
  background: #0c0f14;
  color: #e8eaf0;
  font-family: 'DM Sans', 'Lato', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.vendor-signup-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(232,93,38,0.06), transparent),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(139,92,246,0.04), transparent);
  pointer-events: none;
  z-index: 0;
}

.vs-wrapper {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ── Header ──────────────────────────────────────────────── */
.vs-header {
  text-align: center;
  margin-bottom: 36px;
}
.vs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232,93,38,0.12);
  color: #E85D26;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.vs-badge svg { width: 14px; height: 14px; }
.vs-header h1 {
  font-family: 'Fraunces', 'Oswald', serif;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #e8eaf0 40%, #8892a8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vs-header p {
  color: #8892a8;
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Card ────────────────────────────────────────────────── */
.vs-card {
  background: #141820;
  border: 1px solid #2a3040;
  border-radius: 16px;
  padding: 36px 32px;
  margin-bottom: 24px;
  animation: vsFadeUp 0.4s ease;
}
@keyframes vsFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.vs-section-title {
  font-family: 'Fraunces', 'Oswald', serif;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 4px;
  color: #e8eaf0;
}
.vs-section-desc {
  color: #8892a8;
  font-size: 14px;
  margin-bottom: 24px;
}

/* ── Form grid ───────────────────────────────────────────── */
.vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.vs-grid .full-width { grid-column: 1 / -1; }
@media (max-width: 600px) {
  .vs-grid { grid-template-columns: 1fr; }
  .vs-card { padding: 24px 18px; }
}

/* ── Input groups ────────────────────────────────────────── */
.vs-field { display: flex; flex-direction: column; gap: 6px; }
.vs-field label {
  font-size: 13px;
  font-weight: 500;
  color: #8892a8;
  display: flex;
  align-items: center;
  gap: 4px;
}
.vs-field label .req { color: #E85D26; font-size: 11px; }
.vs-field .helper {
  font-size: 12px;
  color: #5a6478;
  margin-top: 2px;
}

.vs-field input[type="text"],
.vs-field input[type="email"],
.vs-field input[type="tel"],
.vs-field input[type="url"],
.vs-field input[type="number"],
.vs-field input[type="date"],
.vs-field select,
.vs-field textarea {
  width: 100%;
  padding: 10px 14px;
  background: #0c0f14;
  border: 1px solid #2a3040;
  border-radius: 10px;
  color: #e8eaf0;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.vs-field input:focus,
.vs-field select:focus,
.vs-field textarea:focus {
  border-color: #E85D26;
  box-shadow: 0 0 0 3px rgba(232,93,38,0.15);
}
.vs-field input::placeholder,
.vs-field textarea::placeholder {
  color: #5a6478;
}
.vs-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235a6478' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.vs-field select option { background: #141820; color: #e8eaf0; }
.vs-field textarea { resize: vertical; min-height: 80px; }

/* Validation error state */
.vs-field.has-error input,
.vs-field.has-error select,
.vs-field.has-error textarea {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248,113,113,0.1);
}
.vs-field .field-error {
  font-size: 12px;
  color: #f87171;
  margin-top: 2px;
  display: none;
}
.vs-field.has-error .field-error { display: block; }

/* ── Divider ─────────────────────────────────────────────── */
.vs-divider {
  border: none;
  border-top: 1px solid #2a3040;
  margin: 28px 0;
}

/* ── Subsection header ───────────────────────────────────── */
.vs-subsection {
  font-size: 14px;
  font-weight: 600;
  color: #e8eaf0;
  margin: 24px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vs-subsection:first-child { margin-top: 0; }

/* ── Advanced toggle (geographic data) ───────────────────── */
.vs-advanced-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  color: #8892a8;
  border: 1px solid #2a3040;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}
.vs-advanced-toggle:hover {
  background: #1a1f2a;
  color: #e8eaf0;
  border-color: #3a4560;
}
.vs-advanced-toggle svg { width: 16px; height: 16px; transition: transform 0.3s; }
.vs-advanced-toggle.open svg { transform: rotate(180deg); }

.vs-advanced-content {
  display: none;
  margin-top: 20px;
}
.vs-advanced-content.open {
  display: block;
  animation: vsFadeUp 0.3s ease;
}

/* ── Callout ─────────────────────────────────────────────── */
.vs-callout {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(232,93,38,0.08);
  border: 1px solid rgba(232,93,38,0.2);
  border-radius: 10px;
  font-size: 13px;
  color: #8892a8;
  line-height: 1.5;
  margin-bottom: 20px;
}
.vs-callout svg {
  width: 18px; height: 18px;
  color: #E85D26;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.vs-btn-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}
.vs-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.vs-btn svg { width: 16px; height: 16px; }
.vs-btn-primary {
  background: #E85D26;
  color: #fff;
}
.vs-btn-primary:hover {
  background: #d14e1a;
  box-shadow: 0 4px 20px rgba(232,93,38,0.3);
}
.vs-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.vs-btn-ghost {
  background: transparent;
  color: #8892a8;
  padding: 12px 16px;
}
.vs-btn-ghost:hover { color: #e8eaf0; }

/* ── Stepper (advanced form) ─────────────────────────────── */
.vs-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.vs-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.vs-step-item:hover { opacity: 1 !important; }
.vs-step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid #2a3040;
  color: #5a6478;
  transition: all 0.3s;
  flex-shrink: 0;
}
.vs-step-label {
  font-size: 13px;
  font-weight: 500;
  color: #5a6478;
  transition: color 0.3s;
  white-space: nowrap;
}
.vs-step-connector {
  width: 32px; height: 2px;
  background: #2a3040;
  margin: 0 4px;
  border-radius: 2px;
  transition: background 0.3s;
}
.vs-step-item.active .vs-step-num {
  border-color: #E85D26;
  background: #E85D26;
  color: #fff;
}
.vs-step-item.active .vs-step-label { color: #e8eaf0; }
.vs-step-item.completed .vs-step-num {
  border-color: #34d399;
  background: rgba(52,211,153,0.12);
  color: #34d399;
}
.vs-step-item.completed .vs-step-label { color: #8892a8; }
.vs-step-connector.completed { background: #34d399; }

/* ── Form sections (advanced multi-step) ─────────────────── */
.vs-form-section { display: none; }
.vs-form-section.active { display: block; }

/* ── Checkbox items ──────────────────────────────────────── */
.vs-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vs-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #8892a8;
}
.vs-checkbox-item input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: #E85D26;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

/* ── Review block ────────────────────────────────────────── */
.vs-review-block {
  background: #0c0f14;
  border: 1px solid #2a3040;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.vs-review-block h4 {
  font-size: 13px;
  font-weight: 600;
  color: #E85D26;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.vs-review-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 13px;
  border-bottom: 1px solid #2a3040;
}
.vs-review-row:last-child { border-bottom: none; }
.vs-review-row .rlabel { color: #5a6478; }
.vs-review-row .rvalue { color: #e8eaf0; font-weight: 500; text-align: right; max-width: 55%; }

/* ── Tooltip ─────────────────────────────────────────────── */
.vs-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #222836;
  color: #5a6478;
  font-size: 10px;
  font-weight: 700;
  cursor: help;
  position: relative;
}
.vs-tooltip:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #222836;
  border: 1px solid #2a3040;
  color: #e8eaf0;
  font-size: 12px;
  font-weight: 400;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: normal;
  max-width: 260px;
  min-width: 180px;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ── Upload zone ─────────────────────────────────────────── */
.vs-upload-zone {
  border: 2px dashed #2a3040;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.vs-upload-zone:hover {
  border-color: #E85D26;
  background: rgba(232,93,38,0.06);
}
.vs-upload-zone svg {
  width: 36px; height: 36px;
  color: #5a6478;
  margin-bottom: 10px;
}
.vs-upload-zone .upload-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
  color: #e8eaf0;
}
.vs-upload-zone .upload-subtitle {
  font-size: 13px;
  color: #5a6478;
}
.vs-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.vs-format-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 14px;
}
.vs-format-tag {
  background: #222836;
  color: #8892a8;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Warning callout ─────────────────────────────────────── */
.vs-callout.warning {
  background: rgba(251,191,36,0.08);
  border-color: rgba(251,191,36,0.2);
}
.vs-callout.warning svg { color: #fbbf24; }

/* ── Success modal ───────────────────────────────────────── */
.vs-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 24px;
}
.vs-modal-overlay.open {
  display: flex;
  animation: vsFadeIn 0.3s ease;
}
@keyframes vsFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.vs-modal-card {
  background: #141820;
  border: 1px solid #2a3040;
  border-radius: 16px;
  padding: 48px 36px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  animation: vsSlideUp 0.4s ease;
}
@keyframes vsSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.vs-modal-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(52,211,153,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.vs-modal-icon svg { width: 36px; height: 36px; color: #34d399; }
.vs-modal-card h2 {
  font-family: 'Fraunces', 'Oswald', serif;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #e8eaf0;
}
.vs-modal-card p {
  color: #8892a8;
  font-size: 14px;
  margin-bottom: 28px;
  line-height: 1.6;
}
.vs-modal-card .vs-btn {
  margin: 0 auto;
}

/* ── Btn row spacing for advanced form ───────────────────── */
.vs-btn-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

/* ── Back to site link ───────────────────────────────────── */
.vs-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8892a8;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.vs-back-link:hover { color: #e8eaf0; }
.vs-back-link svg { width: 16px; height: 16px; }

/* ── Spinner ─────────────────────────────────────────────── */
.vs-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: vsSpin 0.6s linear infinite;
}
@keyframes vsSpin {
  to { transform: rotate(360deg); }
}
