/* ==========================================================================
   Prime Reach Publishers — custom styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Skip link (keyboard / screen reader)
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10001;
  padding: 12px 20px;
  background: var(--heading-color, #001726);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 16px;
  outline: 2px solid var(--primary-color, #0095ff);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Thank-you + payment outcome pages (minimal shell)
   -------------------------------------------------------------------------- */

.prp-slim-site-header {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(1, 13, 9, 0.08);
  background: #fff;
}

.prp-slim-site-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.prp-slim-site-header img {
  max-height: 44px;
  width: auto;
}

.prp-slim-site-header nav {
  display: flex;
  align-items: center;
  gap: 12px 20px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
}

.prp-slim-site-header nav a {
  color: var(--heading-color, #001726);
  text-decoration: none;
}

.prp-slim-site-header nav a:hover {
  color: var(--primary-color, #0095ff);
}

.prp-thank-you-main {
  max-width: 720px;
  margin: 80px auto;
  padding: 24px;
  font-family: var(--base-font, "Inter", sans-serif);
  text-align: center;
}

.prp-thank-you-main .prp-logo-link {
  display: inline-block;
  margin-bottom: 35px;
}

.prp-thank-you-main .prp-logo-link img {
  max-width: 220px;
  height: auto;
}

.prp-payment-outcome {
  padding-top: 60px;
  padding-bottom: 80px;
}

.footer-badges-inner--balanced {
  justify-content: center !important;
}

/* --------------------------------------------------------------------------
   Home page — books marquee
   -------------------------------------------------------------------------- */

.pr-books-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-bottom: 55px;
}

.pr-books-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: prBooksScroll 28s linear infinite;
}

.pr-books-marquee:hover .pr-books-track {
  animation-play-state: paused;
}

.pr-book-item {
  flex: 0 0 auto;
  text-align: center;
}

.pr-book-item img {
  height: 250px;
  width: auto;
  display: block;
  background: transparent !important;
  box-shadow: none !important;
}

/* Edge fade */
.pr-books-marquee::before,
.pr-books-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.pr-books-marquee::before {
  left: 0;
  background: linear-gradient(
    to right,
    var(--section-bg, #ffffff) 0%,
    transparent 100%
  );
}

.pr-books-marquee::after {
  right: 0;
  background: linear-gradient(
    to left,
    var(--section-bg, #ffffff) 0%,
    transparent 100%
  );
}

@keyframes prBooksScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 991px) {
  .pr-books-track {
    gap: 24px;
    animation-duration: 22s;
  }

  .pr-book-item img {
    height: 210px;
  }

  .pr-books-marquee::before,
  .pr-books-marquee::after {
    width: 70px;
  }
}

@media (max-width: 767px) {
  .pr-book-item img {
    height: 180px;
  }
}

/* --------------------------------------------------------------------------
   Reduced-motion: respect user preference for the marquee
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .pr-books-track {
    animation: none;
  }
}

/* Footer contact link colors */
.main-footer .footer-widget .fa-envelope,
.main-footer .footer-widget .fa-phone,
.main-footer .footer-widget .fa-map-marker-alt {
  color: #ffffff;
}

.main-footer .footer-widget a[href^="mailto:"],
.main-footer .footer-widget a[href^="tel:"],
.main-footer .footer-widget a[href^="mailto:"]:visited,
.main-footer .footer-widget a[href^="tel:"]:visited,
.main-footer .footer-widget a[href^="mailto:"]:hover,
.main-footer .footer-widget a[href^="tel:"]:hover,
.main-footer .footer-widget a[href^="mailto:"]:focus,
.main-footer .footer-widget a[href^="tel:"]:focus,
.main-footer .footer-widget a[href^="mailto:"]:active,
.main-footer .footer-widget a[href^="tel:"]:active {
  color: #ffffff !important;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Focus-visible outlines (WCAG 2.4.7 compliance)
   -------------------------------------------------------------------------- */

*:focus-visible {
  outline: 2px solid var(--primary-color, #0095ff);
  outline-offset: 2px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.form-control:focus-visible {
  outline: 2px solid var(--primary-color, #0095ff);
  outline-offset: 0;
  border-color: var(--primary-color, #0095ff);
  box-shadow: 0 0 0 3px rgba(0, 149, 255, 0.15);
}

a:focus-visible {
  outline: 2px solid var(--primary-color, #0095ff);
  outline-offset: 2px;
  border-radius: 2px;
}

.theme-btn:focus-visible,
.light-btn:focus-visible {
  outline: 2px solid var(--primary-color, #0095ff);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Cookie consent banner
   -------------------------------------------------------------------------- */

#cookie-consent {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--heading-color, #001726);
  color: #fff;
  padding: 16px 24px;
  font-family: var(--base-font, "Inter", sans-serif);
  font-size: 14px;
  line-height: 1.5;
}

#cookie-consent .cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

#cookie-consent p {
  margin: 0;
  flex: 1;
  min-width: 240px;
}

#cookie-consent a {
  color: var(--primary-color, #0095ff);
  text-decoration: underline;
}

#cookie-consent .cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

#cookie-consent button {
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition:
    opacity 0.3s,
    outline 0.2s;
}

#cookie-consent .cookie-decline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

#cookie-consent .cookie-accept {
  background: var(--primary-color, #0095ff);
  color: #fff;
  border: none;
  font-weight: 600;
}

#cookie-consent button:hover {
  opacity: 0.85;
}

#cookie-consent button:focus-visible {
  outline: 2px solid var(--primary-color, #0095ff);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Cookie settings trigger (floating, bottom-left)
   -------------------------------------------------------------------------- */

#cookie-settings-trigger {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 9998;
  background: var(--heading-color, #001726);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s;
}

#cookie-settings-trigger:hover {
  opacity: 0.85;
}

#cookie-settings-trigger:focus-visible {
  outline: 2px solid var(--primary-color, #0095ff);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Legal page content (moved from inline <style>)
   -------------------------------------------------------------------------- */

.legal-page-content h3 {
  margin-top: 35px;
  margin-bottom: 15px;
}

.legal-page-content p,
.legal-page-content li {
  color: var(--base-color, #696969);
  line-height: 1.9;
}

.legal-page-content ul {
  padding-left: 20px;
}

.legal-page-content .updated-note {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 30px;
  background: var(--lighter-color, #f1f5ff);
  color: var(--heading-color, #001726);
  font-weight: 600;
  margin-bottom: 25px;
}

/* --------------------------------------------------------------------------
   Footer layout helpers (moved from inline styles)
   -------------------------------------------------------------------------- */

.footer-widget > p.text-white {
  max-width: 420px;
}

.footer-badges-row {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-badges-container {
  justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   Print styles
   -------------------------------------------------------------------------- */

@media print {
  .preloader,
  .main-header,
  .scroll-top,
  #cookie-consent,
  #cookie-settings-trigger,
  .footer-top-newsletter,
  .social-style-one,
  .menu-btns,
  .h-captcha {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
    line-height: 1.5;
  }

  .page-wrapper {
    overflow: visible;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  a[href^="mailto:"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}

/* --------------------------------------------------------------------------
   Payment page — contact layout version
   -------------------------------------------------------------------------- */

.payment-form-card {
  position: relative;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.payment-option {
    position: relative;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-option-label {
    display: block;
    height: 100%;
    cursor: pointer;
    padding: 22px;
    border-radius: 15px;
    background: #ffffff;
    border: 1px solid rgba(1, 13, 9, 0.08);
    transition: 0.3s;
}

.payment-option-label strong {
    display: block;
    font-family: var(--heading-font, 'Merriweather', serif);
    color: var(--heading-color, #001726);
    font-size: 17px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.payment-option-label span {
    display: block;
    color: var(--base-color, #696969);
    font-size: 15px;
    line-height: 1.5;
}

.payment-option input[type="radio"]:checked + .payment-option-label {
    border-color: var(--primary-color, #0095ff);
    box-shadow: 0 0 0 3px rgba(0, 149, 255, 0.14);
}

.payment-option input[type="radio"]:focus-visible + .payment-option-label {
    outline: 2px solid var(--primary-color, #0095ff);
    outline-offset: 3px;
}

.payment-custom-wrapper {
    display: none;
}

.payment-custom-wrapper.is-visible {
    display: block;
}

.payment-summary {
    padding: 22px 25px;
    border-radius: 15px;
    background: #ffffff;
    border: 1px solid rgba(1, 13, 9, 0.08);
    margin-bottom: 20px;
}

.payment-summary h5 {
    margin-bottom: 6px;
}

.payment-summary p {
    margin-bottom: 0;
}

.payment-error {
    display: none;
    color: #b42318;
    background: #fff3f3;
    border: 1px solid rgba(180, 35, 24, 0.18);
    border-radius: 12px;
    padding: 12px 15px;
    margin-top: 18px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.payment-error.is-visible {
    display: block;
}

.payment-note {
    font-size: 14px;
    line-height: 1.7;
    margin-top: 18px;
    margin-bottom: 0;
}

.payment-submit-btn {
    justify-content: center;
}

@media (max-width: 767px) {
    .payment-options {
        grid-template-columns: 1fr;
    }
}
