/* ==================================================================
   ZIP-Codes.com Product Group Pages - Unified Styles
   Source pages consolidated and reorganized
   ================================================================== */

/* === HERO SECTION ================================================= */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  padding: 40px 10px;
  text-align: center;
}

.hero .lead,
#hero .lead {
  font-size: 1.2em;
  margin: 0 auto 30px;
  max-width: 900px;
  opacity: 0.95;
}

.hero .value-bullets {
  backdrop-filter: blur(5px);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  font-weight: 600;
  gap: 30px;
  justify-content: center;
  margin: 15px auto;
  max-width: 1000px;
  padding: 15px 10px;
}

.hero .value-bullets .fa-solid {
  background-color: #000;
  border-radius: 6px;
  color: #fff;
  font-size: smaller;
  padding: 4px;
}

.hero .value-bullets span {
  color: #fff;
}

/* === VALUE BULLETS (General) ====================================== */
.value-bullets {
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 30px;
  justify-content: center;
  margin: 30px 0;
}

.value-bullets .fa-solid {
  background-color: #000;
  border-radius: 6px;
  color: #fff;
  font-size: smaller;
  margin-right: 8px;
  padding: 4px;
}

.value-bullets [role="listitem"] {
  color: #fff;
  font-size: 1rem;
}

.value-bullets span {
  color: #fff;
}

/* === STATISTICS BAR =============================================== */
.stat-item {
  /*padding: 0.5rem;*/
}

.stat-number {
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.stat-detail {
  font-size: 0.85rem;
  margin-top: 0.25rem;
  opacity: 0.9;
}

/* === PRICING CARDS ================================================ */
.pricing-card {
  border-color: #e2e8f0 !important;
  border-radius: 12px;
  transition: transform .3s, box-shadow .3s;
}

.pricing-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,.1);
  transform: translateY(-5px);
}

.pricing-card .pricing-header {
  background: #1e293b;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.pricing-card .pricing-header.featured {
  background: #3b82f6;
}

.pricing-card .pricing-header.prod-a {
  background: #AB2827;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.pricing-card .pricing-header.prod-b {
  background: #9BBD3C;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.pricing-card .pricing-header.prod-c {
  background: #F9B73D;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.pricing-card.featured {
  border-color: #3b82f6 !important;
  box-shadow: 0 8px 20px rgba(59,130,246, .2);
}

.pricing-card.featured .pricing-header {
  background: #3b82f6;
}

.pricing-card.prod-a {
  border-color: #AB2827 !important;
  box-shadow: 0 8px 20px rgba(59,130,246, .2);
}

.pricing-card.prod-b {
  border-color: #9BBD3C !important;
  box-shadow: 0 8px 20px rgba(59,130,246, .2);
}

.pricing-card.prod-c {
  border-color: #F9B73D !important;
  box-shadow: 0 8px 20px rgba(59,130,246, .2);
}

.pricing-card .fa-check {
  color: #5bb221;
  margin-right: 8px;
}

/* === USE CASE CARDS =============================================== */
.use-case-card {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  height: 100%;
  padding: 1rem;
  transition: all 0.3s;
}

.use-case-card h3 {
  color: #1e293b;
  margin-bottom: 1rem;
}

.use-case-card i {
  color: #3b82f6;
  font-size: 2rem;
  margin-right: 0.75rem;
}

.use-case-card p {
  color: #475569;
  line-height: 1.6;
}

.use-case-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 10px 25px rgba(59,130,246, .15);
  transform: translateY(-5px);
}
.use-case-card .card-body {
    padding: 0;
}

/* === FEATURES CARDS =============================================== */
.features-card {
  border-color: #e2e8f0 !important;
  border-radius: 12px;
  color: #3b82f6;
  display: inline-block;
  font-weight: 600;
  margin-top: 15px;
  padding: 15px;
  text-decoration: none;
  transition: transform .3s, box-shadow .3s;
}

.features-card .tool-tip {
  text-decoration: none;
}

.features-card:hover {
  transform: translateY(-5px);
}

/* === TRUST / CUSTOMER CARDS ======================================= */
.trust-card {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 15px;
}

.customers {
  width: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
  overflow-wrap: normal;
}

.customers .inner {
  width: 3450px;
  max-width: none;
}

.customers .header-cat-box {
  max-width: 150px;
}

/* === PURCHASE MODAL =============================================== */
.purchase .modal-body {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.purchase .modal-footer {
  background: white;
  bottom: 0;
  position: sticky;
  z-index: 10;
}

/* Modal Tabs */
.purchase .nav .nav-item button {
  background-color: #737373;
  color: #000;  /* FIXED: was text-color */
}

.purchase .nav .nav-item button.active {
  background-color: #2e74d6;
}

.purchase .nav-tabs .nav-link {
  border: var(--bs-nav-tabs-border-width) solid transparent;
  border-top-left-radius: var(--bs-nav-tabs-border-radius);
  border-top-right-radius: var(--bs-nav-tabs-border-radius);
  color: #6c757d;
  font-weight: 500;
  margin-bottom: calc(-1 * var(--bs-nav-tabs-border-width));
}

.purchase .nav-tabs .nav-link.active {
  color: #0d6efd;
  font-weight: 600;
}

.purchase .nav-tabs .nav-item.show .nav-link,
.purchase .nav-tabs .nav-link.active {
  background-color: var(--bs-nav-tabs-link-active-bg);
  border-color: var(--bs-nav-tabs-link-active-border-color);
  color: var(--bs-nav-tabs-link-active-color);
}

/* Tab Description */
.tab-description {
  padding: 1rem;
  background-color: #f8f9fa;
  border-left: 3px solid #0d6efd;
  border-radius: 0.25rem;
  margin-bottom: 1.25rem;
}

.tab-description strong {
  font-size: 0.95rem;
  color: #212529;
}

.tab-description p {
  margin: 0;
  color: #6c757d;
}

/* Product TOS Container */
#product-tos-container {
  padding: 0.75rem 1rem;
  background-color: #f8f9fa;
  border-left: 3px solid #0d6efd;
  border-radius: 0.25rem;
}

#product-tos-container a {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 500;
}

#product-tos-container a:hover {
  text-decoration: underline;
}

/* License Options */
.license-option {
  background: white;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  padding: 1rem;
}

.license-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #dee2e6;
}

.license-header strong {
  color: #212529;
  font-size: 1rem;
  display: block;
}

.license-header small {
  font-size: 0.875rem;
  color: #6c757d;
}

.license-header .badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
}

.license-header a,
.single-option-label a {
  color: #0d6efd;
  text-decoration: none;
  font-size: 0.875rem;
}

.license-header a:hover,
.single-option-label a:hover {
  text-decoration: underline;
}

/* Term Options (Multi-year) */
.term-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.term-option {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border: 2px solid #dee2e6;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0;
  background: #f8f9fa;
}

.term-option:hover {
  border-color: #0d6efd;
  background-color: #e7f1ff;
}

.term-option.selected {
  border-color: #0d6efd;
  background-color: #e7f1ff;
}

.term-option input[type="radio"] {
  cursor: pointer;
  height: 18px;
  margin-right: 0.75rem;
  width: 18px;
}

.term-option input[type="radio"]:checked ~ .term-details {
  color: #0d6efd;
  font-weight: 600;
}

.term-details {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.term-label {
  font-size: 15px;
  font-weight: 500;
  min-width: 80px;
}

.term-price {
  color: #198754;
  font-size: 1.125rem;
  font-weight: 700;
}

.savings {
  background: #d1e7dd;
  border-radius: 4px;
  color: #dc3545;
  font-size: 0.875rem;
  font-weight: 600;
  margin-left: auto;
  padding: 2px 8px;
}

/* Single Option (Historical, Redistribution) */
.single-option {
  display: flex;
  align-items: flex-start;
  background: white;
  border: 2px solid #dee2e6;
  border-radius: 0.5rem;
  cursor: pointer;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding: 1rem;
  transition: all 0.2s ease;
}

.single-option:hover {
  border-color: #0d6efd;
  background-color: #f8f9fa;
}

.single-option.selected {
  border-color: #0d6efd;
  background-color: #e7f1ff;
}

.single-option-content {
  display: flex;
  align-items: flex-start;
  flex: 1;
  gap: 0.75rem;
}

.single-option-content input[type="radio"] {
  cursor: pointer;
  height: 18px;
  margin-top: 0.25rem;
  margin-right: 12px;
  width: 18px;
}

.single-option-label {
  flex: 1;
}

.single-option-label strong {
  display: block;
  font-size: 1rem;
}

.single-option-label small {
  color: #6c757d;
  font-size: 0.875rem;
}

.single-option-price {
  color: #198754;
  font-size: 1.25rem;
  font-weight: 600;
  padding-left: 1rem;
  white-space: nowrap;
}

/* Month Selector */
.month-selector {
  max-width: 300px;
  margin-top: 0.5rem !important;
}

.month-selector:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #e9ecef;
}

.month-selector:not(:disabled) {
  cursor: pointer;
}

/* === DATA EXPLORER ================================================ */
.data-explorer select {
  max-width: 100%;
}

.de-controls {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  line-height: 125%;
  padding: 15px;
}

.de-loading {
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  color: #000;
  font-size: 1.1em;
  margin-top: 15px;
  min-height: 325px;
  padding: 80px 20px;
  text-align: center;
}

.de-sel {
  /*font-size: smaller;*/
  line-height: 125%;
}

.dt-column-title,
.dt-search {
  font-size: smaller;
}

.dt-layout-table {
  border-radius: 12px;
}

#de-table th,
#de-table td {
  font-size: 11px;
}

#de-table-wrapper {
  height: auto;
}

/* === ACCORDIONS (FAQ) ============================================= */
#faqs .accordion-button,
#technical-faq .accordion-button {
  font-size: 1rem;
  font-weight: 600;
}

#faqs .accordion-item,
#technical-faq .accordion-item {
  margin-bottom: 0;
}

#faqs .accordion-body,
#technical-faq .accordion-body {
  font-size: 0.85rem;
  padding: 1rem;
}

/* === FIELD COMPARISON TABLE ======================================= */
#field-comparison .badge {
  white-space: break-spaces;
}

.text-not-included {
  color: rgba(181,18,20,1.00);
}

/* === FILE FORMATS ================================================= */
#file-formats .card {
  transition: transform 0.2s;
}

#file-formats .card:hover {
  transform: translateY(-5px);
}

#file-formats code {
  background: #f5f5f5;
  border-radius: 3px;
  font-size: 0.9em;
  padding: 2px 6px;
}

#file-formats pre code {
  background: transparent;
  padding: 0;
}

#file-formats table td {
  word-wrap: break-word;
}

#technical-faq code {
  background: #f5f5f5;
  border-radius: 3px;
  color: #d63384;
  font-size: 0.9em;
  padding: 2px 6px;
}

#technical-faq pre {
  font-size: 0.85rem;
  max-height: 300px;
  overflow-y: auto;
}

#technical-faq pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* === SAMPLE DOWNLOADS ============================================= */
#sample-downloads .card {
  transition: transform 0.2s;
}

#sample-downloads .card:hover {
  transform: translateY(-3px);
}

#sample-downloads .table {
  font-size: 0.85rem;
}

#sample-downloads .table th,
#sample-downloads .table td {
  white-space: nowrap;
}

/* === SOURCES / REFERENCES ========================================= */
#sources ol.ref {
  padding-left: 2rem;
}

#sources ol.ref li {
  margin-bottom: 1rem;
}

#sources ol.ref ul {
  list-style-type: disc;
  margin-top: 0.5rem;
}

#sources ol.ref ul li {
  margin-bottom: 0.5rem;
}

/* === COMPARISON TABLE ============================================= */
.comparison-table {
  margin-top: 2rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  vertical-align: middle;
}

.comparison-table thead th {
  background: #f8f9fa;
  font-weight: 600;
}

/* === NAVIGATION TABS ============================================== */
.nav-tabs .nav-link {
  color: #6c757d;
  font-weight: 500;
}

.nav-tabs .nav-link.active {
  color: #0d6efd;
  font-weight: 600;
}

/* === CARDS (General) ============================================== */
.card-footer,
.card-header {
  width: 100%;
}

/* === CTA BUTTONS ================================================== */
.cta-buttons {
  text-align: center;
}

.cta-buttons .button {
  margin: 0.5rem auto !important;
  max-width: 300px;
}

/* === UTILITY CLASSES ============================================== */
.bg-business {
  background-color: #AB2827;
}

.bg-deluxe {
  background-color: #9BBD3C;
}

.bg-standard {
  background-color: #F9B73D;
}

.product-featured-bg {
  background: #3b82f6;
  color: #fff;
}

.dark-overlay::after {
  opacity: .65;
}

.no-wrap th,
.no-wrap td {
  white-space: nowrap;
}

.scroll::-webkit-scrollbar {
  width: 12px;
}

.scroll::-webkit-scrollbar-thumb {
  box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
  border-radius: 10px;
}

.scroll::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  border-radius: 10px;
}

/* === PROFILE / WHO ELSE =========================================== */
.profile-image {
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  height: 180px;
  object-fit: cover;
  width: 150px;
}

.whoelse {
  overflow: scroll;
  overflow-y: hidden;
  padding: 1rem;
  width: 100%;
}

.whoelse li {
  width: 210px;
}

.whoelse ul {
  columns: 10;
  margin: 15px;
  padding: 0px;
  width: fit-content;
}

/* === LOADING / SPINNER ============================================ */
.spinner {
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
}

.spinner-container {
  position: relative;
}

.loader-inline {
  animation: rotation 1s linear infinite;
  border: 2px solid #000;
  border-bottom-color: transparent;
  border-radius: 50%;
  box-sizing: border-box;
  display: inline-block;
  height: 15px;
  width: 15px;
}

/* === ANIMATIONS =================================================== */
.thinking-text {
  animation: shimmer 4.5s linear infinite;
  background: linear-gradient(90deg,
      #000 0%,
      #3a3a3a 35%,
      #bdbdbd 50%,
      #3a3a3a 65%,
      #000 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  background-size: 300% 100%;
  background-position: -150% 0;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  will-change: background-position;
}

.thinking-text2 {
  animation: shimmer 4.5s linear infinite;
  background-color: #f1f5f9;
  font-weight: 600;
  padding: 20px;
  will-change: background-position;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  to {
    background-position: 150% 0;
  }
}

/* === RESPONSIVE: MOBILE =========================================== */
@media (max-width: 767px) {
  .stat-number {
    font-size: 1.5rem !important;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  .stat-detail {
    font-size: 0.7rem;
  }
}

@media (max-width: 576px) {
  #hero .lead {
    font-size: 1rem;
  }
  
  .cta-buttons .button {
    display: block;
    width: 100%;
    margin: 0.5rem auto !important;
    max-width: 300px;
  }
  
  .license-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .license-header .badge {
    align-self: flex-start;
  }
  
  .single-option {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .single-option-price {
    padding-left: 0;
    align-self: flex-start;
  }
  
  .term-details {
    flex-wrap: wrap;
  }
  
  .savings {
    margin-left: 0;
    width: 100%;
  }
  
  .month-selector {
    max-width: 100%;
  }
}

/* === ACCESSIBILITY ================================================ */
@media (prefers-reduced-motion: reduce) {
  .thinking-text {
    animation: none;
    background-position: 0 0;
  }
}

/* === FORMS ======================================================== */
.form-control-sm {
  transform: scale(0.75);
}

select {
  max-width: 100%;
}