/* ============================================================
   eazypays.com — site.css
   Palette: terra cotta amber #d4691e / #b35315
   Fonts: Fraunces (display) · DM Sans (body)
   ============================================================ */

html { scroll-behavior: smooth; }

/* ===== CONFIG-MANAGER COMPATIBILITY ALIASES ===== */
:root {
  --aim-teal-500: var(--color-primary);
  --aim-teal-700: var(--color-secondary);
  --aim-teal-600: var(--color-accent);
  --aim-focus: 0 0 0 4px rgba(var(--color-primary-rgb), 0.22), 0 0 0 7px rgba(251, 113, 133, 0.18);
}

/* ===== UTILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== HERO ===== */
.ep-hero {
  position: relative;
  overflow: hidden;
}

/* Soft ambient glow orbs */
.ep-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  will-change: opacity;
}
.ep-orb--1 {
  width: 580px;
  height: 580px;
  background: rgba(212, 105, 30, 0.13);
  top: -160px;
  right: -100px;
  animation: ep-pulse 9s ease-in-out infinite alternate;
}
.ep-orb--2 {
  width: 440px;
  height: 440px;
  background: rgba(255, 175, 70, 0.09);
  bottom: -80px;
  left: -70px;
  animation: ep-pulse 12s ease-in-out infinite alternate-reverse;
}

@keyframes ep-pulse {
  from { opacity: 0.55; transform: scale(1); }
  to   { opacity: 1;    transform: scale(1.1); }
}

/* Hero inner grid */
.ep-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Mobile: form first, copy second */
.ep-hero-copy  { order: 2; }
.ep-hero-right { order: 1; }

/* Eyebrow label */
.ep-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 1rem;
}
.ep-eyebrow::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  flex-shrink: 0;
}

/* Headline */
.ep-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.4rem, 7vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #1c1008;
  margin: 0 0 1.25rem;
  animation: ep-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ep-headline em {
  font-style: italic;
  color: var(--color-primary);
}

/* Lead text */
.ep-lead {
  font-size: 1.0625rem;
  color: #7a5c45;
  line-height: 1.65;
  margin: 0 0 2rem;
  max-width: 44ch;
  animation: ep-rise 0.7s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Trust list */
.ep-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  animation: ep-rise 0.7s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ep-trust li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: #5c3d22;
  font-weight: 500;
}
.ep-trust li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgba(212, 105, 30, 0.1);
  border: 1.5px solid rgba(212, 105, 30, 0.35);
  color: var(--color-primary);
  font-size: 0.65rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* Form card */
.ep-form-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 0.5rem;
  box-shadow:
    0 2px 4px rgba(212, 105, 30, 0.06),
    0 10px 32px rgba(28, 16, 8, 0.1),
    0 0 0 1px rgba(212, 105, 30, 0.08);
  min-height: 520px;
  overflow: hidden;
  animation: ep-rise 0.7s 0.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ep-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile: centered copy */
@media (max-width: 899.98px) {
  .ep-headline { text-align: center; }
  .ep-eyebrow  { justify-content: center; width: 100%; }
  .ep-lead     { text-align: center; max-width: 100%; }
  .ep-trust    { align-items: center; }
  .ep-hero-inner { padding-left: 0.625rem; padding-right: 0.625rem; }
  .ep-form-card  { padding: 0; }
}

/* Desktop: side-by-side */
@media (min-width: 900px) {
  .ep-hero-inner {
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: 5rem;
    padding: 5rem 1.5rem 6rem;
    min-height: 640px;
  }
  .ep-hero-copy  { order: 1; }
  .ep-hero-right { order: 2; }
}

/* ===== STEPS SECTION ===== */
.steps-section {
  counter-reset: ep-step;
}

/* Steps heading (config-manager renders .steps-heading-block) */
.steps-heading-block {
  text-align: center;
  margin-bottom: 3rem;
}
.steps-main-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1c1008;
  margin: 0 0 0.75rem;
}
.steps-subtitle {
  font-size: 1rem;
  color: #7a5c45;
  max-width: 52ch;
  margin: 0 auto;
  line-height: 1.6;
}

/* Steps grid */
.steps-container,
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .steps-container,
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Individual step card */
.step {
  counter-increment: ep-step;
  background: #ffffff;
  border: 1px solid rgba(212, 105, 30, 0.15);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.875rem;
  box-shadow: 0 2px 8px rgba(28, 16, 8, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.step:hover {
  box-shadow: 0 6px 20px rgba(28, 16, 8, 0.1);
  transform: translateY(-2px);
}

/* Step icon tile — override config-manager injected styles with !important */
.step-icon,
.step-icon--fa {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--color-primary) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
}

/* Step number via CSS counter (replaces Font Awesome icon) */
.step-icon::before,
.step-icon--fa::before {
  content: "0" counter(ep-step);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
  font-style: normal;
}

/* Hide Font Awesome icon element */
.step-icon i,
.step-icon--fa i,
.step-icon svg { display: none !important; }

/* Step body text */
.step-body { width: 100%; }

.step-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #1c1008;
  margin: 0 0 0.375rem;
  letter-spacing: -0.01em;
}

.step-description {
  font-size: 0.9rem;
  color: #7a5c45;
  margin: 0;
  line-height: 1.6;
}

/* Loading spinner (while config-manager initialises) */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 3rem;
}
.loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(212, 105, 30, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: ep-spin 0.8s linear infinite;
}
@keyframes ep-spin { to { transform: rotate(360deg); } }
.loading-text {
  font-size: 0.875rem;
  color: #7a5c45;
  margin: 0;
}

/* ===== DISCLAIMER ===== */
.disclaimer-content {
  max-width: var(--max-width);
  margin: 0 auto;
}
.disclaimer-content p { margin: 0 0 0.875rem; }
.disclaimer-content p:last-child { margin-bottom: 0; }

/* ===== POPUP OVERLAY ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(28, 16, 8, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.popup-overlay:not([aria-hidden="true"]) {
  opacity: 1;
  pointer-events: auto;
}
.popup-content {
  background: #ffffff;
  border-radius: 18px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(28, 16, 8, 0.2);
}
.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #7a5c45;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.popup-close:hover { background: rgba(212, 105, 30, 0.08); }

/* ===== FOOTER (floating-card dark) ===== */
.footer-floating-card {
  background: #10131A;
  color: #E8EAF0;
  font-family: 'DM Sans', system-ui, sans-serif;
  padding-bottom: 24px;
  box-sizing: border-box;
}
.footer-floating-card *,
.footer-floating-card *::before,
.footer-floating-card *::after { box-sizing: border-box; }

.footer-floating-card .accent-card {
  margin: 0 16px;
  border-radius: 16px;
  padding: 22px 18px 20px;
  transform: translateY(-22px);
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
}
.footer-floating-card .accent-kicker {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
  opacity: 0.7;
}
.footer-floating-card .accent-headline {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1.15;
}
.footer-floating-card .accent-sub {
  font-size: 13px;
  margin: 0 0 16px;
  opacity: 0.82;
  line-height: 1.5;
}
.footer-floating-card .ca-row { display: grid; gap: 10px; }
.footer-floating-card .ca {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 14px 38px 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease;
}
.footer-floating-card .ca::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  transition: right .15s ease;
}
.footer-floating-card .ca:hover,
.footer-floating-card .ca:focus-visible { transform: translateY(-1px); outline: none; }
.footer-floating-card .ca:hover::after,
.footer-floating-card .ca:focus-visible::after { right: 12px; }
.footer-floating-card .ca:active { transform: translateY(0); }
.footer-floating-card .ca .ca-sub { font-size: 12px; font-weight: 500; opacity: 0.9; letter-spacing: 0; }

.footer-floating-card .ca.primary {
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.footer-floating-card .ca.primary:hover,
.footer-floating-card .ca.primary:focus-visible { background: #fdf6ee; }

.footer-floating-card .ca.secondary {
  background: rgba(255,255,255,.08);
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,.85);
}
.footer-floating-card .ca.secondary:hover,
.footer-floating-card .ca.secondary:focus-visible { background: rgba(255,255,255,.18); }

.footer-floating-card .links {
  padding: 0 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 16px;
}
.footer-floating-card .links .col-full { grid-column: 1 / -1; margin-top: 28px; }

@media (min-width: 600px) {
  .footer-floating-card .links { grid-template-columns: 1fr 1fr 1fr; }
  .footer-floating-card .links .col-full { grid-column: auto; margin-top: 0; }
}

.footer-floating-card .col-title {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
  color: #6B7280;
}
.footer-floating-card .col-link {
  display: block;
  font-size: 13.5px;
  padding: 5px 0;
  text-decoration: none;
  color: #B7C0D4;
  transition: color .15s ease;
  cursor: pointer;
}
.footer-floating-card .col-link:hover,
.footer-floating-card .col-link:focus-visible { color: #ffffff; outline: none; }

.footer-floating-card .meta {
  padding: 0 22px;
  margin-top: 22px;
  font-size: 12px;
  line-height: 1.6;
  color: #6B7589;
  text-align: center;
}
.footer-floating-card .meta-divider { height: 1px; margin: 0 0 16px; background: #1E232E; }
.footer-floating-card .meta-name { display: block; font-size: 13px; font-weight: 500; color: #C8CCD8; margin-bottom: 2px; }
.footer-floating-card .meta-address { display: block; }
.footer-floating-card .meta-copy { margin-top: 8px; display: block; }

@media (min-width: 768px) {
  .footer-floating-card { padding: 56px 0 28px; }
  .footer-floating-card .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: minmax(320px, 380px) 1fr;
    gap: 56px;
    align-items: start;
  }
  .footer-floating-card .accent-card {
    margin: 0;
    transform: none;
    border-radius: 18px;
    padding: 28px 28px 26px;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
  }
  .footer-floating-card .accent-kicker { font-size: 11px; margin-bottom: 12px; }
  .footer-floating-card .accent-headline { font-size: 28px; margin-bottom: 8px; }
  .footer-floating-card .accent-sub { font-size: 14px; margin-bottom: 20px; }
  .footer-floating-card .ca { padding: 16px 42px 16px 18px; }
  .footer-floating-card .ca::after { right: 18px; width: 8px; height: 8px; }
  .footer-floating-card .ca:hover::after,
  .footer-floating-card .ca:focus-visible::after { right: 14px; }
  .footer-floating-card .links {
    padding: 0;
    gap: 0 40px;
    grid-template-columns: 1fr 1fr;
  }
  .footer-floating-card .links .col-full { grid-column: 1 / -1; margin-top: 28px; }
  .footer-floating-card .col-title { font-size: 11px; margin-bottom: 14px; }
  .footer-floating-card .col-link { font-size: 14px; padding: 6px 0; }
  .footer-floating-card .meta {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 22px 40px 0;
    font-size: 13px;
    border-top: 1px solid #1E232E;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
  .footer-floating-card .meta-divider { display: none; }
  .footer-floating-card .meta-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .footer-floating-card .meta-name { font-size: 14px; font-weight: 600; color: #E8EAF0; margin: 0; }
  .footer-floating-card .meta-address { font-size: 12px; opacity: 0.75; }
  .footer-floating-card .meta-copy { margin: 0; font-size: 12px; display: block; }
}

@media (min-width: 1100px) {
  .footer-floating-card .links { grid-template-columns: 1fr 1fr 1fr; }
  .footer-floating-card .links .col-full { grid-column: auto; margin-top: 0; }
}

/* ============================================================
   Reassurance / CTA band
   ============================================================ */
.ep-reassure {
  position: relative;
  overflow: hidden;
  background: #1c1008;
  padding: 5.5rem 1.5rem;
  text-align: center;
}

/* Warm amber radial glow */
.ep-reassure-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 65% at 50% 50%, rgba(212, 105, 30, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.ep-reassure-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

/* Eyebrow */
.ep-reassure-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 1.25rem;
}
.ep-reassure-eyebrow::before,
.ep-reassure-eyebrow::after {
  content: '';
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  opacity: 0.55;
}

/* Headline */
.ep-reassure-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #fdf6ee;
  margin: 0 0 2.75rem;
}
.ep-reassure-headline em {
  font-style: italic;
  color: var(--color-primary);
}

/* Stats row */
.ep-reassure-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}

.ep-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.ep-stat-value {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.ep-stat-label {
  font-size: 0.8rem;
  color: rgba(253, 246, 238, 0.55);
  font-weight: 500;
}

.ep-stat-divider {
  width: 1px;
  height: 2.75rem;
  background: rgba(253, 246, 238, 0.1);
  flex-shrink: 0;
}

@media (max-width: 479.98px) {
  .ep-stat-divider { display: none; }
  .ep-reassure-stats { gap: 1.75rem 2.5rem; }
}

/* Body copy */
.ep-reassure-body {
  font-size: 1rem;
  color: rgba(253, 246, 238, 0.6);
  line-height: 1.75;
  margin: 0 auto 2.75rem;
  max-width: 50ch;
}

/* Apply Now button */
.ep-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: #ffffff;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 1rem 2.5rem;
  border-radius: 14px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 20px rgba(212, 105, 30, 0.45);
}
.ep-apply-btn::after {
  content: '→';
  font-size: 1.1em;
  transition: transform 0.15s ease;
}
.ep-apply-btn:hover,
.ep-apply-btn:focus-visible {
  background: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212, 105, 30, 0.5);
  outline: none;
}
.ep-apply-btn:hover::after,
.ep-apply-btn:focus-visible::after { transform: translateX(4px); }
.ep-apply-btn:active { transform: translateY(0); }
