/* ==========================================================================
   EDISTORE – BUSINESS LISTING REGISTRATION FORM
   HorizonFit Pure Form Layout × Aevon Inc Card Aesthetics
   ========================================================================== */

/* --- Design Tokens --- */
:root {
  --bg-page: #F4F6F8;
  --card-bg: #FFFFFF;
  --card-border: #E5E7EB;
  --card-border-focus: #CBD5E1;
  
  /* Text */
  --text-primary: #111112;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;

  /* Edistore Brand Accents */
  --brand-blue: #2563EB;
  --brand-blue-hover: #1D4ED8;
  --brand-blue-light: #EFF6FF;
  --brand-red: #EF4444;
  --brand-red-light: #FEF2F2;
  --brand-yellow: #F59E0B;
  --brand-green: #10B981;
  --brand-green-light: #ECFDF5;

  /* Aevon High-Contrast Accents */
  --aevon-dark: #111112;
  --aevon-dark-hover: #27272A;
  --aevon-lime: #CCFF00;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', var(--font-sans);
  --font-title: 'Plus Jakarta Sans', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;

  /* Radii */
  --radius-card: 28px;
  --radius-input: 14px;
  --radius-pill: 9999px;
  --radius-btn: 14px;

  /* Elevation */
  --shadow-card: 0 4px 24px -2px rgba(17, 17, 18, 0.05), 0 2px 8px -1px rgba(17, 17, 18, 0.02);
  --shadow-input-focus: 0 0 0 3.5px rgba(37, 99, 235, 0.12);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
}

/* ==========================================================================
   MINIMAL HEADER (HorizonFit Style)
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.brand-wordmark {
  height: 26px;
  width: auto;
  object-fit: contain;
}

.header-badge-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #F3F4F6;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--card-border);
  letter-spacing: 0.02em;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-indicator-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  background: #F3F4F6;
  border: 1px solid var(--card-border);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.dot-separator {
  color: var(--text-light);
}

.percent-text {
  color: var(--brand-blue);
  font-family: var(--font-mono);
}

.autosave-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--brand-green);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--brand-green-light);
}

/* ==========================================================================
   PAGE WRAPPER & STEPPER BAR
   ========================================================================== */
.form-wrapper {
  max-width: 760px;
  margin: 28px auto 80px auto;
  padding: 0 18px;
}

/* Horizontal Dot Stepper */
.stepper-bar-container {
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.stepper-bar-container::-webkit-scrollbar {
  display: none;
}

.stepper-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 2px;
}

.step-nav-dot {
  flex-shrink: 0;
  border: 1px solid var(--card-border);
  background: #FFFFFF;
  color: var(--text-muted);
  font-family: var(--font-title);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.step-nav-dot:hover {
  background: #F9FAFB;
  border-color: #D1D5DB;
  color: var(--text-primary);
}

.step-nav-dot .dot-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.8;
}

.step-nav-dot.active {
  background: var(--aevon-dark);
  color: #FFFFFF;
  border-color: var(--aevon-dark);
  box-shadow: 0 2px 8px rgba(17, 17, 18, 0.15);
}

.step-nav-dot.active .dot-num {
  color: var(--aevon-lime);
  opacity: 1;
}

.step-nav-dot.completed {
  background: var(--brand-green-light);
  color: #065F46;
  border-color: rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   THE FORM CARD (Aevon Inc Style)
   ========================================================================== */
.form-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

/* Progress track at very top of card */
.card-progress-track {
  width: 100%;
  height: 4px;
  background: #F3F4F6;
  position: relative;
}

.card-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-green) 50%, var(--brand-yellow) 85%, var(--brand-red) 100%);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Step Sections */
.step-section {
  display: none;
  padding: 38px 42px;
}

.step-section.active {
  display: block;
  animation: fadeInCard 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Header inside Card */
.section-top-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #F3F4F6;
}

.section-mono {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.section-subtext {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   FORM FIELDS & STACK
   ========================================================================== */
.fields-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field-item {
  display: flex;
  flex-direction: column;
  position: relative;
}

.field-title {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.field-title-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.field-helper {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}

.req-tag {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: var(--brand-red-light);
  color: var(--brand-red);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.char-count-line {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 4px;
  text-align: right;
}

/* Clean Input & Textarea */
.clean-input,
.clean-textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-primary);
  background: #F8FAFC;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-input);
  padding: 12px 16px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.clean-input {
  height: 48px;
}

.clean-textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.5;
}

.clean-input:focus,
.clean-textarea:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-input-focus);
}

.clean-input::placeholder,
.clean-textarea::placeholder {
  color: var(--text-light);
}

.uppercase-text {
  text-transform: uppercase;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.readonly-input {
  background: #F3F4F6 !important;
  color: var(--text-secondary) !important;
  cursor: not-allowed;
  font-family: var(--font-mono);
}

.clean-input.input-error,
.clean-textarea.input-error {
  border-color: var(--brand-red) !important;
  background: var(--brand-red-light) !important;
}

/* Clean Select */
.clean-select-wrap {
  position: relative;
  width: 100%;
}

.clean-select {
  width: 100%;
  height: 48px;
  padding: 0 40px 0 16px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-primary);
  background: #F8FAFC;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-input);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clean-select:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-input-focus);
}

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

/* Phone input with +91 */
.phone-row {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-input);
  background: #F8FAFC;
  overflow: hidden;
  transition: all 0.2s ease;
}

.phone-row:focus-within {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-input-focus);
  background: #FFFFFF;
}

.country-prefix {
  padding: 0 14px;
  background: #F1F5F9;
  border-right: 1px solid var(--card-border);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  height: 48px;
  display: flex;
  align-items: center;
}

.phone-input {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  height: 48px;
  padding-left: 12px;
}

/* URL Input Box */
.url-input-box {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-input);
  background: #F8FAFC;
  overflow: hidden;
  transition: all 0.2s ease;
}

.url-input-box:focus-within {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-input-focus);
  background: #FFFFFF;
}

.url-lead, .url-tail {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: #F1F5F9;
  padding: 0 12px;
  height: 48px;
  display: flex;
  align-items: center;
}

.url-lead { border-right: 1px solid var(--card-border); }
.url-tail { border-left: 1px solid var(--card-border); color: var(--brand-blue); font-weight: 600; }

.slug-field {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  height: 48px;
  padding-left: 12px;
  font-family: var(--font-mono);
}

.btn-text-link {
  background: none;
  border: none;
  color: var(--brand-blue);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* ==========================================================================
   CHOICE CARDS & CHIPS (Aevon Style)
   ========================================================================== */
.choice-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

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

.choice-cards-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.choice-card {
  position: relative;
  cursor: pointer;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  background: #F8FAFC;
  border: 1.5px solid var(--card-border);
  border-radius: 12px;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.choice-card:hover .choice-box {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: var(--text-primary);
}

.choice-card input:checked + .choice-box {
  background: var(--aevon-dark);
  color: #FFFFFF;
  border-color: var(--aevon-dark);
  box-shadow: 0 3px 10px rgba(17, 17, 18, 0.15);
}

/* Checkbox tags (Payment methods & Languages) */
.checkbox-tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.check-pill {
  position: relative;
  cursor: pointer;
}

.check-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: #F8FAFC;
  border: 1.5px solid var(--card-border);
  border-radius: 12px;
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  transition: all 0.2s ease;
  user-select: none;
}

.check-pill:hover span {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.check-pill input:checked + span {
  background: var(--aevon-dark);
  color: #FFFFFF;
  border-color: var(--aevon-dark);
}

/* Days Open Chips */
.quick-days-pills {
  display: flex;
  gap: 5px;
}

.preset-pill {
  background: #F1F5F9;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.preset-pill:hover {
  background: #E5E7EB;
}

.days-pill-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.day-chip {
  position: relative;
  cursor: pointer;
}

.day-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.day-chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  background: #F8FAFC;
  border: 1.5px solid var(--card-border);
  border-radius: 10px;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.day-chip:hover span {
  background: #F1F5F9;
}

.day-chip input:checked + span {
  background: var(--brand-blue);
  color: #FFFFFF;
  border-color: var(--brand-blue);
}

/* Suggested subcategory tags */
.suggested-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.tag-title {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.tag-btn {
  background: #F8FAFC;
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-pill);
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag-btn:hover {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}

/* ==========================================================================
   DROPZONES (FILE UPLOADS)
   ========================================================================== */
.clean-dropzone {
  border: 2px dashed #D1D5DB;
  border-radius: var(--radius-input);
  background: #FAFAFC;
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clean-dropzone:hover,
.clean-dropzone.dragover {
  border-color: var(--brand-blue);
  background: var(--brand-blue-light);
}

.hidden-input {
  display: none;
}

.dz-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dz-icon {
  font-size: 1.4rem;
  color: var(--brand-blue);
  margin-bottom: 2px;
}

.dz-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.dz-text strong {
  color: var(--brand-blue);
}

.dz-sub {
  font-size: 0.72rem;
  color: var(--text-light);
}

.dz-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px;
  background: #FFFFFF;
  border-radius: 10px;
  border: 1px solid var(--card-border);
}

.dz-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.dz-filename {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-primary);
  flex: 1;
  text-align: left;
  word-break: break-all;
}

.btn-dz-remove {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--brand-red);
  cursor: pointer;
  padding: 0 4px;
}

.multi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.thumb-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}

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

.thumb-item .thumb-del {
  position: absolute;
  top: 3px;
  right: 3px;
  background: rgba(0, 0, 0, 0.65);
  color: #FFFFFF;
  border: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==========================================================================
   REVIEW SUMMARY (SECTION 12)
   ========================================================================== */
.review-box {
  background: #F9FAFB;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid #F3F4F6;
}

.review-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rev-key {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.rev-val {
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
  max-width: 65%;
  word-break: break-word;
}

.text-brand { color: var(--brand-blue); }

.declaration-card {
  background: #FFFBEB;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.declaration-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.declaration-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.declaration-box {
  width: 20px;
  height: 20px;
  border: 2px solid #D97706;
  border-radius: 6px;
  background: #FFFFFF;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.declaration-label input:checked + .declaration-box {
  background: var(--brand-green);
  border-color: var(--brand-green);
}

.declaration-label input:checked + .declaration-box::after {
  content: '✓';
  color: #FFFFFF;
  font-weight: 900;
  font-size: 0.8rem;
}

.declaration-text {
  font-size: 0.84rem;
  color: #78350F;
  line-height: 1.5;
}

.mt-4 { margin-top: 16px; }

/* ==========================================================================
   CARD BOTTOM NAVIGATION (HorizonFit Style)
   ========================================================================== */
.card-bottom-nav {
  padding: 22px 42px;
  background: #F9FAFB;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-back {
  background: #FFFFFF;
  color: var(--text-secondary);
  border: 1px solid var(--card-border);
}

.btn-back:hover {
  background: #F3F4F6;
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-size: 0.82rem;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-continue {
  background: var(--aevon-dark);
  color: #FFFFFF;
  box-shadow: 0 3px 12px rgba(17, 17, 18, 0.15);
}

.btn-continue:hover {
  background: var(--aevon-dark-hover);
  transform: translateY(-1px);
}

.btn-submit {
  background: linear-gradient(135deg, var(--brand-blue) 0%, #1D4ED8 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.btn-submit:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
  transform: translateY(-1px);
}

.w-full {
  width: 100%;
}

.hidden {
  display: none !important;
}

/* Footer Note */
.form-footer-note {
  text-align: center;
  margin-top: 18px;
  font-size: 0.76rem;
  color: var(--text-light);
}

/* ==========================================================================
   MODAL: SUCCESS REGISTRATION
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(17, 17, 18, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: #FFFFFF;
  border-radius: 28px;
  padding: 38px 34px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.success-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #F8FAFC;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.success-logo {
  width: 46px;
  height: auto;
  object-fit: contain;
}

.success-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  color: #000000;
  background: var(--aevon-lime);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 22px;
}

.ref-badge-box {
  background: #F8FAFC;
  border: 1px dashed var(--card-border);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.ref-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.ref-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-blue);
}

.btn-copy-ref {
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.modal-actions-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   TOAST SHELF
   ========================================================================== */
.toast-shelf {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-item {
  background: var(--aevon-dark);
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  animation: toastIn 0.25s ease;
}

.toast-item.error {
  border-left: 4px solid var(--brand-red);
}

.toast-item.info {
  border-left: 4px solid var(--brand-blue);
}

.toast-item.success {
  border-left: 4px solid var(--brand-green);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 640px) {
  .form-wrapper {
    margin-top: 16px;
    padding: 0 12px;
  }

  .step-section {
    padding: 26px 20px;
  }

  .card-bottom-nav {
    padding: 16px 20px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .choice-cards-grid.three-col {
    grid-template-columns: 1fr;
  }

  .days-pill-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .header-badge-pill {
    display: none;
  }
}

/* ==========================================================================
   SECTION 2: SMART CATEGORY FLOW — CATEGORY GRID, SUBCATEGORY CHIPS,
   NATURE CARDS, FOLLOW-UP PANELS
   ========================================================================== */

/* --- Category Icon Grid --- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 1rem;
}

.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px;
  border: 2px solid var(--card-border);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
  min-height: 88px;
  position: relative;
}

.cat-tile:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.cat-tile.selected {
  border-color: var(--brand-blue);
  background: var(--brand-blue-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.cat-tile.selected::after {
  content: '✓';
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--brand-blue);
  color: #fff;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-tile-other {
  background: #FAFAFA;
  border-style: dashed;
}

.cat-tile-other:hover {
  border-style: solid;
}

.cat-icon {
  font-size: 1.6rem;
  line-height: 1;
  display: block;
}

.cat-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.25;
  font-family: var(--font-sans);
}

.cat-tile.selected .cat-label {
  color: var(--brand-blue);
}

/* --- Other category / subcategory text input reveal --- */
.other-cat-field {
  animation: slideDown 0.22s ease;
}

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

/* --- Breadcrumb back navigation --- */
.cat-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-blue);
  background: var(--brand-blue-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
}

.breadcrumb-back:hover {
  background: var(--brand-blue);
  color: #fff;
}

.breadcrumb-sep {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.breadcrumb-active {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-sans);
}

/* --- Subcategory Chips --- */
.subcat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.75rem;
}

.subcat-chip {
  padding: 9px 16px;
  border: 2px solid var(--card-border);
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  background: #fff;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
  animation: chipPop 0.2s ease both;
}

@keyframes chipPop {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

.subcat-chip:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue-light);
  color: var(--brand-blue);
}

.subcat-chip.selected {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.subcat-chip:nth-child(1) { animation-delay: 0.02s; }
.subcat-chip:nth-child(2) { animation-delay: 0.04s; }
.subcat-chip:nth-child(3) { animation-delay: 0.06s; }
.subcat-chip:nth-child(4) { animation-delay: 0.08s; }
.subcat-chip:nth-child(5) { animation-delay: 0.10s; }
.subcat-chip:nth-child(6) { animation-delay: 0.12s; }
.subcat-chip:nth-child(7) { animation-delay: 0.14s; }
.subcat-chip:nth-child(8) { animation-delay: 0.16s; }
.subcat-chip:nth-child(9) { animation-delay: 0.18s; }
.subcat-chip:nth-child(10) { animation-delay: 0.20s; }

/* --- Stage reveal animation --- */
.cat-stage {
  animation: stageReveal 0.3s ease both;
}

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

/* --- Business Nature Cards --- */
.nature-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 0.75rem;
}

.nature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 16px;
  border: 2px solid var(--card-border);
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  position: relative;
}

.nature-card:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.10);
}

.nature-card.selected {
  border-color: var(--brand-blue);
  background: linear-gradient(135deg, var(--brand-blue-light) 0%, #fff 100%);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.nature-card.selected::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--brand-blue);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nature-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.nature-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.nature-card.selected .nature-title {
  color: var(--brand-blue);
}

.nature-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-family: var(--font-sans);
}

/* --- Follow-up Section Header --- */
.followup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--card-border);
  margin-bottom: 0;
}

.followup-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-sans);
  white-space: nowrap;
}

.service-badge {
  background: #EFF6FF;
  color: var(--brand-blue);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.product-badge {
  background: #FFF7ED;
  color: #EA580C;
  border: 1px solid rgba(234, 88, 12, 0.25);
}

.mfg-badge {
  background: #F0FDF4;
  color: #16A34A;
  border: 1px solid rgba(22, 163, 74, 0.25);
}

.both-badge {
  background: #FEFCE8;
  color: #CA8A04;
  border: 1px solid rgba(202, 138, 4, 0.25);
}

.followup-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-heading);
  margin: 0;
}

/* --- Sub-fields stack within follow-up panels --- */
.sub-fields-stack {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 1.2rem;
}

/* --- Responsive: category grid --- */
@media (max-width: 600px) {
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .cat-icon {
    font-size: 1.35rem;
  }

  .cat-label {
    font-size: 0.65rem;
  }

  .nature-cards {
    grid-template-columns: 1fr;
  }

  .subcat-chips {
    gap: 6px;
  }

  .subcat-chip {
    font-size: 0.78rem;
    padding: 8px 13px;
  }
}

