/* Real-Time Quotes Section Styles */
.realtime-quotes-section {
  padding: 20px 0;
  background-color: #f5faff;
}

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

.quotes-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #000;
}

.quotes-table-container {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-height: 400px;
  overflow-y: auto;
  /* Hide scrollbar */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  width: 70%;
  margin: 0 auto;
}

.quotes-table-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.quotes-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
}

.quotes-table thead {
  background: linear-gradient(135deg, #2e88cf 0%, #1a6fb8 100%);
  position: sticky;
  top: 0;
  z-index: 10;
}

.quotes-table thead th {
  padding: 20px 16px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-align: left;
  border: none;
}

.quotes-table thead th:first-child {
  padding-left: 21px; /* 16px + 5px = 21px */
}

.quotes-table thead th:nth-child(2),
.quotes-table thead th:nth-child(3),
.quotes-table thead th:nth-child(4) {
  text-align: center;
}

/* Hide line breaks on desktop */
.quotes-table thead th br {
  display: none;
}

.quotes-table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  animation: fadeInRow 0.5s ease-in;
}

.quotes-table tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

.quotes-table tbody tr:nth-child(odd) {
  background-color: #fff;
}

.quotes-table tbody td {
  padding: 16px;
  font-size: 14px;
  color: #374151;
}

.quotes-table tbody td:first-child {
  position: relative;
  filter: blur(2px);
  -webkit-filter: blur(2px);
  padding-left: 5px;
}

.quotes-table tbody td:nth-child(2) {
  font-weight: 600;
  color: #1f2937;
  text-align: center;
}

.quotes-table tbody td:nth-child(3) {
  font-weight: 500;
  color: #4b5563;
  text-align: center;
}

.quotes-table tbody td:nth-child(4) {
  font-weight: 700;
  color: #059669;
  font-size: 15px;
  text-align: center;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .realtime-quotes-section {
    padding: 20px 0;
  }
  
  .realtime-quotes-section .container {
    padding: 0 10px;
  }
  
  .quotes-title {
    font-size: 24px;
    margin-bottom: 18px;
  }
  
  .quotes-table-container {
    width: 100%;
    max-height: 350px;
    overflow-x: hidden; /* Remove horizontal scrolling */
  }
  
  .quotes-table {
    width: 100%; /* Make table fit container */
  }
  
  .quotes-table thead th {
    padding: 12px 4px;
    font-size: 12px;
    white-space: normal;
    line-height: 1.2;
    height: auto;
    min-height: 44px;
    vertical-align: middle;
  }
  
  /* Show line breaks on mobile */
  .quotes-table thead th br {
    display: block;
  }
  
  .quotes-table thead th:nth-child(1) {
    width: 30%; /* Name gets more space */
    padding-left: 9px; /* 4px + 5px = 9px */
  }
  
  .quotes-table thead th:nth-child(2) {
    width: 20%; /* Debt amount */
  }
  
  .quotes-table thead th:nth-child(3) {
    width: 25%; /* Program length */
  }
  
  .quotes-table thead th:nth-child(4) {
    width: 25%; /* Monthly payment */
  }
  
  .quotes-table tbody td {
    padding: 8px 4px;
    font-size: 11px;
    white-space: nowrap;
  }
  
  .quotes-table tbody td:first-child {
    padding-left: 9px; /* 4px + 5px = 9px */
  }
  
  .quotes-table tbody td:nth-child(4) {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .quotes-table-container {
    max-height: 300px;
  }
  
  .quotes-table thead th {
    padding: 10px 2px;
    font-size: 11px;
    white-space: normal;
    line-height: 1.2;
    height: auto;
    min-height: 40px;
    vertical-align: middle;
  }
  
  .quotes-table thead th:first-child {
    padding-left: 7px; /* 2px + 5px = 7px */
  }
  
  .quotes-table tbody td {
    padding: 6px 2px;
    font-size: 10px;
  }
  
  .quotes-table tbody td:first-child {
    padding-left: 7px; /* 2px + 5px = 7px */
  }
  
  .quotes-table tbody td:nth-child(4) {
    font-size: 10px;
  }
  
  /* All headers use the same size on small screens */
  .quotes-table thead th:nth-child(2),
  .quotes-table thead th:nth-child(3),
  .quotes-table thead th:nth-child(4) {
    font-size: 11px;
  }
}

