/* 
 * Urban Vision Growth - Onboarding Styles (Premium Upgrade)
 */

:root {
  --color-bg: #0b1121;
  --color-surface: #172136;
  --color-primary: #3b82f6;
  --color-primary-hover: #2563eb;
  --color-violet: #8b5cf6;
  --color-success: #10b981;
  --color-text: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-border: #2e3b52;
  --color-error: #ef4444;
  --border-radius: 14px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Premium Glows */
  --glow-primary: 0 0 20px rgba(59, 130, 246, 0.3);
  --glow-success: 0 0 20px rgba(16, 185, 129, 0.3);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  background-image: 
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.1) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(11, 17, 33, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-accent {
  background: linear-gradient(to right, var(--color-primary), var(--color-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-title {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Container */
.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 20px;
  max-width: 850px;
  margin: 0 auto;
  width: 100%;
}

/* Progress */
.progress-container {
  width: 100%;
  margin-bottom: 50px;
}

.progress-bar {
  height: 8px;
  background-color: rgba(255,255,255,0.05);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0; /* RTL */
  height: 100%;
  width: var(--progress, 14%);
  background: linear-gradient(90deg, var(--color-violet), var(--color-primary));
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.progress-text {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 12px;
  letter-spacing: 1px;
}

/* Wizard */
.wizard-container {
  width: 100%;
  background: rgba(23, 33, 54, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  padding: 50px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.step {
  display: none;
}

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

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

h1, h2 {
  margin-bottom: 15px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.subtitle {
  color: var(--color-text-muted);
  margin-bottom: 35px;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.5;
}

/* Forms */
.form-row {
  display: flex;
  gap: 25px;
}

.form-group {
  margin-bottom: 25px;
  width: 100%;
}

.form-group.half {
  flex: 1;
}

label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.3px;
}

.required {
  color: var(--color-error);
  margin-right: 4px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 15px 20px;
  background-color: rgba(11, 17, 33, 0.5);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-text);
  font-family: inherit;
  font-size: 1.05rem;
  transition: var(--transition);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  background-color: rgba(11, 17, 33, 0.8);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), inset 0 2px 4px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Buttons */
.btn {
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

/* Button Ripple effect */
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.btn:active::after {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% { transform: scale(0) translate(-50%, -50%); opacity: 0.5; }
  100% { transform: scale(20) translate(-50%, -50%); opacity: 0; }
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
  color: #fff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}

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

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, var(--color-success), #059669);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-success);
}

.btn-large {
  padding: 18px 36px;
  font-size: 1.15rem;
}

.step-actions {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

/* Custom Radios & Checkboxes */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 25px;
}

.option-card {
  position: relative;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}

.option-card:hover {
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  background: rgba(15, 23, 42, 0.6);
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  height: 22px;
  width: 22px;
  background-color: rgba(0,0,0,0.2);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.option-card input[type="radio"] ~ .checkmark {
  border-radius: 50%;
}

.option-card input:checked ~ .checkmark {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.option-card input:checked ~ .checkmark:after {
  content: "✓";
  color: white;
  font-size: 14px;
  font-weight: bold;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.option-card input:checked ~ .option-label {
  color: #fff;
  font-weight: 600;
}

.option-card:has(input:checked) {
  border-color: var(--color-primary);
  background: rgba(59, 130, 246, 0.08);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
  transform: translateY(-3px);
}

.option-label {
  font-size: 1rem;
  color: #cbd5e1;
  transition: var(--transition);
}

.field-description {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 15px;
  margin-top: -5px;
  line-height: 1.5;
}

/* Special Steps */
.welcome-icon, .success-icon {
  font-size: 5rem;
  margin-bottom: 25px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.welcome-icon { color: var(--color-primary); text-shadow: var(--glow-primary); }
.success-icon { color: var(--color-success); text-shadow: var(--glow-success); }

.info-box {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.02) 100%);
  border-right: 4px solid var(--color-primary);
  padding: 20px;
  border-radius: 10px;
  color: #e0e7ff;
  margin-bottom: 25px;
  font-size: 1.05rem;
}

/* File Upload */
.upload-area {
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 50px 30px;
  text-align: center;
  background: rgba(11, 17, 33, 0.3);
  transition: var(--transition);
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
}

.upload-area:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.02);
}

.upload-area.dragover {
  border-color: var(--color-primary);
  background: rgba(59, 130, 246, 0.08);
  box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.1);
}

.upload-icon {
  font-size: 3.5rem;
  color: var(--color-primary);
  margin-bottom: 15px;
  transition: var(--transition);
}

.upload-area:hover .upload-icon {
  transform: translateY(-5px);
}

.file-category-select {
  background: rgba(255,255,255,0.02);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.05);
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  transition: var(--transition);
}

.file-item:hover {
  background: rgba(255,255,255,0.06);
  transform: translateX(-3px);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-name {
  font-size: 0.95rem;
  font-weight: 500;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-cat-badge {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.remove-file {
  color: var(--color-text-muted);
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  transition: var(--transition);
  padding: 5px;
}

.remove-file:hover {
  color: var(--color-error);
  transform: scale(1.1) rotate(90deg);
}

/* Review Step */
.review-box {
  background: rgba(11, 17, 33, 0.4);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 30px;
}

.review-section {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
}

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

.review-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 20px;
  background: var(--color-primary);
  border-radius: 3px;
}

.review-item {
  display: flex;
  margin-bottom: 12px;
  align-items: baseline;
}

.review-label {
  width: 160px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.review-value {
  flex: 1;
  font-weight: 500;
  color: #e2e8f0;
}

.error-msg {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.15);
  padding: 15px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  border-right: 4px solid var(--color-error);
  margin-bottom: 20px;
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

.workspace-id-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.2));
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 20px;
  border-radius: 12px;
  display: inline-block;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: var(--glow-success);
}

.conditional-block {
  margin-top: 20px;
  padding: 20px;
  background: rgba(59, 130, 246, 0.05);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 10px 10px 0;
  animation: slideInUp 0.4s ease forwards;
}

.agreement-box {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 35px;
  transition: var(--transition);
}

.agreement-box:hover {
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.1);
}

.agreement-label {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.6;
  color: #e2e8f0;
}

.agreement-label input[type="checkbox"] {
  margin-top: 5px;
  transform: scale(1.3);
  accent-color: var(--color-success);
}

.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .wizard-container {
    padding: 30px 20px;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .review-item {
    flex-direction: column;
    margin-bottom: 15px;
  }
  .review-label {
    width: 100%;
    margin-bottom: 4px;
    font-size: 0.85rem;
  }
  .upload-area {
    padding: 30px 20px;
  }
  .header {
    padding: 15px 20px;
  }
}

