@font-face {
  font-family: 'Vazir';
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir-Regular.woff2') format('woff2');
}

body {
  font-family: 'Vazir', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 20px 0;
  position: relative;
  overflow: hidden;
}
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://survey.immersioniran.com/app.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  z-index: -1;
}

.quiz-container {
  max-width: 600px;
  margin: auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  body::before {
    background-size: contain;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    filter: blur(4px);
  }
}

.step {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.step.active {
  display: block;
  opacity: 1;
}

.btn-custom {
  background: linear-gradient(45deg, #667eea, #764ba2);
  border: none;
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.progress {
  height: 8px;
  margin-bottom: 30px;
  background-color: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(45deg, #667eea, #764ba2);
  transition: width 0.5s ease-in-out;
}

.form-check {
  background: white;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.form-check:hover {
  transform: translateX(-5px);
  border-color: #667eea;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-check-input:checked + .form-check-label {
  color: #667eea;
  font-weight: bold;
}

.icon-container {
  font-size: 3em;
  color: #764ba2;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

.input-group {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.input-group-text {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 12px 15px;
}

.form-control {
  border: none;
  padding: 12px 15px;
  font-size: 16px;
}

.form-control:focus {
  box-shadow: none;
  border-color: #764ba2;
}

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

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

.animate-fade {
  animation: fadeIn 0.5s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .quiz-container {
      margin: 10px;
      padding: 20px;
  }

  .btn-custom {
      padding: 10px 20px;
  }

  h2 {
      font-size: 1.5rem;
  }

  h3 {
      font-size: 1.2rem;
  }

  .icon-container {
      font-size: 2.5em;
  }
}

/* RTL specific adjustments */
.form-check:hover {
  transform: translateX(5px);
}

.input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
  margin-right: -1px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* Loading animation */
.loading {
  position: relative;
}

.loading:after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  right: 10px;
  margin-top: -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.6s linear infinite;
}

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

/* Success animation */
.success-checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #4bb71b;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px #4bb71b;
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

@keyframes fill {
  100% {
      box-shadow: inset 0px 0px 0px 30px #4bb71b;
  }
}

@keyframes scale {
  0%, 100% {
      transform: none;
  }
  50% {
      transform: scale3d(1.1, 1.1, 1);
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #764ba2, #667eea);
}

/* Add these styles to your existing CSS file */

.alert {
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: none;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.alert-danger {
  background-color: rgba(248, 215, 218, 0.95);
  color: #721c24;
  border-right: 4px solid #dc3545;
}

.alert-success {
  background-color: rgba(212, 237, 218, 0.95);
  color: #155724;
  border-right: 4px solid #28a745;
}

.alert .btn-close {
  opacity: 0.5;
  transition: opacity 0.2s;
}

.alert .btn-close:hover {
  opacity: 1;
}

/* Animation for alerts */
.alert.fade {
  transition: opacity 0.15s linear;
}

.alert.fade.show {
  opacity: 1;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
      transform: translateY(-10px);
      opacity: 0;
  }
  to {
      transform: translateY(0);
      opacity: 1;
  }
}


.progress {
  height: 8px;
  margin-bottom: 30px;
  background-color: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.progress-bar {
  background: linear-gradient(45deg, #667eea, #764ba2);
  transition: width 0.5s ease-in-out;
  height: 100%;
  position: relative;
  z-index: 3;
}

/* Remove any conflicting styles */
.progress-bar.bg-gradient {
  background: linear-gradient(45deg, #667eea, #764ba2) !important;
}