/* ========================================
   LIFE INSURANCE FORM V2 - MODERN DESIGN
   Beautiful Product Cards & Hover Effects
   ======================================== */

/* Insurance Hero Section */
.insurance-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  padding: 60px 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.insurance-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.highlight {
  color: #1d6ae0;
  font-weight: 900;
}

.lead {
  font-size: 16px;
  line-height: 1.6;
  color: #475569;
  margin-top: 20px;
}

/* Form Container */
.insurance-quote-form {
  margin-top: 40px;
}

/* ========================================
   MODERN PRODUCT CARDS
   ======================================== */

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 30px;
}

.modern-product-card {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Gradient Border Effect on Hover */
.modern-product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, #1d6ae0, #3b82f6, #60a5fa);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modern-product-card:hover::before {
  opacity: 1;
}

.modern-product-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(29, 106, 224, 0.15), 
              0 0 0 1px rgba(29, 106, 224, 0.1);
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
  border-color: #1d6ae0;
}

.modern-product-card.selected {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #1d6ae0;
  border-width: 3px;
  box-shadow: 0 8px 24px rgba(29, 106, 224, 0.2),
              0 0 0 4px rgba(29, 106, 224, 0.1);
}

.modern-product-card.selected::before {
  opacity: 1;
}

/* Card Badge (Most Popular) */
.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #78350f;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Card Icon */
.card-icon {
  font-size: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(29, 106, 224, 0.08);
}

.modern-product-card:hover .card-icon {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 4px 12px rgba(29, 106, 224, 0.15);
}

.modern-product-card.selected .card-icon {
  background: linear-gradient(135deg, #1d6ae0 0%, #3b82f6 100%);
  transform: scale(1.1);
}

/* Card Content */
.card-content {
  flex: 1;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px 0;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.modern-product-card:hover .card-title {
  color: #1d6ae0;
}

.modern-product-card.selected .card-title {
  color: #1d6ae0;
}

.card-description {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.modern-product-card:hover .card-description {
  color: #475569;
}

/* Card Arrow */
.card-arrow {
  font-size: 24px;
  color: #cbd5e1;
  flex-shrink: 0;
  transition: all 0.3s ease;
  font-weight: bold;
}

.modern-product-card:hover .card-arrow {
  color: #1d6ae0;
  transform: translateX(4px);
}

.modern-product-card.selected .card-arrow {
  color: #1d6ae0;
}

/* ========================================
   FORM LABELS
   ======================================== */

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

/* ========================================
   TRUST BADGES
   ======================================== */

.insurance-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.insurance-badge {
  background: white;
  padding: 15px 20px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.insurance-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.insurance-badge .icon {
  color: #1d6ae0;
  font-size: 16px;
}

/* ========================================
   INPUT STYLES
   ======================================== */

.insurance-step input[type="text"],
.insurance-step input[type="email"],
.insurance-step input[type="tel"],
.insurance-step input[type="number"],
.insurance-step select {
  transition: all 0.2s ease;
}

.insurance-step input:focus,
.insurance-step select:focus {
  outline: none;
  border-color: #1d6ae0 !important;
  box-shadow: 0 0 0 3px rgba(29, 106, 224, 0.1);
}

/* Error States */
.insurance-step input.error,
.insurance-step select.error {
  border-color: #dc2626 !important;
  border-width: 2px;
}

/* ========================================
   BUTTON HOVER EFFECTS
   ======================================== */

.insurance-step button[type="button"]:not(.modern-product-card):hover {
  background: linear-gradient(135deg, #1557b0 0%, #0d3a75 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(21, 87, 176, 0.3) !important;
}

.insurance-step button[type="submit"]:hover {
  background: linear-gradient(135deg, #15803d 0%, #14532d 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(21, 128, 61, 0.3) !important;
}

button[type="button"]:active,
button[type="submit"]:active {
  transform: translateY(0) !important;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .insurance-hero {
    padding: 40px 15px;
  }

  #insuranceFormContainer form {
    padding: 24px 20px !important;
  }

  .insurance-hero h1 {
    font-size: 28px !important;
    line-height: 1.3;
  }

  .insurance-step h3 {
    font-size: 22px !important;
  }

  .insurance-step p {
    font-size: 14px !important;
  }

  .modern-product-card {
    padding: 20px;
    gap: 16px;
  }

  .card-icon {
    width: 60px;
    height: 60px;
    font-size: 36px;
  }

  .card-title {
    font-size: 16px;
  }

  .card-description {
    font-size: 13px;
  }

  .card-badge {
    font-size: 10px;
    padding: 5px 10px;
  }

  .insurance-badges {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .insurance-badge {
    font-size: 12px;
    padding: 12px 15px;
  }

  .lead {
    font-size: 14px;
  }

  #insuranceZip {
    font-size: 20px !important;
    padding: 16px 20px !important;
  }
}

/* Very Small Mobile */
@media (max-width: 480px) {
  .insurance-hero {
    padding: 30px 10px;
  }

  .insurance-hero h1 {
    font-size: 24px !important;
  }

  .modern-product-card {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .card-icon {
    width: 70px;
    height: 70px;
  }

  .card-arrow {
    display: none;
  }

  .insurance-badges {
    grid-template-columns: 1fr;
  }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
  .insurance-quote-form {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }

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

/* Desktop - 2 Column Grid for Products */
@media (min-width: 1025px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .modern-product-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 10px);
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

.insurance-step {
  animation: fadeIn 0.4s ease;
}

/* Loading State */
button[type="submit"]:disabled,
button[type="button"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Accessibility */
.insurance-step input:focus-visible,
.insurance-step select:focus-visible,
.insurance-step button:focus-visible,
.modern-product-card:focus-visible {
  outline: 3px solid #1d6ae0;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .insurance-hero {
    background: white;
  }
  
  button {
    display: none;
  }
}