/* public/style.css */

/* Base styling for inputs */
input {
  transition: border 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #ccc;
  -moz-appearance: textfield;
  margin-bottom: 1.25rem;
}

/* Remove number input spinners */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Progress tracker styling */
.progress-tracker {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  padding: 20px 0;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  color: #666;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.step-number:not(.completed):hover {
  background: #e0e0e0;
  transform: scale(1.05);
}

.step-number.active {
  background: #4A90E2;
  color: white;
  transform: scale(1.1);
}

.step-number.completed {
  background: #28a745;
  color: transparent;
  cursor: pointer;
}

.step-number.completed:hover {
  transform: scale(1.05);
  background: #218838;
}

.step-number.completed::after {
  content: '✓';
  position: absolute;
  font-size: 24px;
  color: white;
}

/* Question heading styling */
.question-heading {
  font-size: 1.5rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
}

/* Active state: when an input is focused */
input.active {
  border-color: #4A90E2;
  box-shadow: 0 0 8px rgba(74, 144, 226, 0.6);
}

/* Completed state: when an input has valid data */
input.completed {
  border-color: #28a745;
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.6);
}

/* Multi-step form: only show active step */
.form-step {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Active step: visible and animated */
.form-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Result section styling */
#result-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#result-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utility class to hide elements completely */
.hidden {
  display: none !important;
}

/* Form container styling */
#form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

/* Navigation buttons styling */
.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.back-btn {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.back-btn.visible {
  visibility: visible;
  opacity: 1;
}

.next-btn {
  float: right;
  margin-top: 15px;
}