* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background-color: #121212;
  color: white;
  overflow-x: hidden;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, #121212 0%, #1a1a1a 100%);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Forge Page Specific Styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Forge Hero Section */
.forge-hero {
  background: #1a1a1a; /* Solid background instead of image with overlay */
  min-height: 60vh; /* Reduced from 100vh to 60vh */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 20px 40px; /* Increased top padding for navbar */
}

/* Remove the background image and overlay styles */
/* .forge-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/images/MiniForgeLabs.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
} */

.forge-hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 90%; /* Reduce max-width for mobile */
}

.forge-icon {
  font-size: 3rem; /* Reduced from 5rem */
  margin-bottom: 15px;
  animation: forgeGlow 3s ease-in-out infinite;
}

@keyframes forgeGlow {
  0%, 100% { 
    filter: drop-shadow(0 0 20px rgba(255, 165, 0, 0.5));
    transform: scale(1);
  }
  50% { 
    filter: drop-shadow(0 0 40px rgba(255, 165, 0, 0.8));
    transform: scale(1.1);
  }
}

.forge-title {
  font-size: 2.5rem; /* Reduced from 4.5rem */
  font-weight: 700;
  background: linear-gradient(45deg, #339CFF, #FF6B6B, #4ECDC4);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease-in-out infinite;
  margin-bottom: 15px;
  letter-spacing: 1px; /* Reduced spacing */
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.forge-subtitle {
  font-size: 1rem; /* Reduced from 1.3rem */
  color: #ccc;
  margin-bottom: 30px;
  font-weight: 300;
}

.forge-stats {
  display: flex;
  justify-content: center;
  gap: 20px; /* Reduced gap */
  margin-top: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.stat {
  text-align: center;
  padding: 15px 10px; /* Reduced padding */
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  min-width: 80px; /* Minimum width */
  flex: 1;
  max-width: 120px; /* Maximum width */
}

.stat:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-number {
  display: block;
  font-size: 1.5rem; /* Reduced from 2.5rem */
  font-weight: 700;
  color: #339CFF;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.7rem; /* Reduced font size */
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.scroll-indicator {
  position: absolute;
  bottom: 5px; /* Lowered from 10px to 5px */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  z-index: 2;
}

/* Mobile adjustments - lower even more on mobile */
@media (max-width: 767px) {
  .scroll-indicator {
    bottom: 2px; /* Very close to bottom on mobile */
  }
  
  .scroll-indicator span {
    font-size: 0.8rem;
  }
  
  .scroll-arrow {
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid rgba(255, 255, 255, 0.8);
  }
}

.upload-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 3;
}

.upload-indicator svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: #339CFF;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-2px);
  }
}

/* Upload Section */
.upload-section {
  background: #1a1a1a; /* Solid background */
  padding: 20px 15px; /* Reduced padding */
  min-height: auto; /* Remove min-height */
}

/* Progress Steps */
.progress-steps {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  gap: 15px; /* Reduced gap */
  flex-wrap: wrap;
  padding: 0 10px;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: #333;
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
  min-width: 70px; /* Reduced width */
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: all 0.3s ease;
}

.step:not(:last-child) {
  margin-right: 120px;
}

.step-circle {
  width: 35px; /* Reduced size */
  height: 35px;
  border-radius: 50%;
  background: #444;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 14px;
}

.step.active .step-circle {
  background: linear-gradient(45deg, #339CFF, #4ECDC4);
  color: white;
  box-shadow: 0 0 20px rgba(51, 156, 255, 0.5);
}

.step.completed .step-circle {
  background: #4ECDC4;
  color: white;
}

.step span {
  font-size: 10px; /* Reduced font size */
  color: #888;
  text-align: center;
  font-weight: 500;
}

/* Upload Container */
.upload-container {
  background: rgba(30, 30, 30, 0.8);
  border-radius: 15px; /* Reduced border radius */
  padding: 20px 15px; /* Reduced padding */
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.upload-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #339CFF, transparent, #FF6B6B, transparent, #4ECDC4);
  border-radius: 20px;
  z-index: -1;
  animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Form Steps */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.step-header {
  text-align: center;
  margin-bottom: 30px;
}

.step-header h2 {
  font-size: 1.5rem; /* Reduced from 2rem */
  font-weight: 700;
  background: linear-gradient(45deg, #339CFF, #4ECDC4);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.step-header p {
  color: #aaa;
  font-size: 0.9rem;
}

/* Form optimizations for mobile */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px; /* Reduced gap */
  margin-bottom: 25px;
}

.input-group {
  position: relative;
}

.input-group.full-width {
  grid-column: 1 / -1;
}

.input-group label {
  display: block;
  color: #ccc;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 12px 40px 12px 12px; /* Reduced padding */
  background: rgba(42, 42, 42, 0.8);
  border: 2px solid #444;
  border-radius: 8px; /* Reduced border radius */
  color: white;
  font-size: 16px; /* Prevent zoom on iOS */
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: #339CFF;
  box-shadow: 0 0 20px rgba(51, 156, 255, 0.3);
}

.input-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #666;
  pointer-events: none;
}

.char-counter {
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 0.8rem;
  color: #666;
}

/* Upload zone mobile optimization */
.upload-zone {
  border: 2px dashed #444; /* Thinner border */
  border-radius: 12px;
  padding: 20px 10px; /* Reduced padding */
  text-align: center;
  transition: all 0.3s ease;
  background: rgba(42, 42, 42, 0.3);
  margin-bottom: 20px;
  position: relative;
  cursor: pointer;
  min-height: 150px; /* Reduced height */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upload-zone input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  top: 0;
  left: 0;
}

.upload-content h3 {
  font-size: 1rem; /* Reduced size */
  margin-bottom: 8px;
  color: #ccc;
}

.upload-content p {
  color: #888;
  font-size: 0.8rem;
}

/* Button optimizations for mobile */
.next-btn,
.prev-btn,
.submit-btn {
  padding: 12px 20px; /* Reduced padding */
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem; /* Reduced font size */
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-height: 44px; /* iOS minimum touch target */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  touch-action: manipulation;
  width: 100%; /* Full width on mobile */
  margin-bottom: 10px;
}

.next-btn,
.submit-btn {
  background: linear-gradient(45deg, #339CFF, #2986e6);
  color: white;
  box-shadow: 0 4px 15px rgba(51, 156, 255, 0.4);
}

.prev-btn {
  background: #666;
  color: white;
}

.next-btn:hover,
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(51, 156, 255, 0.6);
}

.next-btn:disabled,
.submit-btn:disabled {
  background: #444;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.step-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-direction: column; /* Stack buttons on mobile */
}

/* Mobile-only forge page fixes */
@media (max-width: 767px) {
  /* Reduce content size to fit mobile screens better */
  .forge-hero {
    min-height: 50vh; /* Smaller on mobile */
    padding: 80px 15px 30px;
  }
  
  .forge-title {
    font-size: 2rem; /* Smaller on mobile */
  }
  
  .forge-subtitle {
    font-size: 0.9rem;
  }
  
  .forge-icon {
    font-size: 2.5rem;
  }
  
  .forge-stats {
    gap: 15px;
  }
  
  .stat {
    padding: 10px 8px;
    min-width: 70px;
    max-width: 100px;
  }
  
  .stat-number {
    font-size: 1.2rem;
  }
  
  .stat-label {
    font-size: 0.6rem;
  }
  
  /* Upload section mobile fixes */
  .upload-section {
    padding: 15px 10px;
  }
  
  .upload-container {
    padding: 15px 10px;
    border-radius: 15px;
  }
  
  .step-header h2 {
    font-size: 1.3rem;
  }
  
  .step-header p {
    font-size: 0.85rem;
  }
  
  /* Progress steps mobile */
  .progress-steps {
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .step {
    min-width: 60px;
  }
  
  .step-circle {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  
  .step span {
    font-size: 9px;
  }
  
  /* Form mobile adjustments */
  .form-grid {
    gap: 12px;
  }
  
  .input-group input,
  .input-group select,
  .input-group textarea {
    padding: 10px 35px 10px 10px;
    font-size: 16px; /* Prevent iOS zoom */
  }
  
  .upload-zone {
    min-height: 120px;
    padding: 15px 10px;
  }
  
  .upload-content h3 {
    font-size: 0.9rem;
  }
  
  .upload-content p {
    font-size: 0.75rem;
  }
  
  /* Buttons mobile */
  .next-btn,
  .prev-btn,
  .submit-btn {
    padding: 10px 15px;
    font-size: 0.85rem;
    width: 100%;
  }
  
  .step-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  /* Scroll indicator mobile fix */
  .scroll-indicator {
    bottom: 2px; /* Very close to bottom on mobile */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .scroll-indicator span {
    font-size: 0.8rem;
  }
  
  .scroll-arrow {
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid rgba(255, 255, 255, 0.8);
  }
}

/* Progress Steps - Mobile optimized */
@media (max-width: 767px) {
  .progress-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    gap: 10px; /* Reduced gap for mobile */
    flex-wrap: wrap;
    padding: 0 5px;
  }
  
  .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 6px;
    min-width: 60px; /* Smaller width for mobile */
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .step-circle {
    width: 32px; /* Better size for mobile */
    height: 32px;
    border-radius: 50%;
    background: #444;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
  }
  
  /* Active step */
  .step.active .step-circle {
    background: linear-gradient(45deg, #339CFF, #4ECDC4);
    color: white;
    box-shadow: 0 3px 10px rgba(51, 156, 255, 0.4);
  }
  
  .step span {
    font-size: 9px; /* Smaller text on mobile */
    color: #888;
    text-align: center;
    font-weight: 500;
    white-space: nowrap; /* Prevent text wrapping */
  }
  
  .step.active span {
    color: white;
  }
  
  /* Step connector line */
  .progress-steps::before {
    content: "";
    position: absolute;
    top: 21px; /* Center with the circles */
    left: 10%;
    right: 10%;
    height: 2px;
    background: #444;
    z-index: 1;
  }
  
  /* Make sure step indicators stay in a single row on very small screens */
  @media (max-width: 350px) {
    .progress-steps {
      gap: 5px;
    }
    
    .step {
      min-width: 50px;
      padding: 4px;
    }
    
    .step-circle {
      width: 28px;
      height: 28px;
      font-size: 12px;
    }
    
    .progress-steps::before {
      top: 18px;
    }
  }
}

/* Desktop/tablet styles remain unchanged */
@media (min-width: 768px) {
  /* Keep your existing styles for larger screens */
}

@media (min-width: 1024px) {
  /* All existing desktop styles remain the same */
}

/* Cross-browser compatibility */
@-moz-document url-prefix() {
  /* Firefox specific styles */
  .input-group select {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
  }
}

/* Edge specific styles */
@supports (-ms-ime-align: auto) {
  .input-group select::-ms-expand {
    display: none;
  }
}