/* ==========================================================================
   Roundpay Technomedia — Footer Redesign
   Premium FinTech / SaaS aesthetic — glassmorphism, glow, soft gradients
   ========================================================================== */

:root {
  /* Background */
  --bg-1: #071526;
  --bg-2: #0B1F38;
  --bg-3: #102A4C;
  --bg-4: #12335A;

  /* Brand */
  --primary: #C12527;
  --secondary: #23F5C5;

  /* Text */
  --text-100: #FFFFFF;
  --text-70: #C5D2E5;
  --text-50: #8EA7C5;

  /* Border / Glow */
  --border-soft: rgba(255, 255, 255, 0.08);
  --glow:rgb(193 37 39 / 26%);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@media screen and (min-width: 1900px) {.rp-footer .container-fluid {
    max-width:1680px;
}
.rp-security-card i {
    font-size: 2.9rem;
    color: #ffffffad;
}
.rp-security-card h5 {
    color: #ffffff57;
    font-size: 20px;
    font-weight: 400;
}
.rp-security-card p {
    padding: 0px 31px;
    color: #ffffff54;
    font-size: 16px;
    padding-bottom: 22px;
}

}


/* ==========================================================================
   FOOTER SHELL
   ========================================================================== */

.rp-footer {
  position: relative;
  background:
   radial-gradient(1200px 600px at 15% -10%, rgba(24, 210, 178, 0.08), transparent 60%), radial-gradient(900px 500px at 90% 0%, rgba(35, 245, 197, 0.06), transparent 55%), linear-gradient(180deg, #202531 0%, #1b1e25 40%, #1f2430 100%);
  padding-top: 100px;
  overflow: hidden;
}

.rp-footer::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 400px;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  opacity: 0.35;
  filter: blur(40px);
  pointer-events: none;
}

/* ==========================================================================
   GLASS CARD BASE
   ========================================================================== */

.glass-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  /*border: 1px solid var(--border-soft);*/
  border-radius: 15px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* ==========================================================================
   SECTION 1 — FLOATING CTA
   ========================================================================== */

.rp-cta-wrap {
  position: relative;
  z-index: 2;
  margin-bottom: -80px;
}

.rp-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 44px 48px;
  box-shadow:
    /*0 30px 60px -20px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 80px -20px var(--glow);*/
}

.rp-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  /*background: linear-gradient(120deg, rgb(193 37 39 / 50%), rgba(255, 255, 255, 0) 40%, rgb(193 37 39 / 35%));*/
  -webkit-mask: linear-gradient(#1d252b 0 0) content-box, linear-gradient(#212d36 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.rp-cta-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1 1 420px;
  min-width: 280px;
}

.rp-cta-icon {
  flex-shrink: 0;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 1.6rem;
    color: #fcfcfc;
    background: radial-gradient(circle at 30% 30%, rgb(193 37 39 / 25%), rgb(193 37 39 / 4%));
    border: 1px solid rgb(193 37 39 / 30%);
    box-shadow: 0 0 30px -6px var(--glow);
    animation: floaty 4.5s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.rp-cta-heading {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 700;
  color: var(--text-100);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.text-grad {
  background: linear-gradient(90deg, #d8282a, #f53a3c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rp-cta-desc {
  margin: 0;
  color: var(--text-50);
  font-size: 0.98rem;
  max-width: 480px;
}

.rp-cta-right {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.rp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 38px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 7px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}

.rp-btn i {
  font-size: 0.95rem;
  transition: transform 0.35s var(--ease);
}

.rp-btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, #c12527, #c12527);
  box-shadow: 0 10px 25px -8px var(--glow)!important;
}

.rp-btn-primary:hover {
  color: #04231d;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -8px var(--glow);
}

.rp-btn-primary:hover i {
  transform: translateX(4px);
}

.rp-btn-secondary {
  color: var(--text-100);
  background: transparent;
     border-color: rgb(255 255 255 / 55%);
    border-width: 1.8px;
}

.rp-btn-secondary:hover {
  color: var(--text-100);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

.rp-btn-outline {
  color: var(--text-70);
  background: transparent;
      border-color: rgb(255 255 255 / 55%);
    border-width: 1.8px;
}

.rp-btn-outline:hover {
  color: var(--primary);
  border-color: #C12527;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -12px var(--glow);
}

/* ==========================================================================
   SECTION 2 — MAIN FOOTER
   ========================================================================== */

.rp-main {
  position: relative;
  z-index: 1;
  padding: 140px 0 64px;
}

/* Footer column layout — CSS Grid, explicit columns so nothing wraps unexpectedly */
.rp-footer-grid {
  display: grid;
  grid-template-columns:
    minmax(280px, 1.6fr)
    minmax(80px, 0.7fr)
    minmax(110px, 0.9fr)
    minmax(130px, 0.9fr)
    minmax(110px, 0.9fr)
    minmax(160px, 1fr);
  grid-template-areas: "brand company services software resources contact";
  column-gap: 28px;
  row-gap: 48px;
  align-items: start;
      margin: 0 20px;
}

.rp-col-brand     { grid-area: brand; }
.rp-col-company   { grid-area: company; }
.rp-col-services  { grid-area: services; }
.rp-col-software  { grid-area: software; }
.rp-col-resources { grid-area: resources; }
.rp-col-contact   { grid-area: contact; min-width: 0; }

.rp-col {
  min-width: 0; /* allow long words/links to wrap instead of forcing column growth */
}

/* Brand */
.rp-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.rp-logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    /* font-size: 1.1rem; */
    /* color: #04231d; */
    /* background: linear-gradient(; */

    135deg, #f4e4e4, #ffffff) box-shadow: 0 8px 20px -6px var(--glow);
}
.rp-logo-text {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-100);
  letter-spacing: -0.01em;
}

.rp-logo-text em {
  font-style: normal;
  font-weight: 500;
  color: var(--text-50);
}

.rp-brand-desc {
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text-50);
  max-width: 380px;
  margin-bottom: 24px;
}

/* Feature pills */
.rp-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.rp-feature-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.02);
  height: 100%;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}

.rp-feature-pill:hover {
      border-color: rgb(193 37 39 / 35%);
    background: rgb(193 37 39 / 5%);
    transform: translateY(-2px);
}

.rp-feature-pill i {
     font-size: 1.55rem;
    color: #ffffff;
    flex-shrink: 0;
}

.rp-feature-pill div {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.rp-feature-pill strong {
     color: var(--text-100);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: .5px;
}

.rp-feature-pill span {
  color: var(--text-50);
  font-size: 0.78rem;
}

/* Newsletter */
.rp-newsletter {
  padding: 22px;
  margin-bottom: 24px;
}

.rp-newsletter h4 {
  color: var(--text-100);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.rp-newsletter p {
  color: var(--text-50);
  font-size: 0.85rem;
  margin: 0 0 16px;
  line-height: 1.6;
}

.rp-newsletter-form {
  display: flex;
  gap: 10px;
  /*flex-wrap: wrap;*/
}

.rp-newsletter-form .form-control {
  flex: 1 1 180px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  color: var(--text-100);
  border-radius: 5px;
  padding: 12px 18px;
  font-size: 0.88rem;
}

.rp-newsletter-form .form-control::placeholder {
  color: var(--text-50);
}

.rp-newsletter-form .form-control:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(24, 210, 178, 0.18);
  border-color: rgba(24, 210, 178, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

/* Social */
.rp-social-label {
  display: block;
  color: var(--text-50);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.rp-social-icons {
  display: flex;
  gap: 10px;
}

.rp-social-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  color: var(--text-70);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s var(--ease);
}

.rp-social-icons a:hover {
  color: #04231d;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 10px 22px -6px var(--glow);
}

/* Column titles */
.rp-col-title {
  color: var(--text-100);
     font-size: 0.95rem;
    font-weight: 500;
    margin: 0 0 18px;
    position: relative;
    padding-bottom: 12px;
    letter-spacing: .5px;
}

.rp-col-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #fff6f6, #f7f7f7);
}

.rp-col-title-spaced {
  margin-top: 32px;
}

/* Link lists */
.rp-link-list li {
  margin-bottom: 12px;
}

.rp-link-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-50);
  font-size: 0.9rem;
  transition: color 0.3s var(--ease), gap 0.3s var(--ease), padding-left 0.3s var(--ease);
}

.rp-link-list a i {
  font-size: 0.7rem;
  color: #f6e1e273;
  opacity: 1;
  transform: translateX(-4px);
  transition: all 0.3s var(--ease);
}

.rp-link-list a:hover {
  color: var(--text-100);
  padding-left: 2px;
}

.rp-link-list a:hover i {
  opacity: 1;
  transform: translateX(0);
}

/* Contact list */
.rp-contact-list {
  margin-bottom: 20px;
}

.rp-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--text-70);
}

.rp-contact-list i {
     flex-shrink: 0;
    margin-top: 3px;
    /* width: 34px; */
    /* height: 34px; */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #f9eeee;
    /* background: rgba(24, 210, 178, 0.08); */
    /* border: 1px solid rgba(24, 210, 178, 0.18); */
    font-size: 0.85rem;
}

.rp-map-btn {
  width: 100%;
  margin-bottom: 24px;
}

/* Security card */
.rp-security-card-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
      padding-bottom: 6px;
}
.rp-security-card p {
      padding: 0px 20px;
    color: #ffffff54;
    font-size: 14px;
    padding-bottom: 22px;
}
.rp-security-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.2rem;
  color: var(--primary);
  background: radial-gradient(circle at 30% 30%, rgba(24, 210, 178, 0.25), rgba(24, 210, 178, 0.04));
  border: 1px solid rgba(24, 210, 178, 0.3);
}

.rp-security-card strong {
  display: block;
  color: var(--text-100);
  font-size: 0.9rem;
  font-weight: 700;
}

.rp-security-card span {
  color: var(--text-50);
  font-size: 0.8rem;
}

/* ==========================================================================
   BOTTOM BAR
   ========================================================================== */

.rp-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 22px 0;
  position: relative;
  z-index: 1;
}

.rp-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.rp-copyright {
  margin: 0;
  color: var(--text-50);
  font-size: 0.84rem;
}

.rp-bottom-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.rp-bottom-links a {
  color: var(--text-50);
  font-size: 0.84rem;
  transition: color 0.3s var(--ease);
}

.rp-bottom-links a:hover {
  color: var(--primary);
}

.rp-bottom-badges {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.rp-bottom-badges li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-50);
  font-size: 0.82rem;
}

.rp-bottom-badges i {
  color: var(--primary);
  font-size: 0.85rem;
}

.rp-heart {
  color: #ff5c7a;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Laptop: 992px – 1199.98px — still one row, tighter proportions */
@media (max-width: 1199.98px) and (min-width: 992px) {
  .rp-cta {
    padding: 36px;
  }

  .rp-main {
    padding-top: 220px;
  }

  .rp-footer-grid {
    grid-template-columns:
      minmax(200px, 1.2fr)
      minmax(70px, 0.7fr)
      minmax(100px, 0.9fr)
      minmax(115px, 0.9fr)
      minmax(100px, 0.9fr)
      minmax(180px, 1.1fr);
    column-gap: 20px;
    row-gap: 40px;
  }
}

/* Tablet: 768px – 991.98px — 2-column grid, brand & contact span full width */
@media (max-width: 991.98px) {
  .rp-cta {
    padding: 36px;
  }

  .rp-cta-right {
    width: 100%;
  }

  .rp-cta-right .rp-btn {
    flex: 1 1 auto;
  }

  .rp-main {
    padding-top: 220px;
  }

  .rp-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "brand   brand"
      "company services"
      "software resources"
      "contact contact";
    column-gap: 32px;
    row-gap: 44px;
  }
}

/* Mobile: below 768px — single column, stacked in source order */
@media (max-width: 767.98px) {
  .rp-cta-wrap {
    margin-bottom: -40px;
  }

  .rp-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
  }

  .rp-cta-right {
    flex-direction: column;
    width: 100%;
  }

  .rp-cta-right .rp-btn {
    width: 100%;
  }

  .rp-main {
    padding-top: 180px;
    padding-bottom: 40px;
  }

  .rp-footer-grid {
    grid-template-columns: 1fr;
    grid-template-areas: none;
    row-gap: 48px;
  }

  .rp-col-brand,
  .rp-col-company,
  .rp-col-services,
  .rp-col-software,
  .rp-col-resources,
  .rp-col-contact {
    grid-area: auto;
  }

  .rp-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rp-newsletter-form {
    flex-direction: column;
  }

  .rp-newsletter-form .btn {
    width: 100%;
  }

  .rp-social-icons {
    justify-content: center;
  }

  .rp-social-label {
    text-align: center;
  }

  .rp-col-brand {
    text-align: center;
  }

  .rp-col-brand .rp-brand {
    justify-content: center;
  }

  .rp-col-brand .rp-brand-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .rp-map-btn {
    width: 100%;
  }

  .rp-bottom-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .rp-bottom-links,
  .rp-bottom-badges {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .rp-cta-icon {
    width: 56px;
    height: 56px;
    font-size: 1.3rem;
  }

  .rp-cta-heading {
    font-size: 1.2rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.btn-subscribe {
        padding: 8px 12px;
    font-weight: 400;
    font-size: 15px;
}

.rp-security-card i {
        font-size: 2.9rem;
    color:#ffffffad;
}
.rp-security-card h5 {
  color: #ffffff57;
    font-size: 16px;
    font-weight: 400;
}

.rp-bottom-badges li::after {
      content: "";
    background: #ffffff61;
    width: 1.5px;
    height: 100%;
    /* left: 4px; */
    position: relative;
    left: 10px;
}

.rp-bottom-badges li:last-child::after {
    content:none;
}