/* ==========================
   CREATE BUSINESS MODAL
   Scoped to #createBusinessModal
========================== */

#createBusinessModal.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  display: none;
  z-index: 9999;
}

#createBusinessModal.active {
  display: flex;
}

#createBusinessModal .modal {
  width: 100%;
  height: 100%;
  background: #fff;
  overflow: hidden;
  display: flex;
  position: relative;
}

#createBusinessModal .modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

/* LAYOUT */

#createBusinessModal .wrapper {
  display: flex;
  min-height: 100vh;
}

/* LEFT PANEL */

#createBusinessModal .left {
  width: 48%;
  position: relative;
  background-image: url("https://images.unsplash.com/photo-1501281668745-f7f57925c3b4?q=80&w=2000");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
}

/* overlay */

#createBusinessModal .left::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,.2) 40%, rgba(0,0,0,.7));
}

/* HEADER */

#createBusinessModal .hero-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 28px 40px;
  font-weight: 600;
}

#createBusinessModal .hero-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5b5fff;
  font-weight: 700;
}

/* HERO CONTENT */

#createBusinessModal .hero-content {
  position: relative;
  padding: 40px;
  max-width: 520px;
  margin-bottom: 60px;
}

#createBusinessModal .hero-content h1 {
  font-size: 30px;
  margin-bottom: 16px;
}

#createBusinessModal .gradient-eticks {
  font-weight: 700;
  background: linear-gradient(120deg,#4f46e5,#7c3aed,#9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#createBusinessModal .hero-content p {
  font-size: 12px;
  line-height: 1.6;
  opacity: .9;
}

/* RIGHT FORM */

#createBusinessModal .right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px;
}

#createBusinessModal .form-container {
  background: rgb(223, 223, 223);
  padding: 20px;
  margin-top: -10px;
  border-radius: 20px;
  width: 100%;
  max-width: 720px;
}

@media (max-width: 900px) {
  #createBusinessModal .right {
    padding: 0 !important;
  }

  #createBusinessModal .form-container {
    max-width: 100%;
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    margin: 0;
    padding: 24px 18px;
    background: white;
  }
}

#createBusinessModal h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

/* PROGRESS */

#createBusinessModal .progress {
  height: 5px;
  background: #eee;
  border-radius: 20px;
  margin-bottom: 30px;
  overflow: hidden;
}

#createBusinessModal .progress-bar {
  height: 100%;
  width: 25%;
  background: #048300;
  transition: .4s;
}

/* STEPS */

#createBusinessModal .step {
  display: none;
  animation: fade .45s ease;
}

#createBusinessModal .step.active {
  display: block;
}

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

/* INPUTS */

#createBusinessModal label {
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

#createBusinessModal input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-bottom: 16px;
}

#createBusinessModal input:focus {
  outline: none;
  border-color: #5b5fff;
  box-shadow: 0 0 0 3px rgba(91,95,255,0.1);
}

/* LOGO AREA */

#createBusinessModal .logo-area {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

#createBusinessModal .logo-preview {
  width: 70px;
  height: 70px;
  border-radius: 14px;
  background: #f5f6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e3e6ff;
}

#createBusinessModal .logo-preview svg {
  width: 28px;
  height: 28px;
  fill: #9aa3ff;
}

#createBusinessModal .logo-upload {
  border: 1px dashed #cfd4ff;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  background: #fafbff;
  transition: .25s;
}

#createBusinessModal .logo-upload:hover {
  border-color: #5b5fff;
  background: #f4f5ff;
}

#createBusinessModal .logo-note {
  font-size: 13px;
  color: #777;
  margin-bottom: 18px;
}

#createBusinessModal .field-msg {
  font-size: 13px;
  color: #ff4d4f;
  margin-top: -10px;
  margin-bottom: 10px;
  opacity: 0;
  transition: .3s;
}

/* OPTIONS */

#createBusinessModal .options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

#createBusinessModal .category-options {
  grid-template-columns: repeat(3, 1fr);
}

#createBusinessModal .option {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  transition: .2s;
}

#createBusinessModal .option:hover {
  border-color: #5b5fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

#createBusinessModal .option.selected {
  background: #5b5fff;
  color: white;
  border-color: #5b5fff;
}

#createBusinessModal .hidden {
  display: none;
}

/* BUTTONS */

#createBusinessModal .buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

#createBusinessModal button {
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

#createBusinessModal .next {
  background: linear-gradient(135deg,#5b5fff,#7a4bff);
  color: white;
}

#createBusinessModal .next:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(91,95,255,.25);
}

#createBusinessModal .back {
  background: #eee;
}

/* SUCCESS */

#createBusinessModal .success {
  display: none;
  text-align: center;
  padding: 40px;
}

#createBusinessModal .success h3 {
  font-size: 30px;
  margin-bottom: 10px;
}

/* MOBILE */

@media (max-width: 900px) {
  #createBusinessModal .left {
    display: none;
  }

  #createBusinessModal .wrapper {
    flex-direction: column;
  }

  #createBusinessModal .right {
    padding: 20px;
  }
}

/* ONBOARDING HEADER */

#createBusinessModal .onboarding-header {
  margin-bottom: 28px;
}

#createBusinessModal .onboarding-badge {
  display: inline-block;
  background: #f3f4ff;
  color: #5b5fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

#createBusinessModal .onboarding-header h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

#createBusinessModal .onboarding-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 16px;
}

#createBusinessModal .onboarding-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#createBusinessModal .info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #444;
}

#createBusinessModal .info-icon {
  background: #5b5fff;
  color: white;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
}

/* ==========================
   PAGE LOADER
========================== */

#createBusinessModal #pageLoader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .35s ease;
}

#createBusinessModal #pageLoader.hide {
  opacity: 0;
  pointer-events: none;
}

#createBusinessModal .loader-spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid #e5e5e5;
  border-top: 3px solid #000;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}