.form-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-form {
  width: 90%;
  max-width: 420px;
}

.input-pill {
  background: white;
  border-radius: 999px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 3px solid #1a8f3e;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #1a8f3e;
  flex-shrink: 0;
}

.helper-text {
  text-align: center;
  font-weight: 600;
  margin: 12px 0 24px;
}

.slider-btn {
  font-family: "Oswald", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: bold;
  position: relative;
  height: 70px;
  background: linear-gradient(to right, #19c34a, #0b8f2f);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  margin-bottom: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.slider-knob {
  position: absolute;
  left: 8px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: grab;
}

.slider-knob img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.slider-knob {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.terms {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.s1form,
.s1form * {
  font-family: "Oswald", sans-serif;
  font-size: 18px;
  font-weight: 900;
  border: none;
  outline: none;
}

.form-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-form {
  width: 90%;
  max-width: 420px;
}

.input-pill {
  background: white;
  border-radius: 999px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 3px solid #1a8f3e;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #1a8f3e;
  flex-shrink: 0;
}

.helper-text {
  text-align: center;
  font-weight: 600;
  margin: 12px 0 24px;
}

.slider-btn {
  font-family: "Oswald", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: bold;
  position: relative;
  height: 70px;
  background: linear-gradient(to right, #19c34a, #0b8f2f);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  margin-bottom: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.slider-knob {
  position: absolute;
  left: 8px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: grab;
}

.slider-knob img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.slider-knob {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.terms {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

/* Error shake animation */
    @keyframes shake {
      0%, 100% { transform: translateX(0); }
      10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
      20%, 40%, 60%, 80% { transform: translateX(5px); }
    }
    
    .shake {
      animation: shake 0.5s ease-in-out;
    }
    
    .error {
      border-color: #ff4444 !important;
      box-shadow: 0 0 5px rgba(255, 68, 68, 0.5) !important;
    }
    
    .terms.invalid {
      color: #ff4444;
    }
    
    /* Error message styling */
    #errorMessage {
      position: fixed;
      top: 20px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(255, 68, 68, 0.95);
      color: white;
      padding: 12px 24px;
      border-radius: 8px;
      font-size: 14px;
      z-index: 10000;
      opacity: 0;
      transition: opacity 0.3s ease;
      text-align: center;
      max-width: 90%;
      box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }
    
    #errorMessage.show {
      opacity: 1;
    }
    
    /* Success Modal */
    .success-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.8);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 10001;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
    }
    
    .success-modal.active {
      opacity: 1;
      visibility: visible;
    }
    
    .modal-content {
      background: linear-gradient(135deg, #1a4d2e 0%, #2d5f3f 100%);
      padding: 40px;
      border-radius: 20px;
      text-align: center;
      color: white;
      max-width: 400px;
      width: 90%;
      transform: scale(0.8);
      transition: transform 0.3s ease;
    }
    
    .success-modal.active .modal-content {
      transform: scale(1);
    }
    
    .modal-icon {
      width: 80px;
      height: 80px;
      background: rgba(255,255,255,0.2);
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 0 auto 20px;
      font-size: 40px;
    }
    
    .modal-title {
      font-size: 28px;
      font-weight: bold;
      margin-bottom: 15px;
    }
    
    .modal-message {
      font-size: 16px;
      line-height: 1.5;
      margin-bottom: 25px;
      opacity: 0.9;
    }
    
    .modal-close-btn {
      background: white;
      color: #1a4d2e;
      border: none;
      padding: 12px 40px;
      border-radius: 25px;
      font-size: 16px;
      font-weight: bold;
      cursor: pointer;
      transition: transform 0.2s ease;
    }
    
    .modal-close-btn:hover {
      transform: scale(1.05);
    }
    
    /* Slider success state */
    .slider-btn.success {
      background: linear-gradient(90deg, #28a745, #20c997) !important;
    }
    
    .slider-btn.success span {
      opacity: 0;
    }
    
    /* Upload success state */
    .input-pill.uploaded {
      background: linear-gradient(180deg, #d4edda 0%, #c3e6cb 100%) !important;
      border-color: rgba(21, 87, 36, 0.3) !important;
    }
    
    .input-pill.uploaded .text {
      color: #155724 !important;
    }

    /* Video Modal */
    .video-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.9);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 10002;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
    }

    .video-modal.active {
      opacity: 1;
      visibility: visible;
    }

    .video-modal-content {
      position: relative;
      width: 90%;
      max-width: 900px;
      aspect-ratio: 16/9;
    }

    .video-modal-content iframe {
      width: 100%;
      height: 100%;
      border-radius: 10px;
    }

    .video-modal-close {
      position: absolute;
      top: -40px;
      right: 0;
      background: none;
      border: none;
      color: white;
      font-size: 36px;
      cursor: pointer;
      transition: transform 0.2s ease;
    }

    .video-modal-close:hover {
      transform: scale(1.2);
    }