/* main.css
   - 4th column is slightly wider, 2nd column slightly narrower
   - Increase space between rows to 4rem
   - Hide number spinners on age
   - Full file, no partial code
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 16px;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* Hide spinner arrows in number fields */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* Container */
.af-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}
.af-flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Loader */
.af-loader {
  width: 30px;
  height: 30px;
  border: 4px solid #999;
  border-top-color: transparent;
  border-radius: 50%;
  margin: 1rem auto;
  animation: spinLoader 1s linear infinite;
}
@keyframes spinLoader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Buttons */
.af-btn-primary,
.af-btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.af-btn-primary {
  background-color: #1677D2;
  color: #fff;
}
.af-btn-primary:hover {
  background-color: #125fa6;
}
.af-btn-secondary {
  background-color: #fff;
  color: #1677D2;
  border: 2px solid #1677D2;
}
.af-btn-secondary:hover {
  background-color: #1677D2;
  color: #fff;
}
.af-btn-hero {
  font-size: 1.1rem;
  padding: 0.85rem 2rem;
  border: 2px solid #fff;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.af-btn-hero:hover {
  background-color: #fff;
  color: #1677D2;
  border-color: #1677D2;
}

/* HEADER */
.af-header {
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
  padding: 1rem 0;
}
.af-header .af-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.af-nav ul {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.af-header-link {
  font-size: 0.95rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  line-height: 1.2;
  vertical-align: middle;
  color: #333;
  transition: color 0.2s;
}
.af-header-link:hover {
  color: #1677D2;
}
.af-logo {
  display: flex;
  align-items: center;
}
.af-logo-link {
  display: flex;
  align-items: center;
  color: inherit;
}
.af-logo-icon {
  width: 40px;
  height: 40px;
  border: 4px solid #1677D2;
  border-radius: 50%;
  position: relative;
  margin-right: 0.5rem;
}
.af-logo-icon::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border: 4px solid #1677D2;
  left: 35px;
  top: 35px;
  transform: rotate(45deg);
  border-radius: 2px;
}
.af-logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1677D2;
}

/* AUTH PANELS */
.af-overlay {
  display: none;
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 10;
}
.af-auth-panel {
  display: none;
  position: fixed;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 90%;
  max-width: 400px;
  padding: 1.5rem;
  z-index: 11;
  border-radius: 6px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.af-auth-panel h2 {
  margin-bottom: 1rem;
}
.af-auth-panel label {
  display: block;
  margin: 0.75rem 0 0.25rem;
}
.af-auth-panel input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.af-close-btn {
  position: absolute;
  top: 10px; 
  right: 10px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.7;
}
.af-close-btn:hover {
  opacity: 1;
}
.af-auth-error,
.af-auth-success {
  margin-top: 1rem;
  font-style: normal;
  text-align: center;
}

/* HERO */
.af-hero {
  position: relative;
  background: radial-gradient(circle at center, #1677D2 0%, #1677D2 50%, #1f8deb 100%);
  min-height: 480px;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.af-hero::before {
  content: '';
  position: absolute;
  top: -50%; 
  left: -50%;
  width: 200%; 
  height: 200%;
  background: repeating-conic-gradient(
    rgba(255,255,255,0.05) 0% 10%,
    transparent 10% 20%
  );
  animation: heroRotate 30s linear infinite;
  pointer-events: none;
}
@keyframes heroRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.af-hero-content {
  position: relative;
  padding: 3rem 0;
}
.af-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.af-hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.af-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.af-search-form input {
  border-radius: 4px;
  border: 1px solid #ccc;
  padding: 0.75rem;
  flex: 1 1 auto;
  max-width: 200px;
}
.af-age-field {
  max-width: 80px !important;
}
.af-hero-highlights {
  display: flex;
  gap: 1rem;
  justify-content: center;
  font-weight: 600;
  margin-top: 2rem;
}
.af-hero-highlights div {
  background: rgba(255,255,255,0.2);
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

/* SERVICES */
.af-services {
  padding: 3rem 1rem;
  background: #f9f9f9;
  text-align: center;
}
.af-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.af-service-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}
.af-service-card:hover {
  transform: translateY(-5px);
}
.af-service-icon {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto;
  background-color: #1677D2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-people::before,
.icon-people::after {
  content: '';
  position: absolute;
  background: #fff;
}
.icon-people::before {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 10px));
}
.icon-people::after {
  width: 24px;
  height: 18px;
  border-radius: 12px 12px 0 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.icon-phone::before,
.icon-phone::after {
  content: '';
  position: absolute;
  background: #fff;
}
.icon-phone::before {
  width: 24px;
  height: 30px;
  border: 3px solid #fff;
  border-radius: 4px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 4px));
}
.icon-phone::after {
  width: 10px;
  height: 4px;
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 8px);
}
.icon-address::before,
.icon-address::after {
  content: '';
  position: absolute;
  background: #fff;
}
.icon-address::before {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 8px));
}
.icon-address::after {
  width: 16px;
  height: 22px;
  border-radius: 8px 8px 0 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 0);
}
.icon-shield::before {
  content: '';
  position: absolute;
  background: #fff;
  width: 26px;
  height: 34px;
  top: 50%;
  left: 50%;
  border-radius: 4px 4px 12px 12px;
  transform: translate(-50%, calc(-50% - 4px));
}

/* USE CASES */
.af-use-cases {
  padding: 3rem 1rem;
}
.af-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.af-case-item {
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(45deg, #1677D2, #1f8deb) border-box;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.3s ease;
}
.af-case-item:hover {
  transform: translateY(-5px);
}

/* TESTIMONIALS */
.af-testimonials {
  padding: 3rem 1rem;
  background: #fefefe;
}
.af-testimonials .af-container {
  text-align: center;
}
.af-testimonial-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(5,1fr);
  grid-auto-rows: 180px;
  gap: 1rem;
}
.af-testimonial-tile {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: relative;
}
.af-testimonial-tile-inner {
  position: relative;
  padding: 1rem;
  width: 100%;
  height: 100%;
  text-align: center;
}
.af-testimonial-watermark {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 4rem;
  color: rgba(0,0,0,0.05);
  z-index: 0;
}
.af-testimonial-text {
  position: relative;
  z-index: 1;
  font-style: italic;
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.af-testimonial-author {
  position: relative;
  z-index: 1;
  color: #777;
  font-weight: 600;
  font-size: 0.85rem;
}
.af-row-even {
  animation: rowSlideRight 3s infinite alternate linear;
}
.af-row-odd {
  animation: rowSlideLeft 3s infinite alternate linear;
}
@keyframes rowSlideLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-5%); }
}
@keyframes rowSlideRight {
  0% { transform: translateX(0); }
  100% { transform: translateX(5%); }
}

/* CTA */
.af-cta {
  background: #1677D2;
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
}
.af-cta-content {
  max-width: 600px;
  margin: 0 auto;
}
.af-cta-content h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.af-cta-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* RESULTS PAGE */
.af-results-hero {
  background: linear-gradient(135deg, #1677D2 30%, #1f8deb 100%);
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
  margin-bottom: 2rem;
  position: relative;
}
.af-hero-texture {
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.1),
    rgba(255,255,255,0.1) 10px,
    transparent 10px,
    transparent 20px
  );
  pointer-events: none;
}
.af-results-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.af-results-subtitle {
  font-style: italic;
  color: #e0e0e0;
}
.af-scanning {
  margin-bottom: 2rem;
  text-align: center;
}
.af-scan-text {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #555;
}
.af-scan-bar {
  background: #ddd;
  width: 100%;
  height: 10px;
  position: relative;
  border-radius: 5px;
  overflow: hidden;
}
.af-scan-bar-inner {
  background: #1677D2;
  height: 100%;
  width: 0;
  transition: width 0.5s ease;
}
/* Increase space between rows => gap: 4rem */
.af-results-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-bottom: 3rem;
}
.af-result-card {
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(45deg, #d3d3d3, #f0f0f0) border-box;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.af-result-card:hover {
  transform: translateY(-3px);
}
.af-result-card-inner {
  font-size: 0.95rem;
  line-height: 1.4;
  position: relative;
}
.af-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.af-result-name {
  font-size: 1.2rem;
  color: #1677D2;
  margin: 0;
}
.af-suppress-button {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
}
/* 4 columns => col1=1fr, col2=0.8fr, col3=1fr, col4=1.2fr */
.af-result-4col {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr 1.2fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.af-record-extras {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  gap: 0.25rem;
}
.af-record-extra-item {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.af-record-icon {
  font-weight: bold;
}
.af-record-enabled {
  color: #28a745;
}
.af-record-disabled {
  color: #bbb;
}

/* REFINE BLOCK */
.af-refine-block-wide {
  background: #005BBB;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
}
.af-refine-block-wide h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.af-refine-block-wide p {
  margin-bottom: 1.5rem;
}
.af-refine-block-wide .af-search-form {
  justify-content: center;
  gap: 0.5rem;
}
.af-refine-block-wide input {
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
}
.af-refine-block-wide .af-age-field {
  max-width: 60px !important;
}
.af-refine-block-wide .af-btn-hero {
  border-color: #fff;
  color: #005BBB;
  background-color: #fff;
}
.af-refine-block-wide .af-btn-hero:hover {
  background-color: #005BBB;
  color: #fff;
  border-color: #005BBB;
}

/* HELP PAGE & FAQ */
.af-help-page {
  padding: 3rem 1rem;
}
.af-help-page h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.af-faq-list {
  margin-top: 2rem;
}
.af-faq-item {
  margin-bottom: 2rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1rem;
}
.af-faq-question {
  font-weight: 600;
  font-size: 1.1rem;
  color: #1677D2;
  margin-bottom: 0.5rem;
}
.af-faq-answer {
  color: #444;
  line-height: 1.4;
}

/* LEGAL PAGES (TOS, Privacy) */
.af-legal-page {
  padding: 3rem 1rem;
}
.af-legal-page h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.af-legal-page p {
  margin-bottom: 1rem;
  line-height: 1.5;
}
.af-legal-page h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #1677D2;
}

/* REMOVE MY DATA PAGE */
.af-remove-page {
  padding: 3rem 1rem;
}
.af-remove-container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.af-remove-page h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #1677D2;
}
.af-remove-form {
  margin-top: 1.5rem;
}
.af-remove-row {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}
.af-remove-row label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.af-remove-row input {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.af-remove-row-flex {
  flex-direction: row;
  gap: 1rem;
}
.af-remove-field {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.af-zip-field {
  max-width: 100px;
}
.af-remove-submit {
  margin-top: 1rem;
}

/* FOOTER */
.af-footer {
  background: #222 url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='2' height='2' x='10' y='10' fill='%23aaaaaa'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 80px 80px;
  color: #ccc;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  margin-top: 2rem;
}
.af-footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.af-footer-col {
  flex: 1 1 auto;
}
.af-footer-logo-col {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.af-footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.af-footer-logo-icon {
  width: 60px;
  height: 60px;
  border: 4px solid #1677D2;
  border-radius: 50%;
  background: #333;
  position: relative;
}
.af-footer-logo-icon::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border: 4px solid #1677D2;
  left: 35px;
  top: 35px;
  transform: rotate(45deg);
  border-radius: 2px;
}
.af-footer-logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1677D2;
}
.af-footer-links-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.af-footer-links-col ul {
  display: flex;
  gap: 1.5rem;
}
.af-footer-links-col a {
  color: #ccc;
  font-size: 0.9rem;
  border-bottom: 1px dotted transparent;
  transition: color 0.2s, border-bottom 0.2s;
}
.af-footer-links-col a:hover {
  color: #fff;
  border-bottom: 1px dotted #fff;
}
.af-footer-usecases {
  margin-top: 2rem;
  text-align: center;
}
.af-footer-usecases ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.af-footer-usecases li {
  background: #333;
  color: #ccc;
  border: 1px solid #444;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background-color 0.2s, color 0.2s;
}
.af-footer-usecases li:hover {
  background: #1677D2;
  color: #fff;
}
.af-footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 1rem;
  margin-top: 2rem;
}
.af-fcra-disclaimer {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #999;
  line-height: 1.4;
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
  .af-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  .af-testimonial-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
    grid-auto-rows: 200px;
  }
  .af-testimonial-tile {
    animation: none;
  }
  .af-results-list {
    gap: 4rem;
  }
  /* override col widths on mobile: each col auto-fit */
  .af-result-4col {
    grid-template-columns: repeat(auto-fit, minmax(120px,1fr));
  }
  .af-result-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .af-suppress-button {
    align-self: flex-end;
  }
}
