html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #003d7a;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Navbar Logo Styles */
.navbar-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 576px) {
  .navbar-logo {
    height: 28px;
  }
}

/* Breadcrumb Navigation Styles */
.breadcrumb-nav {
  margin: 1rem 0 2rem 0;
  padding: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: #6c757d;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

/* Override Bootstrap's breadcrumb separators */
.breadcrumb-item + .breadcrumb-item::before {
  display: none;
}

.breadcrumb-item:not(:last-child)::after {
  content: "/";
  margin: 0 0.5rem;
  color: #dee2e6;
  font-weight: 400;
}

.breadcrumb-item:last-child {
  color: #495057;
  font-weight: 600;
}

.breadcrumb-link {
  color: #003d7a;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

.breadcrumb-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.breadcrumb-link:focus {
  outline: 2px solid #003d7a;
  outline-offset: 2px;
  border-radius: 4px;
}

@media (max-width: 576px) {
  .breadcrumb {
    font-size: 0.85rem;
  }
  
  .breadcrumb-item:not(:last-child)::after {
    margin: 0 0.3rem;
  }
}

/* Enhanced VIN Check Hero Section - South Germany Theme */
.vincheck-hero {
  background: linear-gradient(135deg, #003d7a 0%, #0056b3 50%, #0066cc 100%);
  padding: 80px 0 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.vincheck-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 61, 122, 0.95) 0%, rgba(0, 86, 179, 0.95) 50%, rgba(0, 102, 204, 0.95) 100%);
  pointer-events: none;
}

.vincheck-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

/* Fullwidth modifier for hero */
.vincheck-hero--fullwidth {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.vincheck-header {
  position: relative;
  z-index: 2;
}

.vincheck-header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.02em;
}

.vincheck-header p {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.vincheck-form {
  max-width: 500px;
  margin: 0 auto;
  background: none;
  position: relative;
  z-index: 2;
}

.vincheck-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-align: center;
  color: #ffffff;
  font-size: 1.1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.vincheck-input-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.vincheck-input-group:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
}

.vincheck-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 1rem 0.75rem;
  font-size: 1.1rem;
  background: transparent;
  color: #333;
  font-weight: 500;
}

.vincheck-input::placeholder {
  color: #666;
  font-weight: 400;
}

.vincheck-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.vincheck-search-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.vincheck-btn {
  width: 100%;
  background: #ffffff;
  color: #003d7a;
  border: 2px solid #ffffff;
  border-radius: 12px;
  padding: 1rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vincheck-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: #f8f8f8;
  color: #0056b3;
  border-color: #f8f8f8;
}

.vincheck-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1rem;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 1rem 1.5rem;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Sample Report Link */
.sample-report-link {
  margin-top: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.sample-report-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-family: inherit;
}

.sample-report-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  color: #fff;
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.4);
}

.sample-report-btn svg {
  width: 18px;
  height: 18px;
}

.sample-report-text {
  color: #ffffff;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Enhanced How It Works Section */
.vincheck-howitworks {
  background: #fff;
  padding: 80px 0 60px 0;
  text-align: center;
}

.vincheck-howitworks h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #2d3748;
  letter-spacing: -0.02em;
}

.vincheck-howitworks p {
  color: #718096;
  font-size: 1.2rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.vincheck-steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.vincheck-step {
  max-width: 300px;
  flex: 1 1 250px;
  background: #fff;
  margin: 0 10px;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.vincheck-step:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.vincheck-step-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #003d7a 0%, #0056b3 100%);
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
}

.vincheck-step-icon svg {
  stroke: #fff;
  width: 40px;
  height: 40px;
}

.vincheck-step h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #2d3748;
}

.vincheck-step p {
  color: #718096;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Footer */
.vincheck-footer {
  background: #fff;
  text-align: center;
  padding: 24px 0 0 0;
  color: #757575;
  font-size: 0.95rem;
  border-top: 1px solid #eee;
  margin-top: 40px;
}

/* Toast Notification Styles */
.toast-container {
  z-index: 1055;
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
}

#toast-notification {
  min-width: 300px;
  max-width: 400px;
}

#toast-notification.toast-error {
  background-color: #dc3545;
}

#toast-notification.toast-success {
  background-color: #198754;
}

#toast-notification.toast-warning {
  background-color: #ffc107;
  color: #000;
}

#toast-notification.toast-info {
  background-color: #0dcaf0;
}

.toast-body {
  font-weight: 500;
  font-size: 0.95rem;
}

.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

@media (max-width: 576px) {
  .toast-container {
    padding: 0.5rem !important;
  }
  
  #toast-notification {
    min-width: 280px;
    max-width: calc(100vw - 1rem);
  }
}

@media (max-width: 900px) {
  .vincheck-steps {
    flex-direction: column;
    gap: 24px;
  }
  .vincheck-step {
    margin: 0 auto;
  }
}

/* --- VIN Report Page Styles --- */
.report-container {
  margin-bottom: 40px;
}

/* Vehicle Summary Container - Responsive Layout */
.vehicle-summary-container {
  position: relative;
}

.vehicle-summary-container.no-image .vehicle-image-column {
  display: none;
}

.vehicle-summary-container.no-image .vehicle-info-column,
.vehicle-summary-container.no-image .manufacturing-info-column {
  flex: 0 0 50%;
  max-width: 50%;
}

/* Vehicle image placeholder */
.report-vehicle-image {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
}

.report-vehicle-image img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.report-vehicle-image:empty::after {
  content: "Vehicle image not available";
  color: #6c757d;
  font-style: italic;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .vehicle-summary-container.no-image .vehicle-info-column,
  .vehicle-summary-container.no-image .manufacturing-info-column {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .report-vehicle-image {
    min-height: 150px;
  }
}

@media (max-width: 576px) {
  .vehicle-summary-container .vehicle-info-column,
  .vehicle-summary-container .manufacturing-info-column {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Header */
.report-header .report-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}
.report-header .report-vin {
  color: #757575;
  font-size: 0.95rem;
}
.report-back svg {
  display: block;
}

/* Card base */
.report-card,
.report-subcard {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
}

.report-vehicle-name {
  font-size: 1.25rem;
  font-weight: 700;
}
.report-vehicle-class {
  color: #757575;
  font-size: 0.95rem;
}

/* Key-value list */
.report-kv-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.report-kv-list li {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}
.report-kv-list li span {
  font-weight: 600;
  color: #212121;
  margin-right: 0.25rem;
}

/* --- Upsell Section (Full History Report) --- */
.report-upsell {
  background: #eaf2ff;
  border: none;
  border-radius: 12px;
  padding: 24px 24px 20px 24px;
  margin-bottom: 24px;
  box-shadow: none;
  display: block;
}
.upsell-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.upsell-main {
  flex: 1 1 0%;
  min-width: 0;
}
.upsell-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}
.upsell-title-main {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.upsell-title-icon {
  display: flex;
  align-items: center;
  margin-right: 0.25rem;
  font-size: 1.2rem;
}
.upsell-title-text {
  font-weight: 700;
  color: #1c2a4a;
  font-size: 1.1rem;
}
.upsell-badge {
  background: #4c84ff;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 2px 10px;
  margin-left: 0.5rem;
  display: inline-block;
}
.upsell-desc {
  color: #1c2a4a;
  font-size: 1rem;
  margin-bottom: 1.1rem;
}
.upsell-features {
  display: flex;
  gap: 2.5rem;
  margin: 0 0 1.2rem 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}
.upsell-features li {
  display: flex;
  align-items: center;
  color: #1c2a4a;
  font-size: 1rem;
  font-weight: 500;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.upsell-feature-icon {
  display: flex;
  align-items: center;
  margin-right: 0.3rem;
  font-size: 1.1rem;
}
.upsell-action-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 0.2rem;
}
.upsell-btn {
  background: #003d7a;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.4rem;
  text-decoration: none;
  transition: background 0.18s;
  box-shadow: 0 1px 2px rgba(44, 62, 80, 0.04);
  display: inline-block;
  text-align: center;
}
.upsell-btn:hover {
  background: #0056b3;
  color: #fff;
}

/* Responsive adjustments for upsell section */
@media (max-width: 900px) {
  .upsell-flex {
    flex-direction: column;
    gap: 16px;
  }
  .upsell-main {
    width: 100%;
  }
  .upsell-features {
    flex-direction: column;
    gap: 1rem;
  }
  .upsell-action-row {
    flex-direction: column;
    gap: 0.7rem;
    align-items: stretch;
  }
}
@media (max-width: 600px) {
  .report-upsell {
    padding: 14px 6px 12px 6px;
    border-radius: 8px;
  }
  .upsell-title-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.3rem;
  }
  .upsell-title-main {
    flex-shrink: 0;
  }
  .upsell-badge {
    margin-left: 0;
    margin-top: 0.2rem;
  }
  .upsell-desc {
    font-size: 0.95rem;
  }
  .upsell-features {
    flex-direction: column;
    gap: 0.7rem;
    font-size: 0.97rem;
  }
  .upsell-features li {
    font-size: 0.97rem;
  }
  .upsell-action-row {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
  .upsell-btn {
    width: 100%;
    font-size: 1rem;
    padding: 0.7rem 0;
  }
}

/* Report Tabs */
.report-tabs {
  background: #f7f7fa;
  border-radius: 10px;
  border: 1.5px solid #ececec;
  padding: 0.4rem 0.7rem 0.4rem 0.7rem;
  margin-bottom: 1.5rem;
  gap: 0.5rem;
}
.report-tabs .nav-item {
  margin-right: 0.2rem;
}
.report-tabs .nav-link {
  border: none;
  background: transparent;
  color: #757575;
  font-weight: 600;
  font-size: 1.08rem;
  border-radius: 7px;
  padding: 0.45rem 1.2rem;
  margin-right: 0.1rem;
  transition: background 0.15s, color 0.15s;
}
.report-tabs .nav-link.active {
  background: #fff;
  color: #111;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(44,62,80,0.03);
}
.report-tabs .nav-link:focus {
  outline: 2px solid #4c84ff;
  outline-offset: 1px;
}

/* Subcard */
.report-subcard-title {
  font-size: 1rem;
  font-weight: 600;
}

@media (max-width: 576px) {
  .report-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.5rem;
  }
}

/* Report definition list for vehicle/manufacturing info */
.report-dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  row-gap: 0.4rem;
  column-gap: 1.5rem;
  margin: 0;
  font-size: 1rem;
}
.report-dl dt {
  color: #757575;
  font-weight: 500;
  text-align: left;
  margin: 0;
  padding: 0;
}
.report-dl dd {
  color: #111;
  font-weight: 600;
  margin: 0;
  padding: 0 0 0.1rem 0;
}
.report-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Vehicle & Engine Tab Cards */
.report-cards-flex {
  display: flex;
  gap: 2rem;
  margin-bottom: 0.5rem;
}
.report-subcard {
  background: #fff;
  border: 1.5px solid #ececec;
  border-radius: 14px;
  padding: 2rem 2rem 1.5rem 2rem;
  flex: 1 1 0;
  min-width: 0;
  box-shadow: none;
  margin-bottom: 0;
}
.report-subcard-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #111;
}
@media (max-width: 900px) {
  .report-cards-flex {
    flex-direction: column;
    gap: 1.2rem;
  }
}

/* --- Safety Tab Styles --- */
.safety-section {
  padding: 1rem 0 0.5rem 0;
}
.safety-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.safety-desc {
  color: #757575;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.safety-flex {
  display: flex;
  gap: 2rem;
}
.safety-left {
  flex: 1 1 0;
}
.safety-right {
  flex: 1 1 0;
}
.safety-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #111;
}
.star-row, .stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.star-row .star-score {
  margin-left: 0.4rem;
  font-weight: 600;
  color: #111;
}
/* simple star via emoji */
.stars::before {
  content: "★★★★★";
  letter-spacing: 2px;
  background: linear-gradient(90deg, #ffc107 calc(var(--score, 5) / 5 * 100%), #e0e0e0 calc(var(--score, 5) / 5 * 100%));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1rem;
}
/* JS can set --score -- but fallback through data attribute */
.stars[data-score="5"] { --score:5; }
.stars[data-score="4"] { --score:4; }
.stars[data-score="3"] { --score:3; }
.stars[data-score="2"] { --score:2; }
.stars[data-score="1"] { --score:1; }

.safety-info-cards {
  display: flex;
  gap: 1.2rem;
}
.safety-info-card {
  background: #f5f7fc;
  border-radius: 10px;
  padding: 1.2rem 1.8rem;
  text-align: center;
  min-width: 110px;
}
.safety-info-card .info-number {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: #111;
}
.safety-info-card .info-label {
  font-size: 0.9rem;
  color: #757575;
}
.safety-tech-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}
.safety-tech-list li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.tech-badge {
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 2px 8px;
}
.tech-badge.standard {
  background: #ecfdf3;
  color: #22c55e;
}
.tech-badge.optional {
  background: #fef9e8;
  color: #f59e0b;
}
.tech-badge.non-standard {
  background: #fef9e8;
  color: #f59e0b;
}

@media (max-width: 900px) {
  .safety-flex {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* Additional Safety Section Styles */
.overall-rating-card {
  background: #ecfdf3;
  border: 1px solid #d1fad4;
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.overall-rating-label {
  font-weight: 600;
  color: #111;
  font-size: 1rem;
}
.overall-rating-card .stars::before {
  font-size: 1.25rem;
}
.overall-rating-card .star-score {
  font-size: 1rem;
  font-weight: 600;
  color: #111;
}

.crash-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.crash-media-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}
.crash-media-caption {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111;
}
.crash-media-caption small {
    font-weight: 500;
    color: #003d7a;
    margin-left: 0.2rem;
}

/* --- Recall Tab Styles --- */
.recall-section {
  padding: 1rem 0 0.5rem 0;
}
.recall-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.recall-desc {
  color: #757575;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Recall Count Alert with Icon */
.recall-count-alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.recall-alert-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.recall-count-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #dc2626;
}

.recall-card {
  border: 1.5px solid #ececec;
  border-radius: 12px;
  padding: 1.6rem 1.6rem 1.4rem 1.6rem;
  margin-bottom: 1.5rem;
}
.recall-badge-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}
.recall-badge {
  background: #dc2626;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  padding: 4px 12px;
}
.recall-date {
  color: #757575;
  font-size: 0.85rem;
}
.recall-component {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #111;
}
.recall-subheading {
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  color: #111;
}
.recall-text {
  font-size: 0.95rem;
  margin: 0 0 0.6rem 0;
  color: #374151;
  line-height: 1.5;
}
.recall-note {
  background: #eef7ff;
  border: 1px solid #cfe2ff;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: #1c2a4a;
}

/* --- Complaint Tab Styles --- */
.complaint-section { padding: 1rem 0 0.5rem 0; }
.complaint-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.3rem; }
.complaint-desc { color: #757575; font-size: 0.95rem; margin-bottom: 0.8rem; }
.complaint-count { font-size: 0.95rem; margin-bottom: 1rem; }
.complaint-card { border: 1.5px solid #ececec; border-radius: 12px; padding: 1.6rem 1.6rem 1.4rem 1.6rem; margin-bottom: 1.5rem; }
.complaint-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.complaint-id { background: #fefce8; color: #ca8a04; font-size: 0.8rem; font-weight: 600; border-radius: 6px; padding: 3px 8px; }
.complaint-filed-date { color: #757575; font-size: 0.85rem; }
.complaint-component { font-size: 1rem; font-weight: 700; margin-bottom: 0.6rem; color: #111; }
.complaint-subheading { font-size: 0.93rem; font-weight: 700; margin-top: 0.75rem; margin-bottom: 0.25rem; color: #111; }
.complaint-text { font-size: 0.95rem; margin: 0 0 0.35rem 0; color: #1c2a4a; }
.complaint-viewall-btn { background: #ffffff; border: 1.5px solid #003d7a; color: #003d7a; border-radius: 8px; font-weight: 600; font-size: 0.95rem; padding: 0.5rem 1.4rem; text-decoration: none; transition: background 0.15s, color 0.15s; }
.complaint-viewall-btn:hover { background: #003d7a; color: #fff; }
.complaint-note { background: #eef7ff; border: 1px solid #cfe2ff; border-radius: 8px; padding: 0.85rem 1rem; font-size: 0.9rem; color: #1c2a4a; margin-top: 1rem; }

/* --- AI Summary Tab Styles --- */
.ai-summary-section {
    padding: 1rem 0 0.5rem 0;
}

.ai-summary-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.ai-summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.25rem;
}

.ai-summary-header-content {
    flex: 1;
}

.ai-summary-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: #111;
}

.ai-summary-desc {
    color: #757575;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

.ai-summary-text {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.ai-summary-text p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #1e293b;
}

.ai-summary-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.ai-summary-strengths,
.ai-summary-concerns {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.ai-summary-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ai-summary-section-icon {
    flex-shrink: 0;
}

.ai-summary-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #111;
}

.ai-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai-summary-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #374151;
}

.ai-summary-list li:last-child {
    margin-bottom: 0;
}

.ai-summary-list li svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.ai-summary-recommendation {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.ai-summary-recommendation-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-summary-recommendation-content {
    flex: 1;
}

.ai-summary-recommendation-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: #1e40af;
}

.ai-summary-recommendation-text {
    margin: 0;
    font-size: 0.95rem;
    color: #1e40af;
    line-height: 1.4;
}

.ai-summary-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ai-summary-stat {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ai-summary-stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.ai-summary-stat-label {
    font-size: 0.9rem;
    color: #757575;
    font-weight: 500;
}

/* Stat color variations */
.ai-summary-stat-positive .ai-summary-stat-number {
    color: #22c55e;
}

.ai-summary-stat-danger .ai-summary-stat-number {
    color: #ef4444;
}

.ai-summary-stat-warning .ai-summary-stat-number {
    color: #f59e0b;
}

.ai-summary-stat-neutral .ai-summary-stat-number {
    color: #003d7a;
}

.ai-summary-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fffbeb;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

.ai-summary-disclaimer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-summary-disclaimer-content {
    flex: 1;
}

.ai-summary-disclaimer-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #92400e;
}

.ai-summary-disclaimer-text {
    margin: 0;
    font-size: 0.9rem;
    color: #92400e;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .ai-summary-points {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .ai-summary-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .ai-summary-header {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .ai-summary-icon {
        margin-top: 0.25rem;
    }
}

@media (max-width: 576px) {
    .ai-summary-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .ai-summary-text {
        padding: 1.25rem;
    }
    
    .ai-summary-strengths,
    .ai-summary-concerns {
        padding: 1.25rem;
    }
    
    .ai-summary-recommendation,
    .ai-summary-disclaimer {
        padding: 1rem 1.25rem;
    }
}

/* --- Custom Recall Tab Highlight Styles --- */
.recall-consequence {
  color: #dc2626;
  font-weight: 600;
  background: #fef2f2;
  border-left: 4px solid #dc2626;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.recall-remedy {
  color: #22c55e;
  font-weight: 600;
  background: #ecfdf3;
  border-left: 4px solid #22c55e;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.recall-contact {
  background: #f7f7fa;
  border: 1px solid #e0e7ef;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: #1c2a4a;
  font-size: 0.97rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.recall-contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
  color: #003d7a;
}
.recall-contact-content {
  flex: 1;
}

.vincheck-hero-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
  .vincheck-hero-title {
    font-size: 1rem;
  }
}

@media (max-width: 900px) {
  .vehicle-summary-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 8px;
    padding-right: 8px;
  }
  .vehicle-summary-container .row {
    flex-direction: column !important;
    display: flex;
    align-items: center;
    width: 100%;
  }
  .vehicle-summary-container .vehicle-image-column,
  .vehicle-summary-container .vehicle-info-column,
  .vehicle-summary-container .manufacturing-info-column {
    flex: 0 0 100%;
    max-width: 500px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .vehicle-summary-container .vehicle-image-column {
    margin-bottom: 1rem;
    text-align: center;
  }
  .vehicle-summary-container .vehicle-info-column,
  .vehicle-summary-container .manufacturing-info-column {
    margin-top: 1rem;
    text-align: center;
  }
  .vehicle-summary-container .vehicle-info-column,
  .vehicle-summary-container .manufacturing-info-column {
    text-align: left !important;
  }
}

/* Progress Overlay Styles */
.progress-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.progress-overlay.show {
  opacity: 1;
}

.progress-container {
  background: #ffffff;
  border-radius: 16px;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 400px;
  width: 90%;
  border: 1px solid #e5e7eb;
}

.progress-icon {
  margin-bottom: 1.5rem;
}

.progress-spinner {
  animation: progress-spin 1.5s linear infinite;
  transform-origin: center;
}

@keyframes progress-spin {
  0% { 
    transform: rotate(0deg);
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% { 
    transform: rotate(180deg);
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% { 
    transform: rotate(360deg);
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

.progress-icon svg circle {
  stroke: #003d7a;
}

.progress-icon svg path {
  stroke: #003d7a;
}

.progress-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 0.5rem 0;
}

.progress-subtitle {
  color: #757575;
  font-size: 1rem;
  margin: 0 0 2rem 0;
  line-height: 1.5;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #f3f4f6;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #003d7a, #0056b3);
  border-radius: 3px;
  width: 0%;
  animation: progress-fill 2s ease-in-out infinite;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: progress-shimmer 1.5s ease-in-out infinite;
}

@keyframes progress-fill {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

@keyframes progress-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Brand styling */
.brand-name {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #2d3748;
}

.brand-highlight {
    color: #003d7a;
    font-weight: 700;
}

/* Vehicle Not Found Modal Styles */
.vehicle-not-found-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vehicle-not-found-modal.show {
    opacity: 1;
    visibility: visible;
}

.vehicle-not-found-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.vehicle-not-found-container {
    position: relative;
    z-index: 2;
    max-width: 650px;
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: vehicle-not-found-slide-in 0.3s ease-out;
}

@keyframes vehicle-not-found-slide-in {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.vehicle-not-found-header {
    text-align: center;
    padding: 2rem 2rem 1rem 2rem;
}

.vehicle-not-found-title {
    font-size: 2rem;
    font-weight: 700;
    color: #4CAF50;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.vehicle-not-found-subtitle {
    color: #666;
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.vehicle-not-found-note {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.vehicle-not-found-card {
    margin: 0 1.5rem 1.5rem 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 2px solid #FFD700;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.vehicle-not-found-card-body {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    padding: 2rem;
}


.vehicle-not-found-content {
    text-align: center;
}

/* CarVertical Logo Styles */
.vehicle-not-found-logo {
    margin-bottom: 1.5rem;
}

.carvertical-logo-img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
    .carvertical-logo-img {
        max-width: 160px;
    }
}

@media (max-width: 480px) {
    .carvertical-logo-img {
        max-width: 140px;
    }
}

.vehicle-not-found-description h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #333;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vehicle-not-found-description p {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0;
    font-weight: 600;
}

.vehicle-not-found-description strong {
    font-weight: 800;
    color: #B8860B;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.vehicle-not-found-card-footer {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-not-found-cta-btn {
    background: linear-gradient(135deg, #FF1744 0%, #D50000 100%);
    border: none;
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: inherit;
    width: 100%;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(255, 23, 68, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vehicle-not-found-cta-btn:hover {
    background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 23, 68, 0.6);
    scale: 1.02;
}

.cta-icon {
    flex-shrink: 0;
}

/* Responsive adjustments for Vehicle Not Found Modal */
@media (max-width: 768px) {
    .vehicle-not-found-container {
        width: 95%;
        margin: 1rem;
    }
    
    .vehicle-not-found-header {
        padding: 1.5rem 1rem 1rem 1rem;
    }
    
    .vehicle-not-found-title {
        font-size: 1.5rem;
    }
    
    .vehicle-not-found-card {
        margin: 0 0.5rem 1rem 0.5rem;
    }
    
    .vehicle-not-found-card-body {
        padding: 1rem;
    }
    
    .vehicle-not-found-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .vehicle-not-found-logo {
        text-align: center;
    }
    
    .vehicle-not-found-card-footer {
        padding: 1rem;
    }
    
    .vehicle-not-found-cta-btn {
        width: 100%;
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .vehicle-not-found-title {
        font-size: 1.25rem;
    }
    
    .vehicle-not-found-subtitle,
    .vehicle-not-found-note {
        font-size: 0.9rem;
    }
    
    .vehicle-not-found-description p {
        font-size: 0.9rem;
    }
}

/* Enhanced Vehicle Info Section */
.vincheck-vehicle-info {
  background: #f8fafc;
  padding: 80px 0 60px 0;
  text-align: center;
}

.vincheck-vehicle-info h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #2d3748;
  letter-spacing: -0.02em;
}

.vincheck-vehicle-info > p {
  color: #718096;
  font-size: 1.2rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.vincheck-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.vincheck-info-item {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.vincheck-info-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #003d7a 0%, #0056b3 100%);
  border-radius: 16px 16px 0 0;
}

.vincheck-info-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.vincheck-info-item h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #2d3748;
}

.vincheck-info-item p {
  color: #718096;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .vincheck-hero {
    padding: 60px 0 40px 0;
  }
  
  .vincheck-header h1 {
    font-size: 2.2rem;
  }
  
  .vincheck-header p {
    font-size: 1.1rem;
  }
  
  .vincheck-howitworks h2,
  .vincheck-vehicle-info h2 {
    font-size: 2rem;
  }
  
  .vincheck-steps {
    flex-direction: column;
    gap: 24px;
  }
  
  .vincheck-step {
    margin: 0 auto;
    max-width: 400px;
  }
  
  .vincheck-info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .sample-report-link {
    margin-top: 1.5rem;
  }
  
  .sample-report-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .vincheck-header h1 {
    font-size: 1.8rem;
  }
  
  .vincheck-header p {
    font-size: 1rem;
  }
  
  .vincheck-form {
    max-width: 350px;
  }
  
  .vincheck-howitworks h2,
  .vincheck-vehicle-info h2 {
    font-size: 1.8rem;
  }
  
  .vincheck-howitworks p,
  .vincheck-vehicle-info > p {
    font-size: 1rem;
  }
  
  .sample-report-link {
    margin-top: 1rem;
  }
  
  .sample-report-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  
  .sample-report-text {
    font-size: 0.85rem;
  }
}

/* ==================== Newsletter Section ==================== */
.vincheck-newsletter {
  background: linear-gradient(135deg, #003d7a 0%, #0056b3 50%, #0066cc 100%);
  padding: 3rem 1rem;
  margin: 3rem 0 0 0;
  border-radius: 0;
  color: white;
  box-shadow: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}

.newsletter-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.newsletter-header {
  text-align: center;
  margin-bottom: 2rem;
}

.newsletter-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: white;
  letter-spacing: -0.5px;
}

.newsletter-tagline {
  font-size: 1.2rem;
  opacity: 0.95;
  font-weight: 400;
  margin: 0;
}

.newsletter-body {
  text-align: center;
}

.newsletter-heading {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: white;
  letter-spacing: -0.5px;
}

.newsletter-description {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  opacity: 0.95;
}

.newsletter-value {
  font-size: 1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.newsletter-form {
  margin-top: 1.5rem;
}

.newsletter-input-group {
  display: flex;
  gap: 0.75rem;
  max-width: 600px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  min-width: 250px;
  padding: 1rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: #2d3748;
  transition: all 0.3s ease;
}

.newsletter-input:focus {
  outline: none;
  border-color: white;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.newsletter-input::placeholder {
  color: #a0aec0;
}

.newsletter-btn {
  padding: 1rem 2rem;
  background: white;
  color: #003d7a;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: #f7fafc;
}

.newsletter-btn:active {
  transform: translateY(0);
}

.newsletter-trust {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  opacity: 0.85;
  font-weight: 400;
  letter-spacing: 0.3px;
  text-align: center;
}

.newsletter-btn-icon {
  transition: transform 0.3s ease;
}

.newsletter-btn:hover .newsletter-btn-icon {
  transform: rotate(90deg);
}

/* Responsive Newsletter Styles */
@media (max-width: 768px) {
  .vincheck-newsletter {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 2rem 1rem;
  }
  
  .newsletter-content {
    padding: 0;
  }
  
  .newsletter-heading {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }
  
  .newsletter-description {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
  }
  
  .newsletter-input-group {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  
  .newsletter-input {
    min-width: 100%;
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
  }
  
  .newsletter-btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .vincheck-newsletter {
    padding: 1.5rem 0.75rem;
    margin: 2rem 0 0 0;
  }
  
  .newsletter-heading {
    font-size: 1.5rem;
  }
  
  .newsletter-description {
    font-size: 0.9375rem;
    line-height: 1.5;
    padding: 0 0.5rem;
  }
  
  .newsletter-input {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
  }
  
  .newsletter-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
  }
  
  .newsletter-trust {
    font-size: 0.8rem;
    padding: 0 0.5rem;
  }
}

.newsletter-message {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.newsletter-message.success {
  background: rgba(72, 187, 120, 0.2);
  border: 2px solid rgba(72, 187, 120, 0.5);
  color: #f0fff4;
}

.newsletter-message.error {
  background: rgba(245, 101, 101, 0.2);
  border: 2px solid rgba(245, 101, 101, 0.5);
  color: #fff5f5;
}

/* ==================== Footer Newsletter ==================== */
.vincheck-footer {
  background: #2d3748;
  color: white;
  padding: 0;
  text-align: center;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-newsletter {
  background: linear-gradient(135deg, #003d7a 0%, #0056b3 50%, #0066cc 100%);
  padding: 4rem 2rem;
  margin-bottom: 0;
  border-bottom: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}

.footer-newsletter .newsletter-body {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.footer-newsletter .newsletter-heading {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
  letter-spacing: -0.5px;
}

.footer-newsletter .newsletter-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
  opacity: 0.95;
}

.footer-newsletter .newsletter-form {
  margin-top: 2rem;
}

.footer-newsletter .newsletter-input-group {
  display: flex;
  gap: 0.75rem;
  max-width: 600px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-newsletter .newsletter-input {
  flex: 1;
  min-width: 250px;
  padding: 1rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: #2d3748;
  transition: all 0.3s ease;
}

.footer-newsletter .newsletter-input:focus {
  outline: none;
  border-color: white;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.footer-newsletter .newsletter-input::placeholder {
  color: #a0aec0;
}

.footer-newsletter .newsletter-btn {
  padding: 1rem 2rem;
  background: white;
  color: #003d7a;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.footer-newsletter .newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: #f7fafc;
}

.footer-newsletter .newsletter-btn:active {
  transform: translateY(0);
}

.footer-newsletter .newsletter-trust {
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.85;
  font-weight: 400;
  letter-spacing: 0.3px;
  text-align: center;
}

.footer-newsletter .newsletter-btn-icon {
  transition: transform 0.3s ease;
}

.footer-newsletter .newsletter-btn:hover .newsletter-btn-icon {
  transform: rotate(90deg);
}

.footer-newsletter .newsletter-message {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.footer-newsletter .newsletter-message.success {
  background: rgba(72, 187, 120, 0.2);
  border: 2px solid rgba(72, 187, 120, 0.5);
  color: #f0fff4;
}

.footer-newsletter .newsletter-message.error {
  background: rgba(245, 101, 101, 0.2);
  border: 2px solid rgba(245, 101, 101, 0.5);
  color: #fff5f5;
}

.footer-copyright {
  background: #2d3748;
  padding: 2rem 1rem 1.5rem 1rem;
  opacity: 0.7;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 576px) {
  .footer-copyright {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}

/* Newsletter Mobile Responsiveness */
@media (max-width: 768px) {
  .vincheck-newsletter {
    padding: 2.5rem 1rem;
    margin: 2rem 0 0 0;
    border-radius: 0;
  }

  .newsletter-header h2,
  .newsletter-heading {
    font-size: 2rem;
  }

  .newsletter-tagline {
    font-size: 1rem;
  }

  .newsletter-description {
    font-size: 1rem;
  }

  .newsletter-trust {
    font-size: 0.8rem;
  }

  .newsletter-value {
    font-size: 0.95rem;
  }

  .newsletter-input-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  .newsletter-input {
    min-width: 100%;
  }

  .newsletter-btn {
    width: 100%;
    justify-content: center;
  }

  .footer-newsletter {
    padding: 3rem 1.5rem;
  }

  .footer-newsletter .newsletter-heading {
    font-size: 2rem;
  }

  .footer-newsletter .newsletter-description {
    font-size: 1rem;
  }

  .footer-newsletter .newsletter-trust {
    font-size: 0.8rem;
  }

  .footer-newsletter .newsletter-input-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-newsletter .newsletter-input {
    min-width: 100%;
  }

  .footer-newsletter .newsletter-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .vincheck-newsletter {
    padding: 2rem 1rem;
    margin: 1.5rem 0 0 0;
  }

  .newsletter-header h2,
  .newsletter-heading {
    font-size: 1.75rem;
  }

  .newsletter-tagline {
    font-size: 0.95rem;
  }

  .newsletter-description {
    font-size: 0.95rem;
  }

  .newsletter-trust {
    font-size: 0.75rem;
  }

  .newsletter-value {
    font-size: 0.9rem;
  }

  .footer-newsletter {
    padding: 2rem 1rem;
  }

  .footer-newsletter .newsletter-heading {
    font-size: 1.75rem;
  }

  .footer-newsletter .newsletter-description {
    font-size: 0.95rem;
  }

  .footer-newsletter .newsletter-trust {
    font-size: 0.75rem;
  }
}

/* ==================== Exit Intent Popup ==================== */
.exit-intent-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.exit-intent-popup.show {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.exit-intent-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  animation: exit-intent-fade-in 0.3s ease-out;
}

@keyframes exit-intent-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.exit-intent-container {
  position: relative;
  z-index: 2;
  max-width: 600px;
  width: 90%;
  background: linear-gradient(135deg, #003d7a 0%, #0056b3 50%, #0066cc 100%);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  animation: exit-intent-slide-up 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
}

@keyframes exit-intent-slide-up {
  from {
    transform: translateY(100px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.exit-intent-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.exit-intent-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.exit-intent-content {
  text-align: center;
  color: white;
}

.exit-intent-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  animation: exit-intent-bounce 1s ease-in-out infinite;
}

@keyframes exit-intent-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.exit-intent-heading {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.exit-intent-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.8;
  opacity: 0.95;
  color: white;
}

.exit-intent-popup .newsletter-form {
  margin-top: 0;
}

.exit-intent-popup .newsletter-input-group {
  display: flex;
  gap: 0.75rem;
  max-width: 100%;
  margin: 0 auto;
  flex-wrap: wrap;
}

.exit-intent-popup .newsletter-input {
  flex: 1;
  min-width: 250px;
  padding: 1rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: #2d3748;
  transition: all 0.3s ease;
}

.exit-intent-popup .newsletter-input:focus {
  outline: none;
  border-color: white;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.exit-intent-popup .newsletter-input::placeholder {
  color: #a0aec0;
}

.exit-intent-popup .newsletter-btn {
  padding: 1rem 2rem;
  background: white;
  color: #003d7a;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.exit-intent-popup .newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: #f7fafc;
}

.exit-intent-popup .newsletter-btn:active {
  transform: translateY(0);
}

.exit-intent-popup .newsletter-trust {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-align: center;
  color: white;
}

.exit-intent-popup .newsletter-btn-icon {
  transition: transform 0.3s ease;
}

.exit-intent-popup .newsletter-btn:hover .newsletter-btn-icon {
  transform: rotate(90deg);
}

.exit-intent-popup .newsletter-message {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.exit-intent-popup .newsletter-message.success {
  background: rgba(72, 187, 120, 0.2);
  border: 2px solid rgba(72, 187, 120, 0.5);
  color: #f0fff4;
}

.exit-intent-popup .newsletter-message.error {
  background: rgba(245, 101, 101, 0.2);
  border: 2px solid rgba(245, 101, 101, 0.5);
  color: #fff5f5;
}

/* Mobile Responsiveness for Exit Intent Popup */
@media (max-width: 768px) {
  .exit-intent-container {
    width: 95%;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
  }

  .exit-intent-heading {
    font-size: 2rem;
  }

  .exit-intent-description {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
  }

  .exit-intent-close {
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
  }

  .exit-intent-popup .newsletter-input-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  .exit-intent-popup .newsletter-input {
    min-width: 100%;
  }

  .exit-intent-popup .newsletter-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .exit-intent-container {
    padding: 2rem 1.25rem;
    border-radius: 16px;
  }

  .exit-intent-heading {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .exit-intent-description {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .exit-intent-icon {
    margin-bottom: 1rem;
  }

  .exit-intent-icon svg {
    width: 48px;
    height: 48px;
  }

  .exit-intent-popup .newsletter-trust {
    font-size: 0.85rem;
  }
}

/* ============================================
   QUIZ STYLES
   ============================================ */

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.quiz-header {
    text-align: center;
    margin-bottom: 3rem;
}

.quiz-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.2s;
}

.quiz-back:hover {
    color: #1f2937;
}

.quiz-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.quiz-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
}

/* Progress Bar */
.quiz-progress-container {
    margin-bottom: 2rem;
}

.quiz-progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #003d7a 0%, #0056b3 100%);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.quiz-progress-text {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* Questions */
.quiz-questions-container {
    min-height: 400px;
}

.quiz-question {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quiz-question-category {
    display: inline-block;
    background: #e6f2ff;
    color: #003d7a;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.quiz-question-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2rem;
    line-height: 1.4;
}

/* Options */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    width: 100%;
}

.quiz-option:hover {
    border-color: #003d7a;
    background: #f9fafb;
}

.quiz-option.selected {
    border-color: #003d7a;
    background: #e6f2ff;
}

.quiz-option-icon {
    flex-shrink: 0;
    /* Force hardware acceleration for crisp rendering */
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.quiz-option-icon svg {
    width: 20px;
    height: 20px;
    stroke: #9ca3af;
    fill: none;
    transition: stroke 0.2s;
    /* Ensure crisp rendering on all devices */
    shape-rendering: geometricPrecision;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Prevent blurring on transform/scale */
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.quiz-option.selected .quiz-option-icon svg {
    stroke: #003d7a;
}

.quiz-option-check {
    opacity: 0;
    fill: #003d7a;
    transition: opacity 0.2s;
}

.quiz-option.selected .quiz-option-check {
    opacity: 1;
    fill: #003d7a;
}

/* Ensure crisp rendering on high-DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .quiz-option-icon svg {
        shape-rendering: auto;
        image-rendering: auto;
    }
}

.quiz-option-text {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 500;
    /* Ensure text is crisp on mobile */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.quiz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.quiz-btn-primary {
    background: #003d7a;
    color: white;
}

.quiz-btn-primary:hover:not(.disabled) {
    background: #0056b3;
}

.quiz-btn-primary.disabled {
    background: #d1d5db;
    cursor: not-allowed;
    opacity: 0.6;
}

.quiz-btn-secondary {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.quiz-btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Results */
.quiz-results-container {
    animation: fadeIn 0.5s ease;
}

.quiz-results {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.quiz-results-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.quiz-results-score {
    margin-bottom: 1.5rem;
}

.quiz-score-circle {
    position: relative;
    display: inline-block;
}

.quiz-score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.quiz-score-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.quiz-score-label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.quiz-results-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.quiz-results-summary {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
}

/* Results Sections */
.quiz-results-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
}

.quiz-completed {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.quiz-missing {
    background: #fffbeb;
    border: 1px solid #fed7aa;
}

.quiz-results-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.quiz-results-section-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.quiz-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quiz-result-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
}

.quiz-result-completed {
    color: #166534;
}

.quiz-result-missing {
    color: #92400e;
}

.quiz-result-critical {
    color: #991b1b;
    font-weight: 500;
}

.quiz-critical-warnings {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 12px;
    padding: 1.5rem;
}

.quiz-critical-warnings .quiz-results-section-header {
    color: #dc2626;
}

.quiz-critical-warnings .quiz-results-section-header svg {
    color: #dc2626;
}

.quiz-result-item svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Recommendation */
.quiz-results-recommendation {
    display: flex;
    gap: 1rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.quiz-recommendation-icon {
    flex-shrink: 0;
}

.quiz-recommendation-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.quiz-recommendation-content p {
    font-size: 1rem;
    color: #374151;
    margin: 0;
    line-height: 1.6;
}

/* Results Actions */
.quiz-results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   WORLD-CLASS QUIZ ENHANCEMENTS
   ============================================ */

/* Hero Stats Section */
.quiz-results-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.quiz-score-card,
.quiz-stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.quiz-score-card:hover,
.quiz-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quiz-score-label-text {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.quiz-stat-icon {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
}

.quiz-stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.quiz-stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.quiz-stat-risk .quiz-stat-value {
    color: #dc2626;
}

.quiz-stat-savings .quiz-stat-value {
    color: #22c55e;
}

.quiz-stat-time .quiz-stat-value {
    color: #003d7a;
}

/* Top 3 Priorities */
.quiz-top-priorities {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid #fbbf24;
}

.quiz-priority-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.quiz-priority-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #92400e;
    margin: 0;
}

.quiz-priority-cards {
    display: grid;
    gap: 1rem;
}

.quiz-priority-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.quiz-priority-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.quiz-priority-badge {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.quiz-priority-content {
    flex: 1;
}

.quiz-priority-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.quiz-priority-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quiz-priority-tag.priority-critical {
    background: #fee2e2;
    color: #dc2626;
}

.quiz-priority-tag.priority-high {
    background: #ffedd5;
    color: #ea580c;
}

.quiz-priority-tag.priority-medium {
    background: #fef3c7;
    color: #d97706;
}

.quiz-priority-savings {
    font-size: 0.875rem;
    font-weight: 600;
    color: #22c55e;
}

.quiz-priority-time {
    font-size: 0.875rem;
    color: #6b7280;
}

.quiz-priority-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.quiz-priority-desc {
    font-size: 0.9375rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

/* Actionable Section */
.quiz-actionable-section {
    margin: 3rem 0;
}

.quiz-actionable-header {
    text-align: center;
    margin-bottom: 2rem;
}

.quiz-actionable-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.quiz-actionable-header p {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
}

.quiz-actionable-list {
    display: grid;
    gap: 1.5rem;
}

.quiz-actionable-item {
    background: white;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    padding: 1.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.quiz-actionable-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.quiz-actionable-header-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.quiz-actionable-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #003d7a 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.quiz-actionable-title-group {
    flex: 1;
}

.quiz-actionable-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.quiz-actionable-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quiz-action-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.quiz-action-badge.priority-critical {
    background: #fee2e2;
    color: #dc2626;
}

.quiz-action-badge.priority-high {
    background: #ffedd5;
    color: #ea580c;
}

.quiz-action-badge.priority-medium {
    background: #fef3c7;
    color: #d97706;
}

.quiz-action-badge.priority-low {
    background: #dbeafe;
    color: #2563eb;
}

.quiz-action-badge.savings {
    background: #dcfce7;
    color: #16a34a;
}

.quiz-action-badge.time {
    background: #e0e7ff;
    color: #4f46e5;
}

.quiz-actionable-toggle {
    background: none;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.quiz-actionable-toggle:hover {
    background: #f3f4f6;
    border-color: #003d7a;
}

.quiz-actionable-toggle.open {
    transform: rotate(180deg);
}

.quiz-actionable-description {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.quiz-actionable-details {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.quiz-action-steps h5,
.quiz-action-resources h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem 0;
}

.quiz-steps-list {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.quiz-step-item {
    counter-increment: step-counter;
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.quiz-step-item::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.quiz-step-item a {
    color: #003d7a;
    text-decoration: underline;
}

.quiz-resources-grid {
    display: grid;
    gap: 1rem;
}

.quiz-resource-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.quiz-resource-card:hover {
    background: white;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.quiz-resource-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #003d7a;
}

.quiz-resource-content {
    flex: 1;
}

.quiz-resource-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.quiz-resource-desc {
    font-size: 0.875rem;
    color: #6b7280;
}

.quiz-resource-arrow {
    flex-shrink: 0;
    color: #9ca3af;
    transition: transform 0.2s;
}

.quiz-resource-card:hover .quiz-resource-arrow {
    transform: translateX(4px);
    color: #003d7a;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .quiz-results-hero {
        grid-template-columns: 1fr;
    }
    
    .quiz-priority-card {
        flex-direction: column;
    }
    
    .quiz-actionable-header-row {
        flex-wrap: wrap;
    }
    
    .quiz-actionable-title {
        font-size: 1.125rem;
    }
}

/* Error State */
.quiz-error {
    text-align: center;
    padding: 3rem 1rem;
}

.quiz-error svg {
    margin-bottom: 1rem;
}

.quiz-error h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.quiz-error p {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .quiz-container {
        padding: 1rem 0.75rem;
    }
    
    .quiz-header {
        margin-bottom: 2rem;
    }
    
    .quiz-back {
        margin-bottom: 0.75rem;
        font-size: 0.875rem;
    }
    
    .quiz-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    .quiz-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .quiz-progress-container {
        margin-bottom: 1.5rem;
    }
    
    .quiz-progress-text {
        font-size: 0.8125rem;
    }
    
    .quiz-questions-container {
        min-height: 300px;
    }
    
    .quiz-question {
        padding: 1.25rem;
        border-radius: 10px;
    }
    
    .quiz-question-category {
        font-size: 0.6875rem;
        padding: 0.3125rem 0.625rem;
        margin-bottom: 0.875rem;
    }
    
    .quiz-question-text {
        font-size: 1.125rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }
    
    .quiz-options {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .quiz-option {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
        min-height: 48px; /* Better touch target */
    }
    
    .quiz-option-text {
        font-size: 0.9375rem;
        line-height: 1.4;
    }
    
    .quiz-option-icon svg {
        width: 22px;
        height: 22px;
        /* Ensure crisp rendering on mobile */
        shape-rendering: geometricPrecision;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .quiz-navigation {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }
    
    .quiz-btn {
        width: 100%;
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
        min-height: 48px; /* Better touch target */
    }
    
    .quiz-results {
        padding: 1.5rem 1.25rem;
        border-radius: 10px;
    }
    
    .quiz-results-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .quiz-results-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .quiz-results-summary {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .quiz-score-number {
        font-size: 1.75rem;
    }
    
    .quiz-score-label {
        font-size: 0.8125rem;
    }
    
    .quiz-results-section {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .quiz-results-section-header {
        gap: 0.625rem;
        margin-bottom: 0.875rem;
    }
    
    .quiz-results-section-header h3 {
        font-size: 1.125rem;
    }
    
    .quiz-results-list {
        gap: 0.625rem;
    }
    
    .quiz-result-item {
        font-size: 0.9375rem;
        gap: 0.625rem;
    }
    
    .quiz-results-recommendation {
        flex-direction: column;
        gap: 0.875rem;
        padding: 1.25rem;
    }
    
    .quiz-recommendation-content h4 {
        font-size: 1rem;
    }
    
    .quiz-recommendation-content p {
        font-size: 0.9375rem;
    }
    
    .quiz-results-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .quiz-error {
        padding: 2rem 1rem;
    }
    
    .quiz-error h3 {
        font-size: 1.25rem;
    }
    
    .quiz-error p {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .quiz-container {
        padding: 0.75rem 0.5rem;
    }
    
    .quiz-header {
        margin-bottom: 1.5rem;
    }
    
    .quiz-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .quiz-subtitle {
        font-size: 0.9375rem;
    }
    
    .quiz-question {
        padding: 1rem;
    }
    
    .quiz-question-text {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .quiz-option {
        padding: 0.75rem;
        gap: 0.625rem;
    }
    
    .quiz-option-text {
        font-size: 0.875rem;
    }
    
    .quiz-results-title {
        font-size: 1.25rem;
    }
    
    .quiz-results-summary {
        font-size: 0.9375rem;
    }
    
    .quiz-score-number {
        font-size: 1.5rem;
    }
    
    .quiz-results-section {
        padding: 1rem;
    }
    
    .quiz-results-section-header h3 {
        font-size: 1rem;
    }
    
    .quiz-result-item {
        font-size: 0.875rem;
    }
}

/* Newsletter styling adjustments for quiz page */
#quiz-newsletter {
    margin-top: 2rem;
    animation: fadeIn 0.5s ease;
}

/* Quiz CTA on Report Page */
.report-quiz-cta {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
}

.quiz-cta-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 100%;
}

.quiz-cta-text {
    flex: 1;
    min-width: 0; /* Allows text to shrink properly */
}

.quiz-cta-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.quiz-cta-description {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.quiz-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #003d7a;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}

.quiz-cta-btn:hover {
    background: #0056b3;
    color: white;
}

.quiz-cta-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Tablet and smaller screens */
@media (max-width: 992px) {
    .report-quiz-cta {
        padding: 1.75rem 1.25rem;
    }
    
    .quiz-cta-content {
        gap: 1.25rem;
    }
    
    .quiz-cta-title {
        font-size: 1.125rem;
    }
    
    .quiz-cta-description {
        font-size: 0.9375rem;
    }
}

/* Mobile screens */
@media (max-width: 768px) {
    .report-quiz-cta {
        padding: 1.5rem 1rem;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .quiz-cta-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        align-items: center;
    }
    
    .quiz-cta-text {
        width: 100%;
        text-align: center;
    }
    
    .quiz-cta-title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }
    
    .quiz-cta-description {
        font-size: 0.9375rem;
        line-height: 1.6;
        margin-bottom: 0.5rem;
    }
    
    .quiz-cta-btn {
        width: 100%;
        max-width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        white-space: normal;
        justify-content: center;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .report-quiz-cta {
        padding: 1.25rem 0.875rem;
        border-radius: 10px;
    }
    
    .quiz-cta-content {
        gap: 0.875rem;
    }
    
    .quiz-cta-title {
        font-size: 1rem;
        margin-bottom: 0.625rem;
    }
    
    .quiz-cta-description {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }
    
    .quiz-cta-btn {
        padding: 0.8125rem 1.25rem;
        font-size: 0.9375rem;
    }
}

/* ============================================
   QUIZ EMAIL GATE STYLES
   ============================================ */

.quiz-email-gate {
    background: white;
    border-radius: 12px;
    padding: 3rem 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.quiz-email-gate-back {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s;
    background: transparent;
}

.quiz-email-gate-back:hover {
    background: #f9fafb;
    color: #1f2937;
}

.quiz-email-gate-back:focus {
    outline: 2px solid #4c84ff;
    outline-offset: 2px;
}

.quiz-email-gate-content {
    text-align: center;
}

.quiz-email-gate-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.quiz-email-gate-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.quiz-email-gate-text {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.quiz-email-form {
    max-width: 100%;
}

.quiz-email-input-wrapper {
    margin-bottom: 1rem;
}

.quiz-email-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    color: #1f2937;
    transition: all 0.2s;
    box-sizing: border-box;
}

.quiz-email-input:focus {
    outline: none;
    border-color: #003d7a;
    box-shadow: 0 0 0 3px rgba(0, 61, 122, 0.1);
}

.quiz-email-input::placeholder {
    color: #9ca3af;
}

.quiz-email-input.error {
    border-color: #ef4444;
}

.quiz-email-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    text-align: left;
    font-weight: 500;
}

.quiz-email-submit {
    width: 100%;
    position: relative;
}

.quiz-email-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.quiz-email-note {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #9ca3af;
    font-style: italic;
}

/* Subscription Confirmation Banner */
.quiz-subscription-confirmation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    color: #166534;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}

.quiz-subscription-confirmation svg {
    flex-shrink: 0;
}

/* Mobile Responsiveness for Email Gate */
@media (max-width: 768px) {
    .quiz-email-gate {
        padding: 2rem 1.5rem;
    }
    
    .quiz-email-gate-back {
        top: 1rem;
        left: 1rem;
        width: 32px;
        height: 32px;
    }
    
    .quiz-email-gate-title {
        font-size: 1.5rem;
        margin-bottom: 0.875rem;
    }
    
    .quiz-email-gate-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .quiz-email-gate-icon {
        margin-bottom: 1.25rem;
    }
    
    .quiz-email-gate-icon svg {
        width: 56px;
        height: 56px;
    }
    
    .quiz-email-input {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }
    
    .quiz-subscription-confirmation {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .quiz-email-gate {
        padding: 1.5rem 1rem;
        border-radius: 10px;
    }
    
    .quiz-email-gate-back {
        top: 0.75rem;
        left: 0.75rem;
        width: 32px;
        height: 32px;
    }
    
    .quiz-email-gate-back svg {
        width: 18px;
        height: 18px;
    }
    
    .quiz-email-gate-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .quiz-email-gate-text {
        font-size: 0.9375rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
    }
    
    .quiz-email-gate-icon svg {
        width: 48px;
        height: 48px;
    }
    
    .quiz-email-input {
        padding: 0.8125rem 0.875rem;
        font-size: 0.875rem;
    }
    
    .quiz-email-note {
        font-size: 0.8125rem;
    }
}

/* History Badge in Navigation */
.history-nav-link {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem !important;
    min-height: 44px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.history-nav-link:hover {
    background: rgba(0, 61, 122, 0.1);
    color: #003d7a !important;
}

.history-nav-link:active {
    transform: scale(0.98);
    background: rgba(200, 16, 46, 0.15);
}

.history-nav-icon {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.history-nav-link:hover .history-nav-icon {
    transform: rotate(-15deg);
}

.history-nav-text {
    font-weight: 600;
}

.history-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #003d7a;
    color: #fff;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    margin-left: 0.125rem;
    flex-shrink: 0;
}

.history-badge:empty {
    display: none;
}

/* Mobile-specific navigation improvements */
@media (max-width: 768px) {
    .history-nav-link {
        padding: 0.875rem 1rem !important;
        min-height: 48px;
        width: 100%;
        font-size: 1rem;
        gap: 0.625rem;
    }
    
    .history-nav-icon {
        width: 20px;
        height: 20px;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        padding: 0.875rem 1rem !important;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .history-nav-link {
        padding: 1rem 1.25rem !important;
        min-height: 52px;
        font-size: 1.0625rem;
        gap: 0.75rem;
    }
    
    .history-nav-icon {
        width: 22px;
        height: 22px;
    }
    
    .history-badge {
        min-width: 24px;
        height: 24px;
        padding: 0 8px;
        font-size: 0.875rem;
    }
}

/* History Feature Banner on Home Page */
.history-feature-banner {
    margin: 3rem auto;
    max-width: 900px;
}

.history-banner-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #003d7a 0%, #0056b3 50%, #0066cc 100%);
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 61, 122, 0.3);
}

.history-banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    flex-shrink: 0;
}

.history-banner-icon svg {
    stroke: #fff;
}

.history-banner-text {
    flex: 1;
}

.history-banner-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.history-banner-text p {
    font-size: 1rem;
    opacity: 0.95;
    margin: 0;
    line-height: 1.5;
}

.history-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: #fff;
    color: #003d7a;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.history-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
    color: #003d7a;
}

@media (max-width: 768px) {
    .history-feature-banner {
        margin: 2rem auto;
    }
    
    .history-banner-content {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .history-banner-text h3 {
        font-size: 1.25rem;
    }
    
    .history-banner-text p {
        font-size: 0.9375rem;
    }
    
    .history-banner-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .history-banner-content {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .history-banner-icon {
        width: 56px;
        height: 56px;
    }
    
    .history-banner-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .history-banner-text h3 {
        font-size: 1.125rem;
    }
    
    .history-banner-text p {
        font-size: 0.875rem;
    }
}

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
    .navbar-toggler {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem;
        border: 2px solid rgba(0, 0, 0, 0.1);
        border-radius: 8px;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(0, 61, 122, 0.2);
        outline: none;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .navbar-nav {
        padding: 0.5rem 0;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0.25rem;
    }
    
    .navbar-nav .nav-link {
        border-radius: 8px;
        transition: background 0.2s ease;
    }
    
    .navbar-nav .nav-link:active {
        background: rgba(0, 61, 122, 0.15);
    }
}

@media (max-width: 480px) {
    .navbar-toggler {
        min-width: 48px;
        min-height: 48px;
        padding: 0.625rem;
    }
    
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    .navbar-collapse {
        margin-top: 1.25rem;
    }
}

/* Improved navbar brand for mobile consistency */
@media (max-width: 768px) {
    .navbar-brand {
        padding: 0.5rem 0;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.75rem 1rem;
    }
    
    .navbar-brand {
        gap: 0.5rem;
    }
    
    .brand-name {
        font-size: 1.25rem;
    }
}
