:root {
  --primary-color: rgb(0, 108, 54);
  --primary-hover: rgb(0, 88, 44);
  --primary-light: rgba(0, 108, 54, 0.1);
  --primary-gradient: linear-gradient(
    135deg,
    rgb(0, 108, 54) 0%,
    rgb(0, 88, 44) 100%
  );
  --text-primary: #2c3e50;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --success-color: #10b981;
  --error-color: #ef4444;
  --bg-light: #f8fafc;
  --body-bg-rgb: 249, 251, 251;
  --primary-rgb: 0, 88, 44;
  --secondary-rgb: 0, 128, 128;
}

/* Animated Background with Floating Circles */
.error-page1 {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a7f37 0%, #0d6836 100%);
  min-height: 100vh;
}

.error-page1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 10% 20%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

/* Floating Circles Animation */
.floating-circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.circle {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 15s infinite linear;
}

.circle:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 20s;
}

.circle:nth-child(2) {
  width: 120px;
  height: 120px;
  top: 70%;
  left: 80%;
  animation-delay: -5s;
  animation-duration: 25s;
}

.circle:nth-child(3) {
  width: 60px;
  height: 60px;
  top: 20%;
  right: 20%;
  animation-delay: -10s;
  animation-duration: 18s;
}

.circle:nth-child(4) {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 15%;
  animation-delay: -15s;
  animation-duration: 22s;
}

.circle:nth-child(5) {
  width: 70px;
  height: 70px;
  top: 50%;
  left: 70%;
  animation-delay: -8s;
  animation-duration: 19s;
}

.circle:nth-child(6) {
  width: 90px;
  height: 90px;
  bottom: 60%;
  right: 10%;
  animation-delay: -12s;
  animation-duration: 24s;
}

.circle:nth-child(7) {
  width: 110px;
  height: 110px;
  top: 80%;
  left: 50%;
  animation-delay: -3s;
  animation-duration: 21s;
}

.circle:nth-child(8) {
  width: 50px;
  height: 50px;
  top: 30%;
  left: 40%;
  animation-delay: -18s;
  animation-duration: 17s;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-40px) rotate(180deg);
    opacity: 0.7;
  }
  75% {
    transform: translateY(-20px) rotate(270deg);
    opacity: 0.4;
  }
  100% {
    transform: translateY(0px) rotate(360deg);
    opacity: 0.7;
  }
}

/* Progress Bar Styling */
.progress-container {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 2rem;
}

.progress {
  height: 8px;
  background: var(--border-color);
  border-radius: 6px;
}

.progress-bar {
  background: var(--primary-gradient);
  transition: width 0.3s ease;
}

/* Option Cards Styling */
.option-card {
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.option-card:hover {
  border-color: var(--primary-light);
  background-color: var(--primary-light);
}

.option-card.selected {
  border-color: var(--primary-color);
  background-color: var(--primary-light);
}

.option-card input[type="radio"] {
  display: none;
}

/* Welcome Screen Styling */
.welcome-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.feature-item {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary-color);
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 1rem;
  flex-shrink: 0;
}

/* Button Animations */
.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .circle {
    transform: scale(0.7);
  }
  .feature-item {
    padding: 1rem;
  }
}

/* Hide all sections initially except the first one */
.question-section {
  display: none;
}

.question-section.active {
  display: block;
}

/* Skip link styling */
.skip-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}

.skip-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* OTP Input Styling */
.otp-input {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

.otp-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 8px var(--primary-light);
  outline: none;
}

.otp-input:not(:last-child) {
  margin-right: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .circle {
    transform: scale(0.7);
  }
  .otp-input {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

.form-check-input {
  width: 1em;
  height: 1em;
}

.btn-primary:hover {
  background-color: rgba(var(--primary-rgb), .9) !important;
  border-color: rgb(var(--primary-rgb)) !important;
  color: #fff !important;
}

.btn-primary:focus{
  color: #fff !important;
}