/* Core styles */
:root {
  --primary-color: #000000;
  --text-color: #262627;
  --background-color: #fdd102;
  --error-color: #ef4444;
  --success-color: #10b981;
  --transition-speed: 400ms;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  line-height: 1.5;
  overflow: hidden;
  background-color: var(--background-color);
}
/* home */
.back-btn {
  display: block;
  z-index: 99999999;
  position: absolute;
  top: 20px;
  right: 20px;
}
.back-btn a {
  text-decoration: none;
  background: #000;
  padding: 10px 22px;
  border-radius: 7px;
  color: #fff;
}
.form-container {
  height: 100vh;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* Question styles */
.question-wrapper {
  height: 100svh;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  padding: 0 2rem;
  transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--background-color);
}

.question-wrapper.active {
  transform: translateY(0);
  z-index: 2;
}

.question-wrapper.next {
  transform: translateY(100%);
  z-index: 1;
}

.question-wrapper.previous {
  transform: translateY(-100%);
  z-index: 1;
}

.question-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
 /*  width: 100%; */
  padding: 2rem;
  position: relative;
}

.question-number {
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 1rem;
}

.question-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-color);
  margin-top: 3rem;
}

/* Input styles */
.input-wrapper {
  position: relative;
  margin-bottom: 2.5rem;
  width: 100%;
}

.form-control {
  font-size: 1.25rem;
  padding: 1rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  width: 100%;
  background: white;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-control.error {
  border-color: var(--error-color);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.error-message {
  color: var(--error-color);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}

.error-message.visible {
  display: block;
}

/* Enter button indicator */
.enter-indicator {
  position: absolute;
  left: 0;
  bottom: -78px;
  background: #000;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.enter-indicator:hover {
  background: rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.enter-indicator:active {
  transform: translateY(0);
}

.enter-key {
 background: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid var(--primary-color);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #000 !important;
}
.enter-indicator > span {
  color: #fff;
}
/* Checkbox styles */
.checkbox-wrapper {
  margin-top: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
}

.form-checkbox {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.25rem;
}

.checkbox-text {
  font-size: 1.125rem;
  line-height: 1.6;
}

.text-link {
  color: var(--primary-color);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* Progress bar */
.progress-container {
  position: fixed;
  top: 50px;
  left: 0;
  width: 100%;
  padding: 2rem;
/*   background: linear-gradient(to top, var(--background-color) 0%, rgba(253, 209, 2, 0) 100%);
 */  z-index: 10;
}

.progress-bar {
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  width: calc(100% - 4rem);
}

.progress-fill {
  height: 100%;
  background: var(--primary-color);
  transition: width var(--transition-speed) ease;
}

/* Navigation */
.nav-buttons {
  position: fixed;
  bottom: 4rem;
  right: 2rem;
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.nav-button {
  background: var(--primary-color);
  color: white;
  border: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.9;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-button:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.nav-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.nav-button i {
  font-size: 1.25rem;
}

.submit-button {
  background: var(--success-color);
}

/* Success Modal */
.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 20;
}

.success-modal.visible {
  display: flex;
  opacity: 1;
}

.success-content {
  background: white;
  padding: 3rem;
  border-radius: 1rem;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  margin: 1rem;
  max-width: 90%;
}

.success-modal.visible .success-content {
  transform: translateY(0);
}

.success-icon {
  font-size: 4rem;
  color: var(--success-color);
  margin-bottom: 1.5rem;
}

/* Animations */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.shake {
  animation: shake 0.4s ease-in-out;
}

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

.question-content {
  animation: fadeIn 0.6s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .question-wrapper {
    padding: 0 1rem;
  }
  
  .question-content {
    padding: 1.5rem;
  }
  
  .question-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  
  .nav-buttons {
    right: 1rem;
    bottom: 3rem;
  }
  
  .nav-button {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .form-control {
    font-size: 1rem;
    padding: 0.875rem;
  }
  
  .checkbox-text {
    font-size: 1rem;
  }

  .progress-container {
    padding: 1.5rem;
  }

  .progress-bar {
    margin: 0 1rem;
  }
  .question-wrapper.active {
    transform: translateY(0);
    z-index: 2;
    width: 100%;
    margin-left: 0;
    padding-left: 0;
}

}

@media (max-width: 480px) {
  .question-title {
    font-size: 1.5rem;
  }
  
  .success-content {
    padding: 2rem;
  }

  .question-content {
    padding: 1rem;
  }

  .progress-container {
    padding: 1rem;
  }

  .enter-indicator {
    font-size: 0.75rem;
  }
}

@media (max-height: 600px) {
 
  .question-content {
    padding-top: 3rem;
    justify-content: flex-start;
  }
}
@media (max-width: 600px) {
  .question-content {
    padding-top: 3rem;
    justify-content: flex-start;
  }
}