:root {
  /* Elegant Palette */
  --primary-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --secondary-gradient: linear-gradient(to right, #0063f6 0%, #00f6f6 100%);
  --primary-dark: #2c3e50;
  --accent-color: #0063f6;
  --white: #ffffff;
  --off-white: #fdfdfd;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --modal-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  --flow-color: #e0f2ff;

  /* Fixed bars: promo bar above the navbar */
  --nav-h: 90px;
  --promo-h: 40px;
  --markup-del: #f2a99e; /* proofreader's red for struck text on the dark promo bar */

  /* Names still referenced by inline page styles (404 page) */
  --paper: #ffffff;
  --line: #e9ecef;
  --navy-3: var(--accent-color);
  --gold: #4facfe;
  --text-muted: #6c757d;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.1);
  --radius-lg: 20px;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--primary-dark);
  background-color: var(--off-white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
  /* Elegant serif for headings */
}

h2,
h4 {
  color: #000000;
}

/* --- Animations --- */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(107, 129, 255, 0.4);
  }

  70% {
    box-shadow: 0 0 0 20px rgba(107, 117, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(107, 129, 255, 0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* --- Navbar --- */
.navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: 15px 0;
}

.navbar-brand {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  color: #2c3e50;
}

.navbar-brand span {
  color: #4facfe;
}

.navbar-brand-logo {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .navbar-brand-logo {
    height: 50px;
    max-width: 220px;
  }
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  padding: 160px 0 120px;
  background: var(--secondary-gradient);
  color: white;
  overflow: hidden;
}

/* Dark overlay for readability */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgb(0 0 0 / 85%), rgb(0 0 0 / 80%));
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.highlight-text {
  background: var(--accent-color);
  /*background: linear-gradient(to right, #ff9966, #ff5e62);*/
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Attractive CTAs --- */
.btn-cta-pulse {
  background: var(--accent-color);
  /*background: linear-gradient(45deg, #ff6b6b, #ff8e53);*/
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
  animation: pulse-glow 2s infinite;
  transition: transform 0.3s ease;
}

.btn-cta-pulse:hover {
  transform: translateY(-3px) scale(1.02);
  color: white;
  background: #022f53;
  box-shadow: 0 15px 35px rgba(255, 107, 107, 0.6);
}

.btn-outline-glass {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.btn-outline-glass:hover {
  background: white;
  color: var(--primary-dark);
}

/* --- Floating Action Button --- */
.floating-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 100;
  background: linear-gradient(45deg, #00f2fe, #4facfe);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 10px 25px rgba(0, 198, 255, 0.5);
  cursor: pointer;
  transition: transform 0.3s ease;
  animation: float 4s ease-in-out infinite;
}

.floating-btn:hover {
  transform: scale(1.1);
}

/* --- Elegant Modal --- */
.modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--modal-shadow);
}

.modal-body {
  padding: 0;
}

.modal-left-img {
  background: var(--primary-dark) url("../img/modal-editor.webp") center 26% / cover;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  position: relative;
}

.modal-left-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.modal-quote {
  position: relative;
  color: white;
  z-index: 2;
  font-size: 1.1rem;
  font-style: italic;
}

.modal-form-container {
  padding: 50px 40px;
  background: #fff;
}

/* Custom Modal Transition */
.modal.fade .modal-dialog {
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.show .modal-dialog {
  transform: scale(1);
  opacity: 1;
}

/* --- Services --- */
.service-card {
  background: white;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(79, 172, 254, 0.2);
}

.service-icon-box {
  width: 80px;
  height: 80px;
  background: #f0f7ff;
  color: #4facfe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 25px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon-box {
  background: #4facfe;
  color: white;
}

.service-image-box {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.service-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-image-box img {
  transform: scale(1.1);
}

.service-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.service-card-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card h4 {
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.service-card p {
  flex: 1;
  margin-bottom: 20px;
}

/* --- Process Section --- */
#process {
  padding: 80px 0;
  background-color: #f8f9fa;
  /* Light background for contrast */
  position: relative;
}

.process-step {
  position: relative;
  padding: 20px;
  text-align: center;
  z-index: 1;
}

.process-step-icon {
  width: 70px;
  height: 70px;
  line-height: 70px;
  font-size: 1.5rem;
  margin: 0 auto 15px;
  background: #fff;
  color: var(--primary-dark);
  border-radius: 50%;
  border: 5px solid var(--flow-color);
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.process-step:hover .process-step-icon {
  transform: scale(1.1);
  border-color: #4facfe;
  color: #4facfe;
}

.process-arrow {
  position: absolute;
  top: 50px;
  left: 50%;
  right: -50%;
  height: 2px;
  background-color: var(--flow-color);
  z-index: 0;
}

.process-arrow i {
  position: absolute;
  right: -10px;
  top: -12px;
  color: var(--primary-dark);
  font-size: 1.5rem;
  background: #f8f9fa;
  padding: 0 5px;
}

/* Remove arrows for the last step and on mobile */
.process-step:last-child .process-arrow {
  display: none;
}

@media (max-width: 767px) {
  .process-arrow {
    display: none;
  }
}

/* Step Counter Styling */
.step-number {
  position: absolute;
  top: 0%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4facfe;
  width: 40px;
  height: 40px;
  line-height: 30px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 2rem;
  z-index: 2;
  transition: all 0.3s ease;
}

/* Pointer devices only: a tap leaves :hover stuck on touch screens */
@media (hover: hover) {
  .process-step:hover .step-number {
    background: linear-gradient(45deg, #00f2fe, #4facfe);
    color: #fff;
  }
}

/* --- Testimonials Section --- */
#testimonials {
  padding: 100px 0;
  /* Increased padding */
  /* Dramatic Dark Gradient Background */
  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
  color: white;
  /* Text color for the section header */
}

#testimonials h6 {
  color: #00f2fe !important;
  /* Bright cyan accent for subtitle */
}

#testimonials h2 {
  color: white;
  /* White title for contrast */
}

/* Carousel Customization for contrast */
.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #00f2fe;
  /* Bright cyan */
  opacity: 0.7;
  transition:
    opacity 0.3s,
    transform 0.3s;
}

.carousel-indicators .active {
  opacity: 1;
  background-color: var(--accent-color);
  /* Red/Orange active color */
  transform: scale(1.2);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none;
  color: #00f2fe;
  /* Bright arrows against dark background */
  font-size: 2.5rem;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  opacity: 1;
}

/* --- Footer --- */
/* --- Footer Redesign --- */
footer {
  position: relative;
  background: #1a1c20;
  color: #b2bec3;
  padding-top: 0;
  overflow: hidden;
  font-size: 0.95rem;
}

.footer-wave {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.footer-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.footer-wave .shape-fill {
  fill: var(--off-white);
}

.footer-content {
  padding-top: 100px;
  padding-bottom: 60px;
  position: relative;
  z-index: 1;
}

.footer-brand {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: white;
  margin-bottom: 20px;
  display: inline-block;
  text-decoration: none;
}

.footer-brand span {
  color: #4facfe;
}

.footer-brand-logo {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.footer-brand-logo:hover {
  transform: scale(1.05);
}

@media (max-width: 767px) {
  .footer-brand-logo {
    height: 40px;
    max-width: 180px;
  }
}

.footer-desc {
  line-height: 1.8;
  margin-bottom: 30px;
  opacity: 0.8;
}

.footer-heading {
  color: white;
  font-weight: 700;
  margin-bottom: 25px;
  font-size: 1.2rem;
  position: relative;
  display: inline-block;
  font-family: "Playfair Display", serif;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 40px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
}

.footer-links {
  padding-left: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #b2bec3;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-links a:hover {
  color: #4facfe;
  transform: translateX(5px);
  padding-left: 5px;
}

.footer-links a::before {
  content: "\u203a";
  position: absolute;
  left: -10px;
  opacity: 0;
  transition: all 0.3s ease;
  color: #4facfe;
}

.footer-links a:hover::before {
  /* opacity: 1; */
  left: -5px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--primary-gradient);
  transform: translateY(-5px);
  color: white;
  box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
  border-color: transparent;
}

.footer-newsletter-form {
  position: relative;
  margin-bottom: 20px;
}

.footer-newsletter-form input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 15px 20px;
  border-radius: 50px;
  width: 100%;
  padding-right: 50px;
  transition: all 0.3s ease;
}

.footer-newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter-form input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #4facfe;
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.footer-newsletter-form button {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  width: 40px;
  border-radius: 50%;
  background: var(--primary-gradient);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.footer-newsletter-form button:hover {
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 25px 0;
  background: #15171a;
  font-size: 0.9rem;
}

.footer-bottom-links a {
  color: #b2bec3;
  margin-left: 20px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: white;
}

.footer-bottom .footer-disclaimer {
  color: #979797;
}

/* Mobile Responsive Modal */
@media (max-width: 991px) {
  .modal-left-img {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

/* --- New #about Section Styling (WOW Factor) --- */
#about {
  padding: 100px 0;
  background-color: var(--off-white);
}

/* Elegant Feature Card with Glass effect */
.feature-card-elegant {
  background: rgba(255, 255, 255, 0.9);
  /* Subtle transparency */
  backdrop-filter: blur(10px);
  /* The glass effect */
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-left: 5px solid;
  border-image: var(--primary-gradient) 1;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

@media screen and (min-width: 992px) {
  /* Thirds with the Bootstrap gutter, so the row lines up with the audience cards below */
  .feature-card-elegant.feature-card-elegant-max-width {
    flex: 1 1 0;
  }

  .feature-card-elegant-max-width + .feature-card-elegant-max-width {
    margin-left: 1.5rem;
  }

  /* A third is too narrow for icon-beside-text; stack the icon above the copy */
  .feature-card-elegant-max-width .feature-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-card-elegant-max-width .feature-row > div:last-child {
    margin: 1rem 0 0 !important; /* overrides Bootstrap .ms-4 */
  }
}

.feature-card-elegant:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(79, 172, 254, 0.15);
}

/* Gradient Icon Box */
.feature-icon-box {
  background: var(--primary-gradient);
  color: white;
  padding: 15px;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 198, 255, 0.3);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(90deg, #0d4c86 0%, #03dde7 100%);
  border-radius: 20px;
  padding: 40px 30px;
  margin-top: 60px;
  color: white;
  box-shadow: 0 15px 40px rgba(79, 172, 254, 0.4);
}

/* Image Styling */
.about-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
}

.about-image:hover {
  transform: scale(1.02);
}

@media (max-width: 767px) {
  .about-image {
    margin-bottom: 30px;
  }
}

/* --- Signup Section --- */
#signup-section {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}

.signup-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.signup-content-wrapper {
  position: relative;
  z-index: 2;
}

.signup-card {
  background: white;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.signup-card:hover {
  transform: translateY(-5px);
}

.signup-image-side {
  background: var(--primary-dark) url("../img/signup-library.webp") center / cover;
  height: 100%;
  min-height: 500px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 50px;
}

.signup-image-side::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 31, 58, 0.9),
    rgba(25, 53, 160, 0.7)
  );
}

.signup-image-content {
  position: relative;
  z-index: 2;
  color: white;
}

.signup-image-content h3 {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.signup-image-content p {
  font-size: 1.1rem;
  opacity: 0.95;
  line-height: 1.7;
}

.signup-stats {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

.signup-stat-item {
  text-align: center;
}

.signup-stat-number {
  font-size: 2rem;
  font-weight: 700;
  display: block;
  margin-bottom: 5px;
}

.signup-stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.signup-form-side {
  padding: 50px 40px;
  background: white;
}

.signup-form-header {
  text-align: center;
  margin-bottom: 35px;
}

.signup-form-header .badge {
  margin-bottom: 15px;
}

.signup-form-header h3 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.signup-form-header p {
  color: #6c757d;
  margin-bottom: 0;
}

.signup-benefits h6 {
  margin-bottom: 15px;
}

.signup-benefit-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.signup-benefit-item i {
  color: #fff;
  margin-right: 10px;
  font-size: 1.1rem;
}

@media (max-width: 991px) {
  .signup-image-side {
    min-height: 400px;
    padding: 40px 30px;
  }

  .signup-image-content h3 {
    font-size: 2rem;
  }

  .signup-stats {
    gap: 20px;
  }

  .signup-stat-number {
    font-size: 1.5rem;
  }

  .signup-form-side {
    padding: 40px 30px;
  }
}

@media (max-width: 767px) {
  #signup-section {
    padding: 60px 0;
  }

  .signup-image-side {
    min-height: 350px;
  }

  .signup-stats {
    flex-direction: column;
    gap: 15px;
  }

  .signup-stat-item {
    text-align: left;
  }
}

/* --- FAQ Section --- */
#faq-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  position: relative;
  overflow: hidden;
}

.faq-bg-decoration {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(79, 172, 254, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.faq-bg-decoration:nth-child(2) {
  top: auto;
  bottom: -100px;
  left: -100px;
  right: auto;
  animation-delay: 3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

.faq-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.faq-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-header p {
  font-size: 1.2rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.faq-item {
  background: white;
  border-radius: 20px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(79, 172, 254, 0.15);
  border-color: rgba(79, 172, 254, 0.3);
}

.faq-question {
  padding: 25px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  position: relative;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: linear-gradient(
    135deg,
    rgba(79, 172, 254, 0.05) 0%,
    rgba(0, 242, 254, 0.05) 100%
  );
}

.faq-question h5 {
  margin: 0;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-dark);
  padding-right: 20px;
  flex: 1;
}

.faq-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
  padding: 0 30px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 30px 25px 30px;
}

.faq-answer p {
  margin: 0;
  color: #6c757d;
  line-height: 1.8;
  font-size: 1rem;
}

.faq-answer ul {
  margin: 15px 0 0 0;
  padding-left: 20px;
  color: #6c757d;
}

.faq-answer ul li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.faq-cta-box {
  background: linear-gradient(90deg, #0d4c86 0%, #03dde7 100%);
  border-radius: 25px;
  padding: 50px 40px;
  text-align: center;
  margin-top: 60px;
  color: white;
  box-shadow: 0 20px 50px rgba(79, 172, 254, 0.3);
  position: relative;
  z-index: 2;
}

.faq-cta-box h4 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 15px;
}

.faq-cta-box p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.faq-cta-box .btn {
  background: white;
  color: #4facfe;
  font-weight: 700;
  padding: 15px 40px;
  border-radius: 50px;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.faq-cta-box .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767px) {
  #faq-section {
    padding: 60px 0;
  }

  .faq-header h2 {
    font-size: 2rem;
  }

  .faq-question {
    padding: 20px;
  }

  .faq-question h5 {
    font-size: 1rem;
  }

  .faq-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
  }

  .faq-cta-box {
    padding: 40px 25px;
  }

  .faq-cta-box h4 {
    font-size: 1.5rem;
  }
}

.btn-whatsapp {
  background: #15998a;
  color: white;
  border: none;
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background: #128c7e;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.iti {
  width: 100%;
  height: 100%;
}

.iti--allow-dropdown input,
.iti--allow-dropdown input[type="text"],
.iti--allow-dropdown input[type="tel"],
.iti--separate-dial-code input,
.iti--separate-dial-code input[type="text"],
.iti--separate-dial-code input[type="tel"] {
  padding-left: 89px;
  padding-top: 1rem;
  padding-bottom: 1rem;
  height: 100%;
  min-height: 58px;
  max-height: 58px;
}

small.error {
  color: red;
}

.navbar-expand-lg .navbar-nav .nav-link:hover {
  color: var(--accent-color) !important;
}

.white-btn-hover:hover {
  background-color: white !important;
  box-shadow: 0 0 20px -2px #0d6efd !important;
  transition: all 0.3s ease !important;
}

/* ---- Pricing Section ---- */
#pricing {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.pricing-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.25rem 1.75rem;
  border: 1px solid rgba(0, 99, 246, 0.12);
  box-shadow: 0 10px 30px -12px rgba(44, 62, 80, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -14px rgba(0, 99, 246, 0.35);
}

.pricing-card h5 {
  color: var(--primary-dark);
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.pricing-from {
  font-size: 0.95rem;
  color: #6b7a89;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-price {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-color);
}

/* Highlighted middle tier */
.pricing-card-featured {
  position: relative;
  background: var(--secondary-gradient);
  border: none;
  box-shadow: 0 20px 45px -15px rgba(0, 99, 246, 0.55);
}

.pricing-card-featured:hover {
  box-shadow: 0 26px 55px -15px rgba(0, 99, 246, 0.65);
}

.pricing-card-featured .pricing-price {
  color: #fff;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--accent-color);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.35rem 1rem;
  border-radius: 50rem;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.78) !important;
}

.pricing-unit {
  font-size: 1rem;
  font-weight: 600;
  color: #6b7a89;
}

.pricing-expert {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 0;
}

.pricing-expert-light {
  color: #fff;
}

/* ---- Pricing comparison table ---- */
.pricing-table-wrap {
  border-radius: 16px;
  box-shadow: 0 10px 30px -12px rgba(44, 62, 80, 0.18);
}

.pricing-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

.pricing-table thead th {
  background: var(--secondary-gradient);
  color: #fff;
  font-weight: 700;
  text-align: center;
  padding: 1rem 0.85rem;
  vertical-align: middle;
  font-size: 1rem;
}

.pricing-table thead th.pricing-table-feature {
  text-align: left;
}

.pricing-table-rate {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 0.15rem;
}

.pricing-table tbody td {
  padding: 0.8rem 0.85rem;
  text-align: center;
  border-bottom: 1px solid #eef2f6;
  color: var(--primary-dark);
  font-size: 0.92rem;
  vertical-align: middle;
}

.pricing-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table tbody td .fa-check {
  color: var(--accent-color);
  font-size: 1rem;
}

.pricing-table-dash {
  color: #c3ccd6;
}

.pricing-table-col-featured {
  background: rgba(0, 99, 246, 0.06);
}

.pricing-table thead th.pricing-table-col-featured {
  background: var(--primary-gradient);
}

.pricing-table-expert-row td {
  background: #f7fafd;
  font-weight: 700;
  font-size: 0.85rem;
}

.pricing-table-expert-row td.pricing-table-col-featured {
  background: rgba(0, 99, 246, 0.1);
}

@media (max-width: 575.98px) {
  .pricing-price {
    font-size: 2.35rem;
  }
  .pricing-card {
    padding: 2rem 1.5rem;
  }
}

/* ==========================================================================
   Post-revamp components (old theme)
   Components added after the revamp have no pre-revamp design. They are drawn
   here in the old visual language: palette, Playfair/Poppins, radii, shadows.
   ========================================================================== */

/* ---- Fixed promo bar + navbar offsets ---- */
html {
  scroll-padding-top: calc(96px + var(--promo-h));
}

body {
  /* Clears the fixed promo bar; the navbar and every page offset below it stay as they were */
  padding-top: var(--promo-h);
}

/* Phones: 40px logo, so the navbar is shorter */
@media (max-width: 767.98px) {
  :root {
    --nav-h: 81px;
  }
}

.navbar.fixed-top {
  top: var(--promo-h);
}

/* ---- Promo bar (inc/main.php) ----
   A tracked change in the margin: the full price is struck, the offer is inserted. */
.promo-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  height: var(--promo-h);
  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
  color: white;
  font-size: 0.8125rem;
}

.promo-bar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-bar-offer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.promo-bar-text {
  margin: 0;
  line-height: 1;
  white-space: nowrap;
  font-weight: 500;
}

.promo-bar-text del {
  position: relative;
  color: var(--markup-del);
  text-decoration: none;
}

.promo-bar-text del::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 52%;
  height: 1.5px;
  background: currentColor;
  transform-origin: left;
  animation: promo-strike 0.45s ease-out 0.5s both;
}

.promo-bar-text ins {
  display: inline-block;
  padding: 0 0.1em 1px;
  margin: 0 0.1em;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.0625rem;
  color: #00f2fe;
  text-decoration: none;
  border-bottom: 1.5px solid #4facfe;
  animation: promo-insert 0.5s ease-out 0.95s both;
}

@keyframes promo-strike {
  from {
    transform: scaleX(0);
  }
}

@keyframes promo-insert {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0);
  }
}

.promo-bar-cta {
  position: relative;
  flex: none;
  height: 28px;
  padding: 0 0.95rem;
  border: 0;
  border-radius: 50px;
  /* Light band sweeps across the button; keyframes keep it idle most of the cycle */
  background: linear-gradient(110deg, var(--accent-color) 42%, #4facfe 50%, var(--accent-color) 58%) 150% 0 / 250% 100%;
  color: white;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 28px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
  animation: promo-sheen 3s ease-in-out 2.5s infinite;
}

@keyframes promo-sheen {
  0% {
    background-position: 150% 0;
  }
  20%,
  100% {
    background-position: -50% 0;
  }
}

/* Visible button is 28px; the tap target reaches 44px */
.promo-bar-cta::after {
  content: "";
  position: absolute;
  inset: -8px -4px;
}

.promo-bar-cta:hover,
.promo-bar-cta:focus-visible {
  background: #022f53;
  animation: none;
}

.promo-bar-cta:focus-visible,
.promo-bar-contact a:focus-visible {
  outline: 2px solid #00f2fe;
  outline-offset: 2px;
}

.promo-bar-contact {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.promo-bar-contact a {
  color: #b2bec3;
  text-decoration: none;
  transition: color 0.2s ease;
}

.promo-bar-contact a:hover {
  color: #4facfe;
}

.promo-bar-contact i {
  margin-right: 0.5rem;
  color: #4facfe;
}

@media (min-width: 992px) {
  .promo-bar-inner {
    justify-content: space-between;
  }

  .promo-bar-contact {
    display: flex;
  }
}

/* Narrowest phones: drop the struck word, keep the offer legible */
@media (max-width: 359.98px) {
  .promo-bar-text del {
    display: none;
  }
}

/* ---- Navbar fit ----
   Six links plus the longer CTA label are wider in Poppins than the old five-link bar,
   so from lg up the CTA drops its letter-spacing and lg tightens padding to stay on one row. */
@media (min-width: 992px) {
  .navbar .btn-cta-pulse {
    letter-spacing: 0;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-brand-logo {
    max-width: 190px;
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }

  .navbar .btn-cta-pulse {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    font-size: 0.875rem !important;
  }
}

/* Phones: WhatsApp pill and toggler meet the 44px touch minimum */
@media (max-width: 767.98px) {
  .navbar .btn-whatsapp.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  .navbar-toggler {
    min-width: 44px;
    min-height: 44px;
  }
}

/* ---- Hero with quote form ----
   Mobile: the three blocks stack in source order - headline, quote form, supporting copy.
   Desktop: grid puts the copy blocks back in the left column and spans the form down the right. */
@media (min-width: 992px) {
  .hero-row.hero-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  /* Bootstrap's .col-lg-6 sets width:50%, which would resolve against the grid track
     instead of the row. Inside the grid the track already is the column. */
  .hero-row > [class*="col-"] {
    width: 100%;
  }

  .hero-row > .hero-copy-top {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
  }

  .hero-row > .hero-copy-bottom {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }

  .hero-row > .hero-form-col {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

/* The photo is an <img>, not a background-image, so the preload scanner finds it
   while the HTML is still parsing. It sits under the old black overlay (::before). */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 68%;
}

.hero-lead {
  max-width: 540px;
}

.hero-copy-bottom .hero-lead {
  margin-bottom: 0;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}

/* Quote form card: the old signup card look */
.hero-form-card {
  background: white;
  border-radius: 25px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  padding: 2.1rem 1.9rem 1.7rem;
  color: var(--primary-dark);
}

.hero-form-offer {
  display: inline-block;
  background: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--bs-primary);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50rem;
  padding: 0.5rem 1rem;
  margin-bottom: 0.9rem;
}

.hero-form-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
  color: var(--primary-dark);
}

.hero-form-note {
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 991px) {
  .hero-section {
    padding: 120px 0 64px;
  }

  /* Stretching the photo over the whole stacked hero crops it to a narrow slice behind the
     quote card. On phones and tablets it becomes a band across the headline instead,
     faded out at the bottom. */
  .hero-bg {
    height: 430px;
    -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
  }

  /* Base = what the desktop overlay makes of the old gradient (85%/80% black over
     #0063f6 -> #00f6f6), so the band fades into the same dark the desktop hero shows. */
  .hero-section {
    background: linear-gradient(to right, rgb(0 15 37), rgb(0 49 49));
  }

  /* Stops are in px, not %, so the scrim tracks the band and not the hero's height. */
  .hero-section::before {
    background: linear-gradient(
      180deg,
      rgb(0 0 0 / 85%) 0px,
      rgb(0 0 0 / 78%) 180px,
      rgb(0 0 0 / 72%) 310px,
      rgb(0 0 0 / 50%) 410px,
      rgb(0 0 0 / 0%) 460px
    );
  }

  /* Promote the supporting copy to row items so the trust list can be ordered above
     the quote form without a second copy of it in the markup. display: contents drops
     the column box, so its children re-take the row gutter and gap themselves. */
  .hero-copy-bottom {
    display: contents;
  }

  .hero-copy-bottom > * {
    order: 3;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
  }

  .hero-copy-bottom > .hero-lead {
    margin-top: var(--bs-gutter-y);
  }

  .hero-copy-bottom > .hero-trust {
    order: 1;
    margin-top: var(--bs-gutter-y);
  }

  .hero-form-col {
    order: 2;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: calc(var(--nav-h) + 1.75rem) 0 2.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-trust {
    gap: 0.5rem 1.25rem;
  }

  .hero-form-card {
    padding: 1.4rem 1.15rem 1.15rem;
  }

  .hero-form-card h3 {
    font-size: 1.4rem;
  }

  .hero-form-note {
    margin-bottom: 1rem;
  }
}

/* Below sm the container is full width, so a g-5 row's -24px margin
   overflows its 12px padding by 12px each side and scrolls the page. */
@media (max-width: 575.98px) {
  .container > .row.g-5 {
    --bs-gutter-x: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .container > .row.g-5 {
    --bs-gutter-y: 1.5rem;
  }
}

/* ---- Trust strip ---- */
.trust-strip {
  position: relative;
  background: white;
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 34px 0;
}

.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 3.5rem;
  text-align: center;
}

.trust-stat {
  min-width: 130px;
}

.trust-stat-number {
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1.2;
}

.trust-stat-number i {
  color: #ffc107;
  font-size: 1.2rem;
  vertical-align: 0.2em;
}

.trust-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #6c757d;
}

/* Phones: 3 + 2 grid instead of five stacked rows */
@media (max-width: 767.98px) {
  .trust-strip {
    padding: 20px 0;
  }

  .trust-strip-inner {
    gap: 1rem 0.5rem;
  }

  .trust-stat {
    min-width: 0;
    flex: 0 0 31%;
  }

  .trust-stat-number {
    font-size: 1.4rem;
  }

  .trust-stat-number i {
    font-size: 0.9rem;
  }

  .trust-stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    line-height: 1.35;
  }
}

/* ---- Service cards (icon instead of the old photo) ---- */
.service-card {
  padding: 30px;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: #f0f7ff;
  color: #4facfe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.service-icon svg {
  width: 34px;
  height: 34px;
}

.service-card:hover .service-icon {
  background: #4facfe;
  color: white;
}

.service-card .btn {
  align-self: flex-start;
}

.service-card-wide {
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}

.service-card-wide .service-icon {
  margin-bottom: 0;
}

/* Phones: icon + title row; description and link open under it */
@media (max-width: 767px) {
  .service-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0 0.85rem;
    padding: 0.6rem 1rem;
  }

  .service-card-wide > div:last-child {
    display: contents;
  }

  .service-card .m-acc-body {
    grid-column: 1 / -1;
  }

  .service-card p {
    margin: 0.5rem 0 0.75rem;
  }

  .service-card .btn {
    justify-self: start;
    margin-bottom: 0.6rem;
  }

  .service-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
  }

  .service-icon svg {
    width: 20px;
    height: 20px;
  }

  .service-card h4 {
    font-size: 1.08rem;
    margin: 0;
  }
}

/* ---- Inline CTA panel (the old services CTA box) ---- */
.inline-cta-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.inline-cta-panel > :not(.inline-cta-watermark) {
  position: relative;
  z-index: 1;
}

.inline-cta-watermark {
  position: absolute;
  top: -30px;
  right: 8px;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 9rem;
  line-height: 1;
  color: rgba(0, 99, 246, 0.08);
  pointer-events: none;
  user-select: none;
}

.inline-cta-badge {
  margin-bottom: 1.25rem;
  white-space: normal;
}

.inline-cta-sub {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 575.98px) {
  .inline-cta-trust {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
  }

  .inline-cta-trust-sep {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .inline-cta-watermark {
    top: -18px;
    font-size: 6rem;
  }
}

/* ---- Mobile accordions ----
   Below md an .m-acc card collapses to its heading. The .m-acc-toggle button inside the
   heading shows or hides every .m-acc-body in that card (main.js). From md up the button
   reads as plain heading text and everything shows. Gated on html.js so a phone without
   JS gets the content expanded. */
.m-acc-toggle {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  background: none;
  border: 0;
  padding: 0;
}

.m-acc-chevron {
  display: none;
}

@media (max-width: 767.98px) {
  .m-acc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-height: 44px;
  }

  .m-acc-chevron {
    display: inline-block;
    flex-shrink: 0;
    font-size: 0.8rem;
    color: #4facfe;
    transition: transform 0.25s ease;
  }

  .m-acc.open .m-acc-chevron {
    transform: rotate(180deg);
  }

  html.js .m-acc:not(.open) .m-acc-body {
    display: none;
  }

  /* Heading margins (mb-* utilities) only make sense above visible body copy */
  html.js .m-acc:not(.open) :has(> .m-acc-toggle) {
    margin-bottom: 0 !important;
  }

  /* A sticky :hover lift after each tap reads as a glitch */
  html .m-acc:hover {
    transform: none;
  }
}

/* ---- Packages (the old pricing section) ---- */
#packages {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

/* Comparison disclosure: closed on phones, always open from md up (main.js) */
.pricing-compare-toggle {
  display: flex;
  align-items: center;
  width: fit-content;
  margin: 0 auto;
  list-style: none;
}

.pricing-compare-toggle::-webkit-details-marker {
  display: none;
}

.pricing-compare-toggle i {
  transition: transform 0.25s ease;
}

.pricing-compare[open] .pricing-compare-toggle {
  margin-bottom: 1.25rem;
}

.pricing-compare[open] .pricing-compare-toggle i {
  transform: rotate(180deg);
}

@media (min-width: 768px) {
  .pricing-compare-toggle {
    display: none;
  }
}

/* Header row sticks under the fixed bars; the wrap clips the rounded corners instead of the table */
.pricing-table-wrap {
  overflow: clip;
}

.pricing-table {
  overflow: visible;
}

.pricing-table thead th {
  position: sticky;
  top: calc(var(--nav-h) + var(--promo-h));
  z-index: 2;
}

/* Fit the whole table on narrow screens - no horizontal scroll */
@media (max-width: 767.98px) {
  .pricing-table {
    min-width: 0;
    table-layout: fixed;
  }

  /* 0.75rem floor: Lighthouse flags text under 12px as illegible */
  .pricing-table thead th.pricing-table-feature {
    width: 40%;
    font-size: 0.75rem;
  }

  .pricing-table thead th {
    padding: 0.65rem 0.15rem;
    font-size: 0.75rem;
  }

  .pricing-table tbody td {
    padding: 0.55rem 0.35rem;
    font-size: 0.8125rem;
    line-height: 1.4;
  }

  .pricing-table tbody td .fa-check {
    font-size: 0.85rem;
  }

  .pricing-table-expert-row td {
    font-size: 0.75rem;
  }

  .pricing-badge {
    font-size: 0.75rem;
  }
}

/* ---- Process: arrows only where four steps share a row ---- */
@media (max-width: 991.98px) {
  .process-arrow {
    display: none !important;
  }
}

/* Phones: number | title + text rows instead of four tall centred blocks */
@media (max-width: 767.98px) {
  #process .row {
    --bs-gutter-y: 0;
  }

  .process-step {
    display: grid;
    grid-template-columns: 2.75rem 1fr;
    column-gap: 0.75rem;
    padding: 0 0 1.25rem;
    text-align: left;
  }

  .process-step .step-number {
    position: static;
    transform: none;
    display: block;
    grid-row: span 2;
    width: auto;
    height: auto;
    font-size: 2.2rem;
    line-height: 1;
  }

  .process-step-icon {
    display: none;
  }

  .process-step h5 {
    margin-bottom: 0.25rem;
  }

  .process-step p {
    margin-bottom: 0;
  }
}

/* ---- About: pull-quote in the old about-image slot ---- */
.feature-row {
  display: flex;
  align-items: center;
}

.about-quote-block {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  color: white;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
}

.about-quote-block:hover {
  transform: scale(1.02);
}

.about-quote-block::before {
  content: "\f10d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 18px;
  left: 24px;
  font-size: 5rem;
  line-height: 1;
  color: rgba(0, 242, 254, 0.15);
}

.about-quote-block p {
  position: relative;
  z-index: 1;
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5;
}

.about-quote-meta {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #00f2fe;
}

/* Phones: icon sits beside the title and the copy takes the full card width */
@media (max-width: 767.98px) {
  #about,
  #testimonials {
    padding: 60px 0;
  }

  .feature-card-elegant {
    width: 100%;
    padding: 0.6rem 1rem;
    margin-bottom: 0.5rem;
  }

  .feature-row {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0 0.85rem;
  }

  .feature-row > div:last-child {
    display: contents;
  }

  .feature-row p {
    grid-column: 1 / -1;
  }

  .feature-card-elegant .m-acc-body {
    padding: 0.35rem 0 0.5rem;
  }

  .feature-icon-box {
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 1rem;
  }

  .about-quote-block {
    padding: 1.75rem 1.5rem;
  }

  .about-quote-block::before {
    top: 10px;
    left: 14px;
    font-size: 3.5rem;
  }

  .about-quote-block p {
    font-size: 1.2rem;
  }

  .cta-banner {
    padding: 1.75rem 1.25rem;
    margin-top: 2rem;
  }

  .cta-banner .lead {
    font-size: 1rem;
  }
}

/* ---- Review cards (homepage grid, /testimonials/) ---- */
.reviews-stars {
  color: #ffc107;
  display: inline-flex;
  gap: 0.2rem;
}

/* Row grid, not masonry columns: columns fill top-to-bottom, which breaks newest-first reading order */
.reviews-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Editorial cards: their own palette and serif, like the review popup, not the site theme */
.review-card {
  --review-card-surface: #ffffff;
  --review-card-ink: #14181f;
  --review-card-muted: #6b6f76;
  --review-card-rule: #e6e3dc;
  --review-card-edge: #e3e5e8;
  --review-card-star: #b8892b;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem 1.75rem 1.25rem;
  background: var(--review-card-surface);
  border: 1px solid var(--review-card-edge);
  border-radius: 4px;
  text-align: left;
}

.review-card .reviews-stars {
  color: var(--review-card-star);
  font-size: 0.8rem;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.review-card .testimonial-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--review-card-ink);
  margin: 0 0 1.5rem;
  white-space: pre-line; /* keep the reviewer's paragraph breaks */
}

.review-card .testimonial-text::before {
  content: "\201C";
}

.review-card .testimonial-text::after {
  content: "\201D";
}

/* Cards in a row share the tallest one's height: quote stays under the stars, author sits at the bottom */
.review-card-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--review-card-rule);
  font-size: 0.75rem;
}

.review-card-name {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--review-card-ink);
}

.review-card-date {
  color: var(--review-card-muted);
  font-variant-numeric: tabular-nums;
}

/* Homepage preview: rating line above the featured reviews */
.reviews-preview-score {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem 0.75rem;
  width: fit-content;
  margin: -1rem auto 2.5rem;
  padding: 0.6rem 1.5rem;
  min-height: 44px;
  background: white;
  border-radius: 50px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  color: var(--primary-dark);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.reviews-preview-score:hover {
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.reviews-preview-average {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
}

.reviews-preview-count {
  color: #6c757d;
  font-size: 0.95rem;
}

#testimonials p > a {
  color: #00f2fe;
  text-decoration: none;
}

#testimonials p > a:hover {
  color: white;
}

@media (max-width: 767.98px) {
  .review-card {
    padding: 1.4rem 1.25rem 1rem;
  }

  .review-card .testimonial-text {
    font-size: 1.05rem;
  }

  .reviews-preview-score {
    margin: 0 auto 2rem;
    border-radius: 20px;
  }

  /* Phones: three reviews are enough proof before the signup form */
  .reviews-preview .review-card:nth-child(n + 4) {
    display: none;
  }
}

/* ---- Testimonials page (/testimonials/) ---- */
.reviews-page {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.reviews-summary {
  display: grid;
  gap: 2rem;
  align-items: center;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2.25rem;
  max-width: 820px;
  margin: 0 auto 4rem;
}

.reviews-summary-score {
  text-align: center;
}

.reviews-summary-average {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 4rem;
  line-height: 1;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.reviews-summary-score .reviews-stars {
  font-size: 1.25rem;
}

.reviews-summary-count {
  color: #6c757d;
  margin: 0.5rem 0 0;
}

.reviews-breakdown {
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.reviews-breakdown-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  align-items: center;
  gap: 0.75rem;
}

.reviews-breakdown-row dt {
  font-weight: 500;
  color: var(--primary-dark);
}

.reviews-breakdown-row dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reviews-breakdown-bar {
  flex: 1;
  height: 8px;
  border-radius: 50px;
  background: #e9ecef;
  overflow: hidden;
}

.reviews-breakdown-bar > span {
  display: block;
  height: 100%;
  background: var(--primary-gradient);
  border-radius: inherit;
}

.reviews-breakdown-count {
  min-width: 2.5rem;
  text-align: right;
  color: #6c757d;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
  .reviews-summary {
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    padding: 2.5rem 3rem;
  }

  .reviews-summary-score {
    border-right: 1px solid #e9ecef;
    padding-right: 3rem;
  }
}

/* ---- Review pop-up: its own tokens like .review-card, not the site theme ---- */
.reviews-summary-action {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
}

.review-write-btn,
.review-form {
  --review-form-ink: #14181f;
  --review-form-star: #b8892b;
}

.review-write-btn {
  padding: 0.7rem 1.6rem;
  color: var(--review-form-ink);
  background: transparent;
  border: 1px solid var(--review-form-ink);
  border-radius: 4px;
  font-weight: 500;
}

.review-write-btn i {
  color: var(--review-form-star);
}

.review-write-btn:hover,
.review-write-btn:focus-visible {
  color: #ffffff;
  background: var(--review-form-ink);
}

.review-form {
  --review-form-muted: #6b6f76;
  --review-form-star-off: #c9ccd1;
  --review-form-error: #b3261e;
  color: var(--review-form-ink);
}

.review-form .form-label {
  font-weight: 500;
}

.review-form .form-text,
.review-form-count,
.review-form-note {
  font-size: 0.85rem;
  color: var(--review-form-muted);
}

.review-form-count {
  text-align: right;
  margin-top: 0.25rem;
}

.review-form-error {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--review-form-error);
}

.review-form-error[hidden] {
  display: none;
}

.review-form [aria-invalid="true"] {
  box-shadow: inset 0 0 0 1px var(--review-form-error);
}

.review-form-rating {
  border: 0;
  padding: 0;
  min-width: 0;
}

.review-form-rating legend {
  float: none;
  width: auto;
  padding: 0;
  font-size: 1rem;
}

.review-form-stars {
  display: flex;
  gap: 0.25rem;
}

.review-form-star-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.review-form-star {
  padding: 0.15rem;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--review-form-star-off);
  border-radius: 4px;
  cursor: pointer;
}

.review-form-star.is-filled {
  color: var(--review-form-star);
}

.review-form-star-input:focus-visible + .review-form-star {
  outline: 2px solid var(--review-form-ink);
  outline-offset: 2px;
}

.review-form-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.review-form-success i {
  font-size: 2.5rem;
  color: var(--review-form-star);
}

@media (max-width: 575px) {
  .review-form .modal-form-container {
    padding: 24px 20px 28px;
  }
}

.reviews-list-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.5rem 1.5rem;
  margin-bottom: 2rem;
}

.reviews-list-range {
  color: #6c757d;
}

.reviews-pagination {
  margin-top: 2.5rem;
}

/* Bootstrap declares these on .pagination itself, so they must be overridden there */
.reviews-pagination .pagination {
  gap: 0.4rem;
  --bs-pagination-color: var(--accent-color);
  --bs-pagination-bg: white;
  --bs-pagination-border-color: #dee2e6;
  --bs-pagination-hover-color: #022f53;
  --bs-pagination-hover-bg: #f0f7ff;
  --bs-pagination-hover-border-color: #4facfe;
  --bs-pagination-focus-color: #022f53;
  --bs-pagination-focus-bg: #f0f7ff;
  --bs-pagination-focus-box-shadow: 0 0 0 0.2rem rgba(0, 99, 246, 0.25);
  --bs-pagination-active-color: white;
  --bs-pagination-active-bg: var(--accent-color);
  --bs-pagination-active-border-color: var(--accent-color);
  --bs-pagination-disabled-color: #6c757d;
  --bs-pagination-disabled-bg: white;
  --bs-pagination-disabled-border-color: #dee2e6;
}

.reviews-pagination .page-link {
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px !important;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.reviews-pagination .page-item.disabled .page-link {
  opacity: 0.6;
}

/* Phones: first/last and gaps wrap the bar onto two rows; arrows, neighbours and the status line are enough */
@media (max-width: 575.98px) {
  .reviews-pagination .page-edge {
    display: none;
  }
}

.reviews-pagination-status {
  text-align: center;
  color: #6c757d;
  font-size: 0.9rem;
  margin: 0.9rem 0 0;
}

/* ---- Review popup (inc/review_popup.php, cycled by main.js) ---- */

/* Styled as a neutral embedded widget on purpose: its own palette and font, not the site theme */
.review-popup {
  --review-popup-surface: #ffffff;
  --review-popup-ink: #111214;
  --review-popup-body: #2a2b2f;
  --review-popup-muted: #6b6d73;
  --review-popup-faint: #8b8d93;
  --review-popup-hairline: rgba(17, 18, 20, 0.08);
  --review-popup-hover: rgba(17, 18, 20, 0.06);
  --review-popup-star: #e0a82e;
  --review-popup-live: #1fbf6a;
  display: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.4;
  text-align: left;
}

/* Tablet up only: phones have no room for it beside the content */
@media (min-width: 768px) {
  .review-popup:not([hidden]) {
    display: block;
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 1040; /* under Bootstrap's modal backdrop (1050), so the signup modal covers it */
    width: 320px;
    overflow: hidden;
    background: var(--review-popup-surface);
    border: 1px solid var(--review-popup-hairline);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(17, 18, 20, 0.06), 0 24px 48px -12px rgba(17, 18, 20, 0.35);
    animation: review-popup-in 0.4s ease-out;
  }
}

@keyframes review-popup-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.review-popup-link {
  display: block;
  padding: 16px 44px 16px 18px;
  color: var(--review-popup-ink);
  text-decoration: none;
}

.review-popup-link:hover {
  color: var(--review-popup-ink);
}

.review-popup-link:hover .review-popup-name {
  text-decoration: underline;
}

.review-popup-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--review-popup-muted);
}

.review-popup-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--review-popup-live);
  box-shadow: 0 0 0 3px rgba(31, 191, 106, 0.18);
}

.review-popup-stars {
  color: var(--review-popup-star);
  font-size: 12px;
  margin-bottom: 6px;
}

/* Three lines keeps every review the same height, whatever its length */
.review-popup-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--review-popup-body);
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.review-popup-name {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--review-popup-ink);
}

.review-popup-date {
  display: block;
  font-size: 12px;
  color: var(--review-popup-faint);
}

.review-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--review-popup-faint);
  font-size: 12px;
}

.review-popup-close:hover {
  background: var(--review-popup-hover);
  color: var(--review-popup-ink);
}

/* ---- Signup section on phones ---- */
@media (max-width: 767px) {
  .signup-form-side {
    padding: 1.75rem 1.15rem;
  }

  .signup-form-header {
    margin-bottom: 1.25rem;
  }

  .signup-form-header h3 {
    font-size: 1.5rem;
  }
}

/* ---- Signup modal: quote mark drawn like the old fa-quote-left icon ---- */
.modal-quote-mark {
  font-family: "Playfair Display", serif;
  font-size: 4rem;
  line-height: 0.8;
}

/* Below lg the photo panel is hidden: the same photo becomes a band behind the
   modal header, fading into the white form card. */
@media (max-width: 991px) {
  #signupModal .modal-content {
    background-color: white;
    background-image:
      linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.85) 0px,
        rgba(44, 62, 80, 0.75) 110px,
        rgba(0, 99, 246, 0.6) 205px,
        rgba(255, 255, 255, 0.94) 240px,
        white 258px,
        white 100%
      ),
      url("../img/modal-editor.webp");
    background-size: auto, cover;
    background-position:
      center top,
      center 18%;
    background-repeat: no-repeat, no-repeat;
  }

  #signupModal .modal-form-container {
    padding: 14px 16px 22px;
    background: transparent;
  }

  #signupModal .modal-form-container .btn-close {
    filter: invert(1) grayscale(100%) brightness(220%);
    opacity: 0.75;
  }

  #signupModal .modal-form-container h3 {
    color: white;
    font-size: 1.45rem;
  }

  #signupModal .modal-form-container > .text-center p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.9rem;
    margin-bottom: 0;
  }

  #signupModal .modal-form-container form {
    background: white;
    border-radius: 20px;
    box-shadow: var(--modal-shadow);
    padding: 20px 16px 18px;
  }
}

/* ---- intl-tel-input ---- */
.iti {
  /* Never inherit a section's white text colour: the widget always sits on a light field */
  color: var(--primary-dark);
}

.iti__country-list {
  /* Bootstrap's floating labels also sit at z-index 2 and would paint over the open list */
  z-index: 5;
}

/* ---- Footer contact items ---- */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.footer-contact-item i {
  color: #4facfe;
  margin-top: 0.3rem;
}

.footer-contact-item a {
  color: #b2bec3;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-item a:hover {
  color: #4facfe;
}

@media (max-width: 767px) {
  .footer-content {
    padding-top: 48px;
    padding-bottom: 32px;
  }

  .footer-desc {
    margin-bottom: 18px;
  }

  .footer-bottom .footer-disclaimer {
    font-size: 0.75rem;
  }
}

/* ---- Static content pages (terms) ---- */
.content-page-body {
  background: white;
}

.content-page-body h4 {
  margin-top: 2rem;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .btn-cta-pulse,
  .floating-btn,
  .faq-bg-decoration,
  .promo-bar-text del::after,
  .promo-bar-text ins,
  .promo-bar-cta,
  .review-popup:not([hidden]) {
    animation: none;
  }
}
