@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

* {
  font-family: "Inter", sans-serif;
}

.gradient-bg {
  background: linear-gradient(
    135deg,
    #f8fafc 0%,
    #e2e8f0 50%,
    #cbd5e1 100%
  );
}

.card-glow {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.step-indicator {
  position: relative;
}

.step-indicator::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #1e40af, #3b82f6, #06b6d4);
  transform: translateY(-50%);
  z-index: 1;
}

.step-indicator:last-child::after {
  display: none;
}

.step-indicator.active::after {
  background: linear-gradient(90deg, #1e40af, #3b82f6, #06b6d4);
}

.step-indicator.completed::after {
  background: linear-gradient(90deg, #1e40af, #3b82f6, #06b6d4);
}

.motor-card,
.battery-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.motor-card::before,
.battery-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.motor-card:hover::before,
.battery-card:hover::before {
  left: 100%;
}

.motor-card:hover,
.battery-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.motor-card.selected,
.battery-card.selected,
.vehicle-card.selected {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 40px rgba(30, 64, 175, 0.3);
  border-color: #1e40af;
}

.vehicle-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.vehicle-card:hover:not(.opacity-50) {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.floating-label {
  position: relative;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label select:focus + label,
.floating-label select:not([value=""]) + label {
  transform: translateY(-24px) scale(0.85);
  color: #1e40af;
}

.floating-label.focused label {
  transform: translateY(-24px) scale(0.85);
  color: #1e40af;
}

#phone::placeholder {
  color: transparent;
}

.border-red-500 {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.validation-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.validation-error.show {
  display: block;
}

.field-valid {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.field-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.validation-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
}

.validation-icon.valid {
  color: #10b981;
}

.validation-icon.invalid {
  color: #ef4444;
}

.error-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #ef4444;
  color: white;
  padding: 12px 16px;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  max-width: 300px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s ease;
}

.error-notification.show {
  opacity: 1;
  visibility: visible;
}

.error-notification i {
  font-size: 16px;
  flex-shrink: 0;
}

.floating-label label {
  position: absolute;
  left: 16px;
  top: 16px;
  color: #6b7280;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  background: white;
  padding: 0 4px;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid #1e40af;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

.slide-in {
  animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.bounce-in {
  animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.progress-bar {
  background: linear-gradient(90deg, #f59e0b, #eab308);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
  position: relative;
  overflow: hidden;
}

.progress-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.progress-container {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 0;
  padding: 4px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gender-option {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.gender-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.gender-option.selected {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
  border-color: #1e40af;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background-color: white;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 0;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 20px;
}

.close:hover {
  color: #1e40af;
}

.submit-success {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.4);
}

.success-icon {
  animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.payment-success {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.4);
  animation: paymentSuccess 0.8s ease-out;
}

@keyframes paymentSuccess {
  0% {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 25px 50px rgba(16, 185, 129, 0.6);
  }
  100% {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.4);
  }
}

.success-checkmark {
  animation: checkmarkBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkmarkBounce {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #10b981;
  animation: confetti-fall 3s linear infinite;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

.modal-success {
  animation: modalSuccess 0.5s ease-out;
}

@keyframes modalSuccess {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.step-indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
}

.step-indicator-dot.active {
  background: linear-gradient(45deg, #f59e0b, #eab308);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
  transform: scale(1.2);
}

.step-indicator-dot.completed {
  background: linear-gradient(45deg, #10b981, #059669);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.step-indicator-dot.completed::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 8px;
  font-weight: bold;
}

.success-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease-out;
}

.success-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 0;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  animation: successModalSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  animation: successPulse 0.6s ease-out;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

.success-icon i {
  font-size: 2.5rem;
  color: white;
  animation: checkmarkBounce 0.8s ease-out 0.3s both;
}

.success-title {
  font-size: 2rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #10b981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.success-message {
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.ticket-number-section {
  background: #f8f9fa;
  border: 2px solid #e5e7eb;
  border-radius: 0;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
}

.ticket-label {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 10px;
  font-weight: 500;
}

.ticket-number-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.ticket-number {
  font-size: 24px;
  font-weight: bold;
  color: #1e40af;
  letter-spacing: 1px;
  font-family: "Courier New", monospace;
}

.copy-btn {
  background: #374151;
  color: white;
  border: none;
  border-radius: 0;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.copy-btn:hover {
  background: #1f2937;
  transform: scale(1.05);
}

.copy-btn:active {
  transform: scale(0.95);
}

.ticket-note {
  font-size: 12px;
  color: #9ca3af;
  margin: 0;
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.success-btn {
  padding: 0.75rem 2rem;
  border: 2px solid #10b981;
  background: transparent;
  color: #10b981;
  border-radius: 0;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.success-btn:hover {
  background: #10b981;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.success-btn.primary {
  background: #10b981;
  color: white;
}

.success-btn.primary:hover {
  background: #059669;
  transform: translateY(-2px);
}

@keyframes successModalSlideIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.terms-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.terms-modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 0;
  border-radius: 0;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.terms-header {
  background: #f8f9fa;
  color: #374151;
  padding: 24px;
  border-radius: 0;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.terms-body {
  padding: 24px;
  line-height: 1.6;
}

.terms-section {
  margin-bottom: 20px;
}

.terms-section h4 {
  color: #374151;
  font-weight: 600;
  margin-bottom: 8px;
}

.terms-section p {
  color: #6b7280;
  margin-bottom: 12px;
}

.highlight-box {
  background: #fef3c7;
  border: 2px solid #f59e0b;
  border-radius: 0;
  padding: 16px;
  margin: 16px 0;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.1);
}

.highlight-box h4 {
  color: #92400e;
  font-weight: 700;
  margin-bottom: 12px;
}

.highlight-box p {
  color: #78350f;
  margin-bottom: 8px;
}

.highlight-box strong {
  color: #92400e;
  font-weight: 700;
}

.highlight-box .icon {
  color: #6b7280;
  font-size: 18px;
  margin-right: 8px;
}

.terms-footer {
  padding: 20px 24px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.terms-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #374151;
}

.terms-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1e40af;
}

.terms-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.terms-btn {
  padding: 10px 20px;
  border-radius: 0;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.terms-btn.accept {
  background: #374151;
  color: white;
  border: 1px solid #374151;
}

.terms-btn.accept:hover:not(:disabled) {
  background: #1f2937;
  border-color: #1f2937;
}

.terms-btn.accept:disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  border-color: #d1d5db;
}

.terms-btn.decline {
  background: transparent;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.terms-btn.decline:hover {
  background: #f9fafb;
  color: #374151;
  border-color: #9ca3af;
}

@media (max-width: 640px) {
  .terms-modal-content {
    margin: 2% auto;
    width: 95%;
  }

  .terms-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .terms-buttons {
    justify-content: flex-end;
  }
}
