/* Kingwolf Cargo - Styles */
/* Color Palette based on logo: Dark Navy (#0f172a), Cyan (#22d3ee), White */

:root {
  --color-primary: #0f172a;
  --color-primary-light: #1e293b;
  --color-secondary: #22d3ee;
  --color-secondary-dark: #06b6d4;
  --color-accent: #f59e0b;
  --color-white: #ffffff;
  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-400: #94a3b8;
  --color-gray-500: #64748b;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1e293b;
  --color-gray-900: #0f172a;
  --color-success: #10b981;
  --color-error: #ef4444;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-gray-700);
  background-color: var(--color-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-gray-900);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--color-secondary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--color-gray-300);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  background: var(--color-gray-50);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-white:hover {
  background: var(--color-gray-100);
  transform: translateY(-1px);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--color-white);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-outline-white:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-submit {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-submit:hover {
  background: var(--color-secondary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-primary);
  padding: 1rem 2rem;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 45px;
  width: auto;
}

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

.nav-links a {
  color: var(--color-gray-300);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-secondary);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-white);
  transition: all 0.3s ease;
}

@media (max-width: 900px) {
  .nav-links, .navbar .btn-primary {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding: 10rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2322d3ee' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(34, 211, 238, 0.15);
  color: var(--color-secondary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-size: 3.5rem;
  font-weight: 800;
}

.hero h1 .highlight {
  color: var(--color-secondary);
}

.hero-sub {
  color: var(--color-gray-300);
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.hero-features span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-gray-300);
  font-size: 0.95rem;
}

.check-icon {
  width: 20px;
  height: 20px;
  color: var(--color-secondary);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero {
    padding: 8rem 1.5rem 4rem;
  }

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

  .hero-sub {
    font-size: 1rem;
  }

  .hero-features {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
}

/* Stats Section */
.stats {
  background: var(--color-secondary);
  padding: 3rem 2rem;
}

.stats-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat h3 {
  color: var(--color-primary);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.stat p {
  color: var(--color-primary);
  font-weight: 500;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat h3 {
    font-size: 2rem;
  }
}

/* Quote Form Section */
.quote-form {
  padding: 5rem 2rem;
  background: var(--color-gray-50);
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 3rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h2 {
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--color-gray-500);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-gray-700);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-gray-400);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  text-align: center;
  color: var(--color-gray-500);
  font-size: 0.9rem;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .form-container {
    padding: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Features Section */
.features {
  padding: 5rem 2rem;
  background: var(--color-white);
}

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

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-sub {
  color: var(--color-gray-500);
  font-size: 1.15rem;
  margin-top: 0.75rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--color-gray-50);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-secondary);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--color-gray-600);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* How It Works Section */
.how-it-works {
  padding: 5rem 2rem;
  background: var(--color-gray-50);
}

.how-container {
  max-width: 1000px;
  margin: 0 auto;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 1.5rem;
}

.step-num {
  width: 50px;
  height: 50px;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.step h3 {
  margin-bottom: 0.75rem;
}

.step p {
  color: var(--color-gray-600);
}

.step-line {
  flex: 0 0 60px;
  height: 2px;
  background: var(--color-gray-300);
  margin-top: 25px;
}

@media (max-width: 768px) {
  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step-line {
    width: 2px;
    height: 40px;
    flex: 0 0 40px;
    margin: 0;
  }
}

/* Credit Section */
.credit-section {
  padding: 5rem 2rem;
  background: var(--color-primary);
}

.credit-container {
  max-width: 800px;
  margin: 0 auto;
}

.credit-intro {
  text-align: center;
}

.credit-intro h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.credit-intro > p {
  color: var(--color-gray-300);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.credit-benefits {
  list-style: none;
  display: inline-block;
  text-align: left;
  margin-bottom: 2rem;
}

.credit-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-gray-300);
  margin-bottom: 0.75rem;
}

.credit-benefits .check-icon {
  color: var(--color-secondary);
  flex-shrink: 0;
}

/* CTA Section */
.cta {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  text-align: center;
}

.cta-container {
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.cta p {
  color: var(--color-primary);
  opacity: 0.85;
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta .btn-white {
  background: var(--color-primary);
  color: var(--color-white);
}

.cta .btn-white:hover {
  background: var(--color-primary-light);
}

.cta .btn-outline-white {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.cta .btn-outline-white:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Footer */
footer {
  background: var(--color-gray-900);
  padding: 4rem 2rem 2rem;
}

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

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-company {
  color: var(--color-gray-300);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.footer-desc {
  color: var(--color-gray-500);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-links a,
.footer-links p {
  display: block;
  color: var(--color-gray-400);
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-secondary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--color-gray-800);
  text-align: center;
}

.footer-bottom p {
  color: var(--color-gray-500);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Credit Wizard Modal */
.wizard-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 2rem;
  overflow-y: auto;
}

.wizard-overlay.active {
  display: flex;
}

.wizard-modal {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.wizard-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: var(--color-gray-100);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-600);
  transition: all 0.2s ease;
}

.wizard-close:hover {
  background: var(--color-gray-200);
  color: var(--color-gray-900);
}

.wizard-header {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--color-gray-200);
  text-align: center;
}

.wizard-header h2 {
  margin-bottom: 1.5rem;
}

.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 1rem;
}

.progress-step {
  width: 36px;
  height: 36px;
  background: var(--color-gray-200);
  color: var(--color-gray-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.progress-step.active {
  background: var(--color-secondary);
  color: var(--color-primary);
}

.progress-step.completed {
  background: var(--color-success);
  color: var(--color-white);
}

.progress-line {
  width: 40px;
  height: 2px;
  background: var(--color-gray-200);
}

.wizard-step-title {
  color: var(--color-gray-600);
  font-size: 0.95rem;
}

#creditForm {
  padding: 2rem;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

.wizard-step .form-row {
  margin-bottom: 1rem;
}

.wizard-step .form-group {
  margin-bottom: 1rem;
}

.wizard-step .form-row .form-group {
  margin-bottom: 0;
}

.form-section-title {
  color: var(--color-gray-700);
  font-size: 1rem;
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-gray-200);
}

.step-description {
  color: var(--color-gray-600);
  margin-bottom: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--color-gray-700);
  cursor: pointer;
  font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--color-secondary);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .checkbox-group {
    grid-template-columns: 1fr;
  }
}

.review-section h4 {
  margin-bottom: 1rem;
}

.review-section > p {
  color: var(--color-gray-600);
  margin-bottom: 1.5rem;
}

.review-summary {
  background: var(--color-gray-50);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.review-summary h5 {
  color: var(--color-gray-700);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.review-summary p {
  color: var(--color-gray-900);
  margin-bottom: 1rem;
}

.review-summary p:last-child {
  margin-bottom: 0;
}

.wizard-buttons {
  display: flex;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-gray-200);
  margin-top: 1.5rem;
}

.wizard-buttons .btn-secondary {
  flex: 1;
}

.wizard-buttons .btn-primary {
  flex: 2;
}

@media (max-width: 640px) {
  .wizard-modal {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }

  #creditForm {
    padding: 1.5rem;
  }

  .wizard-progress {
    transform: scale(0.85);
  }
}

/* Success/Error States */
.form-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--color-success);
  color: var(--color-success);
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 1rem;
}

.form-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--color-error);
  color: var(--color-error);
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 1rem;
}

/* Loading State */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.wizard-overlay.active {
  animation: fadeIn 0.3s ease;
}

.wizard-overlay.active .wizard-modal {
  animation: slideUp 0.3s ease;
}
