:root {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --primary: 186 100% 40%;
  --primary-foreground: 0 0% 100%;
  --secondary: 210 40% 96%;
  --secondary-foreground: 222.2 84% 4.9%;
  --muted: 210 40% 96%;
  --muted-foreground: 215 16% 47%;
  --accent: 210 40% 96%;
  --accent-foreground: 222.2 84% 4.9%;
  --destructive: 0 72% 51%;
  --destructive-foreground: 0 0% 100%;
  --border: 214 32% 83%;
  --input: 214 32% 83%;
  --ring: 186 100% 40%;
  --radius: 0;
  --brand: 186 100% 40%;
  --brand-foreground: 0 0% 100%;
  --gradient: linear-gradient(135deg, hsl(186 100% 40%) 0%, hsl(186 100% 50%) 100%);
  --gradient-glow: none;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  --glow: none;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #ffffff;
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Multi-step container */
.multi-step-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Progress Header */
.progress-header {
  background: hsl(var(--card));
  border-bottom: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 2rem;
  backdrop-filter: blur(20px);
}

.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.header-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  animation: float 6s ease-in-out infinite;
}

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

.header-text {
  position: relative;
}

.main-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  line-height: 1.1;
  position: relative;
}

.main-title::after {
  display: none;
}

.subtitle {
  color: hsl(var(--muted-foreground));
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0.9;
}

/* Progress Bar */
.progress-bar {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  margin-bottom: 1rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  border: 2px solid hsl(var(--border));
}

.step-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: all 0.3s ease;
}

.step.active .step-circle {
  background: var(--gradient);
  color: hsl(var(--primary-foreground));
  transform: scale(1.1);
  border-color: hsl(var(--primary));
}

.step.active .step-label {
  color: hsl(var(--primary));
  font-weight: 600;
}

.progress-line {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: hsl(var(--muted));
  border-radius: 1px;
  z-index: 1;
}

.progress-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 1px;
  transition: width 0.5s ease;
  width: 0%;
}

/* Form Container */
.form-container {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

/* Step Content */
.step-content {
  display: none !important;
  animation: fadeIn 0.5s ease-in-out;
}

.step-content.active {
  display: block !important;
}

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

.step-header {
  text-align: center;
  margin-bottom: 3rem;
}

.step-title {
  font-size: 2rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.step-description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 600px;
  margin: 0 auto;
}

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

/* Form Elements */
label {
  font-weight: 600;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
  display: block;
}

.required {
  color: hsl(var(--destructive));
  font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius);
  font-size: 1rem;
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  transition: all 0.3s ease;
  font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: none;
  transform: none;
}

input::placeholder,
textarea::placeholder {
  color: hsl(var(--muted-foreground));
  font-weight: 400;
}

.readonly-input {
  background-color: hsl(var(--muted)) !important;
  cursor: not-allowed !important;
  opacity: 0.7;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23555555' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  background-size: 1.25rem;
  padding-right: 3rem;
}

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

.input-help {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
  font-weight: 400;
}

/* Error States */
input.error,
select.error,
textarea.error {
  border-color: hsl(var(--destructive)) !important;
  box-shadow: 0 0 0 3px hsl(var(--destructive) / 0.2) !important;
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Final Notice */
.final-notice {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.notice-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.notice-content strong {
  color: #92400e;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.notice-content p {
  color: #92400e;
  font-size: 0.875rem;
  margin: 0;
}

/* Navigation Buttons */
.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}

.nav-btn {
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  position: relative;
  overflow: hidden;
}

.prev-btn {
  background: hsl(var(--card));
  color: hsl(var(--muted-foreground));
  border: 2px solid hsl(var(--border));
}

.prev-btn:hover {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: hsl(var(--primary));
}

.next-btn, .submit-btn {
  background: var(--gradient);
  color: white;
  border: 2px solid transparent;
  box-shadow: none;
}

.next-btn:hover, .submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.next-btn:active, .submit-btn:active {
  transform: translateY(0);
}

.submit-btn {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .progress-header {
    padding: 1rem;
  }
  
  .logo-section {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .header-logo {
    height: 48px;
  }
  
  .main-title {
    font-size: 1.75rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .progress-steps {
    gap: 0.5rem;
  }
  
  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
  
  .step-label {
    font-size: 0.625rem;
  }
  
  .form-container {
    padding: 1rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .step-title {
    font-size: 1.5rem;
  }
  
  .step-description {
    font-size: 1rem;
  }
  
  .form-navigation {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .progress-header {
    padding: 0.75rem;
  }
  
  .main-title {
    font-size: 1.5rem;
  }
  
  .form-container {
    padding: 0.75rem;
  }
  
  .step-header {
    margin-bottom: 2rem;
  }
  
  .step-title {
    font-size: 1.25rem;
  }
  
  .form-grid {
    gap: 0.75rem;
  }
}

