/* Reset and Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f7f9fc;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-logo i { margin-right: 0.5rem; font-size: 1.8rem; }

.nav-links { display: flex; gap: 2rem; }

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.nav-links a:hover { opacity: 0.8; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%);
  color: white;
  padding: 120px 20px 80px;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content { max-width: 700px; }

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Buttons */
.cta-button {
  background: #d4af37;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 200px;
  justify-content: center;
  text-decoration: none;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
  background: #c7a142;
}

.cta-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid white;
}

.cta-button.secondary:hover {
  background: white;
  color: #2c3e50;
}

/* Forms */
.form-section {
  padding: 60px 20px;
  background: white;
}

.form-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.form-section > .container > p {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}

.form-card {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #2c3e50;
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #666;
}

/* Steps / How It Works */
.steps-section {
  padding: 60px 20px;
  background: #f8fafc;
}

.steps-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.step { text-align: center; padding: 2rem; }

.step-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step-icon i { font-size: 2rem; color: white; }
.step h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: #333; }
.step p { color: #666; line-height: 1.6; }

/* Tesla Link Section */
.tesla-section {
  padding: 60px 20px;
  background: white;
  text-align: center;
}

.tesla-card {
  max-width: 500px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  background: white;
}

.tesla-card h3 { margin-bottom: 1rem; color: #333; }

.tesla-card .status {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.tesla-card .status.linked {
  background: #d4edda;
  color: #155724;
}

.tesla-card .status.unlinked {
  background: #f8f9fa;
  color: #666;
}

/* Notification mockup */
.notification-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.05);
  max-width: 340px;
  margin: 2rem auto 0;
  text-align: left;
}

.notification-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
}

.notification-header i { color: #d4af37; }

.notification-content {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.notification-content i {
  color: #d4af37;
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.notification-text strong {
  display: block;
  color: #2c3e50;
  margin-bottom: 4px;
  font-weight: 600;
}

.notification-text p {
  color: #666;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 360px;
  margin: 0 auto 2rem;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.stepper-step.active,
.stepper-step.completed { opacity: 1; }

.stepper-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e1e5e9;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.stepper-step.active .stepper-circle {
  background: #d4af37;
  color: white;
}

.stepper-step.completed .stepper-circle {
  background: #28a745;
  color: white;
}

.stepper-step span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #666;
}

.stepper-step.active span { color: #333; }
.stepper-step.completed span { color: #28a745; }

.stepper-line {
  width: 60px;
  height: 3px;
  background: #e1e5e9;
  margin: 0 0.75rem;
  margin-bottom: 1.2rem;
  border-radius: 2px;
  transition: background 0.3s ease;
}

.stepper-line.completed { background: #28a745; }

/* Step card content */
.step-title {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.step-desc {
  text-align: center;
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.step-fine-print {
  text-align: center;
  color: #999;
  font-size: 0.8rem;
  margin-top: 1rem;
}

.tesla-btn {
  background: #1a2332 !important;
}

.tesla-btn:hover {
  background: #2c3e50 !important;
  box-shadow: 0 10px 20px rgba(26, 35, 50, 0.3) !important;
}

/* Success banner */
.success-banner {
  text-align: center;
  padding: 1.5rem;
}

.success-banner i {
  font-size: 3rem;
  color: #28a745;
  margin-bottom: 0.75rem;
  display: block;
}

.success-banner h3 {
  font-size: 1.5rem;
  color: #155724;
  margin-bottom: 0.25rem;
}

.success-banner p { color: #666; margin: 0.25rem 0; }

.success-detail {
  font-size: 0.9rem;
  margin-top: 0.75rem !important;
}

/* Switch vehicle button */
.switch-vehicle-btn {
  background: none;
  border: 1px solid #ccc;
  color: #666;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  margin-top: 1rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.switch-vehicle-btn:hover {
  border-color: #1a2332;
  color: #1a2332;
}

/* Vehicle selection */
.vehicle-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  width: 100%;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
}

.vehicle-option:hover {
  border-color: #1a2332;
  background: #f8fafc;
}

.vehicle-option:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.vehicle-option i {
  font-size: 1.5rem;
  color: #1a2332;
}

/* Consent text */
.consent-text {
  font-size: 0.75rem;
  color: #999;
  line-height: 1.5;
  margin-top: 1rem;
  text-align: center;
}

.consent-text a {
  color: #666;
  text-decoration: underline;
}

.consent-text a:hover { color: #333; }

/* Success / Error messages */
.message {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: none;
}

.message.success { background: #d4edda; color: #155724; }
.message.error { background: #f8d7da; color: #721c24; }
.message.visible { display: block; }

/* Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #d4af37;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: white;
  padding: 1.5rem 0;
  text-align: center;
}

.footer p { color: #ccc; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 768px) {
  .navbar { position: relative; top: auto; }

  .hero {
    padding: 60px 20px 40px;
    min-height: auto;
  }

  .hero h1 { font-size: 2.2rem; }

  .nav-links { display: none; }

  .steps { grid-template-columns: 1fr; }
}
