/* ================================
   Variables & Reset
================================ */
:root {
  --primary: #1e40af;
  --primary-light: #3b82f6;
  --primary-dark: #1e3a8a;
  --secondary: #fbbf24;
  --secondary-light: #fcd34d;
  --success: #10b981;
  --success-light: #d1fae5;
  --error: #ef4444;
  --error-light: #fee2e2;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  min-height: 100vh;
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ================================
   Header
================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-600);
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.back-link:hover {
  color: var(--primary);
  background: var(--gray-100);
}

.back-text {
  display: none;
}

@media (min-width: 640px) {
  .back-text {
    display: inline;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 2rem;
  width: 2rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.lang-switcher {
  display: flex;
  gap: 0.25rem;
  background: var(--gray-100);
  padding: 0.25rem;
  border-radius: 0.5rem;
}

.lang-btn {
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: var(--gray-500);
}

.lang-btn.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow);
}

/* ================================
   Progress Bar
================================ */
.progress-container {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.progress-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.progress-bar-custom {
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
  transition: width 0.5s ease;
  width: 0%;
}

.step-indicators {
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
}

.step-indicator {
  flex: 1;
  text-align: center;
  font-size: 0.625rem;
  color: var(--gray-400);
  font-weight: 500;
  transition: all 0.3s;
  padding: 0.25rem;
  border-radius: 4px;
}

.step-indicator.active {
  color: var(--primary);
  background: var(--gray-100);
}

.step-indicator.completed {
  color: var(--success);
}

@media (max-width: 768px) {
  .step-indicators {
    display: none;
  }
}

/* ================================
   Main Content
================================ */
.main-content {
  padding-top: 120px;
  padding-bottom: 2rem;
  min-height: 100vh;
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ================================
   Step Sections
================================ */
.step-section {
  display: none;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.4s ease;
}

.step-section.active {
  display: block;
}

@media (min-width: 640px) {
  .step-section {
    padding: 2rem;
  }
}

.step-header {
  text-align: center;
  margin-bottom: 2rem;
}

.step-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border: 3px solid var(--primary);
}

.step-icon i {
  font-size: 1.75rem;
  color: var(--primary);
}

.step-icon.success {
  background: linear-gradient(135deg, var(--success-light), #ecfdf5);
  border-color: var(--success);
}

.step-icon.success i {
  color: var(--success);
}

.step-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.step-header p {
  color: var(--gray-500);
  font-size: 0.9375rem;
}

/* ================================
   Type Cards (Step 1)
================================ */
.type-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.type-card {
  position: relative;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.type-card:hover {
  border-color: var(--primary-light);
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.type-card.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.type-card.selected .type-icon {
  background: var(--primary);
}

.type-card.selected .type-icon i {
  color: var(--white);
}

.type-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: all 0.3s;
}

.type-icon i {
  font-size: 1.5rem;
  color: var(--gray-600);
  transition: all 0.3s;
}

.type-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.type-card p {
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.type-badge {
  position: absolute;
  top: -10px;
  right: 10px;
  background: var(--secondary);
  color: var(--gray-800);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.type-info-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
}

.type-info-box i {
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.type-info-box ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.type-info-box li {
  color: var(--gray-600);
  margin-bottom: 0.25rem;
}

/* Business Type */
.business-type-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--gray-700);
}

.business-type-cards {
  display: flex;
  gap: 1rem;
}

.business-type-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
}

.business-type-card:hover {
  border-color: var(--primary-light);
}

.business-type-card.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.business-type-card i {
  font-size: 2rem;
  color: var(--gray-500);
}

.business-type-card.selected i {
  color: var(--primary);
}

.business-type-card span {
  font-weight: 500;
  color: var(--gray-700);
}

/* ================================
   Categories (Step 2)
================================ */
.selected-count {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.selected-count span:last-child {
  font-weight: 700;
  color: var(--primary);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.category-card:hover {
  border-color: var(--primary-light);
  background: var(--white);
}

.category-card.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.category-card i {
  font-size: 1.5rem;
  color: var(--gray-500);
}

.category-card.selected i {
  color: var(--primary);
}

.category-card span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-700);
  line-height: 1.3;
}

/* ================================
   Location (Step 3)
================================ */
.location-search-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.location-search-box i {
  color: var(--gray-400);
}

.location-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1rem;
  outline: none;
}

.btn-locate {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: var(--white);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-locate:hover {
  background: var(--primary-dark);
}

.search-results {
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--gray-200);
}

.search-result-item {
  padding: 1rem 1.25rem;
  cursor: pointer;
  border-bottom: 1px solid var(--gray-100);
  transition: all 0.2s;
  font-size: 0.9375rem;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-result-item:hover {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--primary);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item i {
  color: var(--primary);
  font-size: 1.125rem;
}

.map-container {
  height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 2px solid var(--gray-200);
}

#map {
  height: 100%;
  width: 100%;
}

.location-fields {
  margin-bottom: 1.5rem;
}

/* ================================
   Form Elements
================================ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-label.required::after {
  content: " *";
  color: var(--error);
}

.form-control,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: all 0.2s;
  background: var(--white);
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.char-count {
  display: block;
  text-align: right;
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 0.25rem;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
}

.input-with-icon .form-control {
  padding-left: 2.75rem;
}

/* Practice Zone */
.practice-zone-options {
  display: flex;
  gap: 1rem;
}

.zone-checkbox {
  flex: 1;
  cursor: pointer;
}

.zone-checkbox input {
  display: none;
}

.zone-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.zone-checkbox input:checked + .zone-label {
  border-color: var(--primary);
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.zone-label i {
  font-size: 1.25rem;
  color: var(--gray-500);
}

.zone-checkbox input:checked + .zone-label i {
  color: var(--primary);
}

/* ================================
   Image Uploads (Step 5)
================================ */
.image-uploads {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .image-uploads {
    grid-template-columns: repeat(4, 1fr);
  }
}

.image-upload-card {
  text-align: center;
}

.image-upload-card.wide {
  grid-column: span 2;
}

.upload-preview {
  width: 100%;
  aspect-ratio: 1;
  background: var(--gray-100);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  overflow: hidden;
  position: relative;
}

.upload-preview.wide {
  aspect-ratio: 3 / 1;
}

.upload-preview i {
  font-size: 2rem;
  color: var(--gray-400);
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-preview.has-image i {
  display: none;
}

.image-upload-card input[type="file"] {
  display: none;
}

.upload-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-label:hover {
  background: var(--primary-dark);
}

.image-upload-card small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  color: var(--gray-500);
}

/* ================================
   Style Section (Step 6)
================================ */
.style-section {
  margin-bottom: 2rem;
}

.style-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.color-pickers {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.color-picker-group {
  flex: 1;
}

.color-picker-group label {
  display: block;
  font-size: 0.8125rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

.color-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
}

.color-input-wrapper input[type="color"] {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}

.color-value {
  font-family: monospace;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.color-presets {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.color-presets > span {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.preset-colors {
  display: flex;
  gap: 0.5rem;
}

.color-preset {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--white);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
  position: relative;
  overflow: hidden;
}

.color-preset:hover {
  transform: scale(1.1);
}

.color-preset::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 50%;
  bottom: 0;
  background: var(--primary-preset);
}

.color-preset::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  right: 0;
  bottom: 0;
  background: var(--secondary-preset);
}

.color-preset:nth-child(1) {
  --primary-preset: #1e40af;
  --secondary-preset: #fbbf24;
}
.color-preset:nth-child(2) {
  --primary-preset: #059669;
  --secondary-preset: #f59e0b;
}
.color-preset:nth-child(3) {
  --primary-preset: #7c3aed;
  --secondary-preset: #ec4899;
}
.color-preset:nth-child(4) {
  --primary-preset: #dc2626;
  --secondary-preset: #fbbf24;
}
.color-preset:nth-child(5) {
  --primary-preset: #0891b2;
  --secondary-preset: #84cc16;
}

/* Font Options */
.font-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.font-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.font-option:hover {
  border-color: var(--primary-light);
}

.font-option input {
  display: none;
}

.font-option input:checked + .font-preview {
  color: var(--primary);
}

.font-option:has(input:checked) {
  border-color: var(--primary);
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.font-preview {
  font-size: 1.125rem;
  color: var(--gray-700);
}

/* ================================
   Recruitment (Step 7)
================================ */
.toggle-buttons,
.quick-hours-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.toggle-btn,
.quick-option {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gray-700);
}

.toggle-btn:hover,
.quick-option:hover {
  border-color: var(--primary-light);
  background: var(--gray-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.toggle-btn.active,
.quick-option.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--primary);
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

.toggle-btn i,
.quick-option i {
  font-size: 1.25rem;
}

/* ================================
   Hours Schedule (Step 8)
================================ */
.hours-schedule {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.day-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.day-row:last-child {
  border-bottom: none;
}

.day-name {
  width: 120px;
  font-weight: 600;
  color: var(--gray-800);
  font-size: 1rem;
}

.day-toggle {
  position: relative;
  width: 56px;
  height: 30px;
}

.day-toggle input {
  display: none;
}

.day-toggle label {
  position: absolute;
  inset: 0;
  background: var(--gray-300);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.day-toggle label::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  background: var(--white);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.day-toggle input:checked + label {
  background: var(--success);
}

.day-toggle input:checked + label::after {
  left: 28px;
}

.day-hours {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.day-hours input[type="time"] {
  padding: 0.625rem 1rem;
}
