/* ==========================================================================
   MOTOR INSURANCE DISCOVERY & POLICY PLATFORM - LIGHT THEME DESIGN SYSTEM (CSS3)
   Aesthetics: Sleek Modern Light Mode, Clean Typography (Outfit/Inter),
   Vibrant Blue-Indigo Gradients, Soft Elevated Cards, Smooth Micro-animations
   ========================================================================== */

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

:root {
  /* Color Palette - Modern Light Navy & Electric Blue Theme */
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-input: #ffffff;
  --surface-border: #e2e8f0;
  --surface-border-accent: #93c5fd;
  
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-glow: rgba(2, 132, 199, 0.18);
  --secondary: #4f46e5;
  --secondary-hover: #4338ca;
  --accent-gold: #d97706;
  --accent-green: #16a34a;
  --accent-danger: #dc2626;
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  --gradient-primary: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  --gradient-hero: radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.06) 0%, #f8fafc 70%);

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  background-image: var(--gradient-hero);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

/* Main Header */
.app-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.8rem 2rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

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

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.logo-title {
  font-size: 1.35rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-item {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-item:hover, .nav-item.active {
  color: var(--primary);
  background: rgba(2, 132, 199, 0.08);
}

/* Main Content Container */
.main-wrapper {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Card Component (Clean Modern Light Card) */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.glass-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.6rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
  color: #fff;
}

.btn-secondary {
  background: #f1f5f9;
  color: var(--text-primary);
  border: 1px solid var(--surface-border);
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.btn-success {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
}

.btn-lg {
  padding: 0.95rem 2.2rem;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background-color: var(--bg-input);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

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

.form-control::placeholder {
  color: #94a3b8;
  opacity: 0.7;
  font-weight: 400;
}

.form-control::-webkit-input-placeholder {
  color: #94a3b8;
  opacity: 0.7;
  font-weight: 400;
}

.form-control::-moz-placeholder {
  color: #94a3b8;
  opacity: 0.7;
  font-weight: 400;
}

.form-control:-ms-input-placeholder {
  color: #94a3b8;
  opacity: 0.7;
  font-weight: 400;
}

/* Big Reg Number Input */
.reg-input-wrapper {
  display: flex;
  gap: 12px;
  max-width: 580px;
  margin: 0 auto;
}

.reg-input {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  border: 2px solid var(--primary);
}

.reg-input::placeholder {
  font-weight: 400;
  letter-spacing: 1px;
  color: #94a3b8;
  opacity: 0.65;
}

/* Vehicle Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.spec-box {
  background: #f8fafc;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.spec-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  font-weight: 600;
}

.spec-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 4px;
}

/* Quote Cards Grid */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.quote-card {
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.quote-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.quote-card.featured {
  border: 2px solid var(--primary);
}

.badge-featured {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.insurer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.insurer-avatar {
  width: 48px;
  height: 48px;
  background: #f1f5f9;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--primary);
  font-size: 1.1rem;
  border: 1px solid var(--surface-border);
}

.insurer-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-tag {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin: 1rem 0 0.5rem;
}

.price-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cover-list {
  list-style: none;
  margin: 1.2rem 0;
  border-top: 1px solid var(--surface-border);
  padding-top: 1rem;
}

.cover-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.cover-item.included {
  color: var(--accent-green);
  font-weight: 500;
}

.cover-item.excluded {
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Comparison Table View */
.table-responsive {
  overflow-x: auto;
  margin-top: 1.5rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--surface-border);
}

.comparison-table th {
  background: #f1f5f9;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  font-weight: 700;
}

/* Addon Selection Module */
.addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.addon-card {
  background: #f8fafc;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.addon-card:hover {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.addon-card.selected {
  border-color: var(--primary);
  background: #f0f9ff;
}

.addon-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  margin-top: 2px;
}

.addon-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.addon-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.addon-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  margin-top: 6px;
}

/* Footer */
.app-footer {
  background: #ffffff;
  border-top: 1px solid var(--surface-border);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: auto;
  box-shadow: 0 -2px 8px rgba(15, 23, 42, 0.02);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-active {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-expired {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}
