/* VFD Tanzania Custom Styles */

/* ================================
   Navbar
   ================================ */

/* Solid white navbar */
.home9 .navigation {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* Nav link spacing */
.home9 .navigation .navbar #mainmenu ul .nav-item .nav-link {
  padding: 22px 12px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* Ensure brand image is not inverted + larger header logo */
.home9 .navigation .navbar .navbar-brand img {
  filter: none;
  height: 56px !important;
  max-height: 56px !important;
  width: auto !important;
}
@media (max-width: 575px) {
  .home9 .navigation .navbar .navbar-brand img { height: 46px !important; max-height: 46px !important; }
}

/* Hover/active underline */
.home9 .navigation .navbar #mainmenu ul .nav-item .nav-link:hover::before,
.home9 .navigation .navbar #mainmenu ul .nav-item .nav-link.active::before {
  background: #0250c5;
}

/* Vertical center all nav items */
.home9 .navigation .navbar #mainmenu ul.navbar-nav {
  align-items: center;
}

/* Right action buttons group */
.home9 .navigation .navbar #mainmenu ul.nav-actions {
  align-items: center;
  margin-left: 0;
}

/* Apply Now - Primary CTA button in navbar */
.nav-cta-btn {
  background: #0250c5 !important;
  color: #fff !important;
  border-radius: 5px !important;
  padding: 8px 20px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: all 0.3s ease;
  margin-left: 5px;
}

.nav-cta-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(2, 80, 197, 0.3);
}

/* No underline effect on CTA button */
.home9 .navigation .navbar #mainmenu ul .nav-item.nav-cta .nav-link::before {
  display: none !important;
}

/* Language switcher */
.lang-switch {
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px !important;
  background: transparent !important;
  color: #242424 !important;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-left: 8px;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.lang-switch:hover {
  border-color: #0250c5;
  color: #0250c5 !important;
}

.lang-switch .fa-globe {
  margin-right: 4px;
}

.lang-switch.dropdown-toggle::after {
  margin-left: 6px;
}

/* Language dropdown */
.nav-item.dropdown .dropdown-menu {
  min-width: 150px;
  border: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 8px 0;
  margin-top: 10px;
}

.nav-item.dropdown .dropdown-item {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  transition: all 0.3s ease;
}

.nav-item.dropdown .dropdown-item:hover {
  background: #0250c5;
  color: #fff;
}

.nav-item.dropdown .dropdown-item .flag-icon {
  margin-right: 10px;
  font-size: 16px;
}

/* Login button */
.login-btn {
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px !important;
  background: transparent !important;
  color: #0250c5 !important;
  border: 1px solid #0250c5;
  border-radius: 5px;
  margin-left: 5px;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: #0250c5 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.login-btn .fa-sign-in-alt {
  margin-right: 4px;
}

/* Medium-large screens — 8-item menu needs tighter spacing */
@media (min-width: 1200px) and (max-width: 1399px) {
  .home9 .navigation .navbar #mainmenu ul .nav-item .nav-link {
    padding: 22px 9px;
    font-size: 13px;
  }
}

/* Medium screens — most cramped tier with all 8 items + CTAs */
@media (min-width: 992px) and (max-width: 1199px) {
  .home9 .navigation .navbar #mainmenu ul .nav-item .nav-link {
    padding: 22px 6px;
    font-size: 12px;
  }
  .nav-cta-btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
    margin-left: 4px;
  }
  .lang-switch,
  .login-btn {
    font-size: 12px;
    padding: 5px 9px !important;
    margin-left: 4px;
  }
  .lang-switch span,
  .login-btn span {
    display: none;
  }
  .lang-switch .fa-globe,
  .login-btn .fa-sign-in-alt {
    margin-right: 0;
  }
}

/* Mobile nav */
@media (max-width: 991px) {
  .nav-cta-btn {
    display: inline-block !important;
    margin: 5px 10px;
    text-align: center;
  }
  .lang-switch,
  .login-btn {
    margin: 5px 10px;
  }
}

/* ================================
   WhatsApp Widget
   ================================ */
.whatsapp-widget {
  position: fixed;
  bottom: 80px;
  right: 30px;
  z-index: 9999;
}

.whatsapp-widget a {
  display: block;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 60px;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.whatsapp-widget a:hover {
  transform: scale(1.1);
  color: #fff;
}

/* ================================
   Pricing Cards
   ================================ */
.pricing-cards {
  padding: 80px 0;
}

.pricing-card {
  background: #fff;
  border-radius: 15px;
  padding: 40px 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
  border: 2px solid #0250c5;
}

.pricing-card.featured::before {
  content: "Popular";
  position: absolute;
  top: 20px;
  right: -30px;
  background: #0250c5;
  color: #fff;
  padding: 5px 40px;
  font-size: 12px;
  font-weight: 600;
  transform: rotate(45deg);
}

.pricing-card .plan-name {
  font-size: 24px;
  font-weight: 700;
  color: #242424;
  margin-bottom: 15px;
}

.pricing-card .plan-price {
  font-size: 42px;
  font-weight: 700;
  color: #0250c5;
  margin-bottom: 20px;
}

/* Billing period as a top-left corner badge */
.pricing-card .plan-period-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #eef4ff;
  color: #0250c5;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  line-height: 1.5;
}

.pricing-card .additional-fees .fee-note {
  color: #999;
  font-weight: 400;
}

.pricing-card .additional-fees {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 8px 6px;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pricing-card .additional-fees p {
  margin: 0;
  font-size: 12px;
  color: #555;
  white-space: nowrap;
}

/* Registration fee box gets normal bottom spacing now that printer moved out */
.pricing-card .additional-fees { margin-bottom: 16px; }

/* Thermal printer add-on — one wide card spanning all plan columns */
.printer-addon-card {
  background: #fff;
  border: 1px dashed #9cc0f0;
  border-radius: 14px;
  padding: 24px 30px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 22px;
  box-shadow: 0 8px 24px rgba(0, 37, 93, 0.05);
}
.printer-addon-icon {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0250c5, #1a73e8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.printer-addon-info { flex: 1; }
.printer-addon-info h4 { font-size: 18px; font-weight: 700; color: #242424; margin: 0 0 6px; }
.printer-addon-info p { font-size: 14px; color: #666; margin: 0; line-height: 1.6; }
.printer-addon-price { text-align: right; white-space: nowrap; }
.printer-addon-price .amount { display: block; font-size: 26px; font-weight: 800; color: #0250c5; }
.printer-addon-price .note { font-size: 12px; color: #999; }
@media (max-width: 650px) {
  .printer-addon-card { flex-direction: column; text-align: center; gap: 14px; }
  .printer-addon-price { text-align: center; }
}

.pricing-card .features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  text-align: left;
}

.pricing-card .features-list li {
  padding: 5px 0 5px 25px;
  font-size: 14px;
  color: #555;
  position: relative;
}

.pricing-card .features-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #0250c5;
  position: absolute;
  left: 0;
  top: 5px;
}

/* ================================
   VFD Logo Text
   ================================ */
.vfd-logo-text {
  font-size: 28px;
  font-weight: 700;
  color: #0250c5;
}

/* ================================
   About - Equal Height Feature Boxes
   ================================ */
section.about .row {
  display: flex !important;
  flex-wrap: wrap !important;
}

section.about .row>[class*="col-"] {
  display: flex !important;
  margin-bottom: 30px;
}

section.about .box {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  background: #fff;
  border-radius: 10px;
}

section.about .inner-box {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  height: 100% !important;
}

section.about .inner-box .text {
  flex: 1 !important;
  margin-bottom: 0;
}

/* ================================
   How To Use Section
   ================================ */
.howtouse-section {
  padding: 80px 0;
  position: relative;
  background: #f8f9fa;
}

.howtouse-section .row {
  display: flex;
  flex-wrap: wrap;
}

.howtouse-section .row>[class*="col-"] {
  display: flex;
  margin-bottom: 30px;
}

.howtouse-card {
  background: #fff;
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.howtouse-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.howtouse-icon {
  width: 80px;
  min-width: 80px;
  height: 80px;
  background: #0250c5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  flex-shrink: 0;
}

.howtouse-icon i {
  font-size: 36px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  line-height: 1;
}

.howtouse-card h4 {
  font-size: 20px;
  font-weight: 700;
  color: #242424;
  margin-bottom: 15px;
}

.howtouse-card p {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 0;
}

/* ================================
   Apply Page Styles
   ================================ */

/* Apply Page Hero */
.apply-hero {
  background: #0250c5;
  padding: 100px 0 50px;
  margin-top: 70px;
}

.apply-hero-title {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
}

.apply-hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* Procedure Section */
.procedure-section {
  padding: 60px 0;
  background: #f8f9fa;
}

.procedure-intro {
  text-align: center;
  margin-bottom: 30px;
}

.procedure-intro .section-title {
  font-size: 32px;
  font-weight: 700;
  color: #242424;
  margin-bottom: 20px;
}

.procedure-desc {
  color: #666;
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.procedure-step {
  background: #fff;
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.procedure-step:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.step-number {
  width: 60px;
  height: 60px;
  background: #0250c5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.procedure-step h4 {
  font-size: 20px;
  font-weight: 700;
  color: #242424;
  margin-bottom: 15px;
}

.procedure-step p {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Application Form Section */
.application-form-section {
  padding: 60px 0;
  background: #fff;
}

.application-form-wrapper {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.form-section {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 10px;
}

.form-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #242424;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid #0250c5;
  display: inline-block;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  font-size: 14px;
}

.required-star {
  color: #dc3545;
  font-weight: 700;
}

.optional-text {
  color: #999;
  font-weight: 400;
  font-size: 12px;
}

/* File Upload Box */
.file-upload-box {
  position: relative;
  border: 2px dashed #ddd;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  background: #fafafa;
  cursor: pointer;
}

.file-upload-box:hover {
  border-color: #0250c5;
  background: #f0f7ff;
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.file-upload-label i {
  font-size: 36px;
  color: #0250c5;
}

.file-upload-label span {
  color: #555;
  font-size: 14px;
}

.file-upload-label small {
  color: #999;
  font-size: 12px;
}

.download-sample {
  display: inline-block;
  margin-top: 10px;
  color: #0250c5;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.download-sample:hover {
  color: #0250c5;
  text-decoration: underline;
}

.download-sample i {
  margin-right: 5px;
}

.submit-btn {
  padding: 15px 50px !important;
  font-size: 16px;
}

.submit-btn i {
  margin-right: 8px;
}

/* Apply page responsive */
@media (max-width: 768px) {
  .apply-hero {
    padding: 100px 0 60px;
  }
  .apply-hero-title {
    font-size: 28px;
  }
  .apply-hero-subtitle {
    font-size: 15px;
  }
  .application-form-wrapper {
    padding: 30px 20px;
  }
  .procedure-intro .section-title {
    font-size: 24px;
  }
}

/* ================================
   Compact Hero Section
   ================================ */
.home9 .hero-area.compact-hero {
  padding: 120px 0px 70px;
  overflow: visible !important;
  position: relative;
}

/* three.js soft-glow background — calm, behind hero content */
.hero-three {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-three canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
/* Gentle light wash on the left so the headline always stays crisp */
.hero-three::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(248, 251, 255, 0.42) 0%, rgba(248, 251, 255, 0.10) 32%, rgba(248, 251, 255, 0) 58%);
}
.home9 .hero-area.compact-hero > .container {
  position: relative;
  z-index: 2;
}

.home9 .hero-area.compact-hero .right-img::after {
  display: none !important;
  animation: none !important;
}

@media (max-width: 991px) {
  .home9 .hero-area.compact-hero {
    padding: 120px 0px 60px;
  }
}

/* Hero image full width no cutoff */
.home9 .hero-area.compact-hero .hero-img-custom {
  transform: none;
  overflow: visible;
}

.home9 .hero-area.compact-hero .hero-img-custom .img {
  width: 100%;
  max-width: 100%;
}

.home9 .hero-area,
.home9 .hero-area.compact-hero {
  overflow: visible !important;
}

@media (max-width: 991px) {
  .home9 .hero-area.compact-hero .hero-img-custom {
    margin-top: 30px;
  }
}

/* Hero Composite Image Layout */
.hero-img-composite {
  transform: none;
  overflow: visible;
}

.hero-composite-wrapper {
  position: relative;
  width: 100%;
  /* Use padding-bottom for consistent aspect ratio across browsers */
  padding-bottom: 90%;
}

/* All hero images share absolute positioning */
.hero-composite-wrapper img {
  position: absolute;
  display: block;
  max-width: none;
}

/* Web dashboard - main backdrop, top-left (enlarged) */
.hero-composite-wrapper .hero-img-web {
  top: 0;
  left: 0;
  width: 85%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
  z-index: 1;
}

/* Person - hero focus, right side */
.hero-composite-wrapper .hero-img-person {
  right: 0;
  bottom: 0;
  width: auto;
  height: 92%;
  max-width: 52%;
  z-index: 2;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.10));
}

/* Phone - small accent, bottom-left overlapping dashboard */
.hero-composite-wrapper .hero-img-sim {
  bottom: 0;
  left: 10%;
  width: auto;
  height: 58%;
  z-index: 3;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.18));
}

/* Large desktop (1200px+) */
@media (min-width: 1200px) {
  .hero-composite-wrapper {
    padding-bottom: 80%;
  }
  .hero-composite-wrapper .hero-img-web {
    width: 88%;
  }
  .hero-composite-wrapper .hero-img-sim {
    height: 62%;
  }
}

/* (Tablet & phone hero rules consolidated further down — see "HERO RESPONSIVE".) */

/* Tablet portrait */
@media (max-width: 767px) {
  .hero-img-composite {
    margin-top: 30px;
    max-width: 500px;
  }
  .hero-composite-wrapper {
    padding-bottom: 85%;
  }
  .hero-composite-wrapper .hero-img-web {
    width: 80%;
    border-radius: 8px;
  }
  .hero-composite-wrapper .hero-img-person {
    height: 86%;
    max-width: 48%;
  }
  .hero-composite-wrapper .hero-img-sim {
    height: 54%;
    left: 6%;
  }
}

/* Mobile */
@media (max-width: 575px) {
  .hero-img-composite {
    margin-top: 25px;
    max-width: 100%;
  }
  .hero-composite-wrapper {
    padding-bottom: 88%;
  }
  .hero-composite-wrapper .hero-img-web {
    width: 78%;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
  }
  .hero-composite-wrapper .hero-img-person {
    height: 84%;
    max-width: 46%;
  }
  .hero-composite-wrapper .hero-img-sim {
    height: 52%;
    left: 4%;
  }
}

/* Small mobile */
@media (max-width: 400px) {
  .hero-composite-wrapper {
    padding-bottom: 92%;
  }
  .hero-composite-wrapper .hero-img-web {
    width: 76%;
  }
  .hero-composite-wrapper .hero-img-person {
    height: 82%;
    max-width: 46%;
  }
  .hero-composite-wrapper .hero-img-sim {
    height: 50%;
    left: 2%;
  }
}

/* (Phone hero "single app image" rules consolidated further down — see "HERO RESPONSIVE".) */

/* ================================
   Global Section Spacing Reduction
   ================================ */

/* Section vertical padding — breathing room between sections */
.home9 .about,
.home9 .feature,
.home9 .testimonial-area,
.home9 .faq,
.home9 .contact {
  padding: 56px 0 !important;
}

.home9 .pricing-cards {
  padding: 72px 0 76px;
}

/* Extra gap between the pricing title block and the plan cards */
.home9 .pricing-cards .section-title.extra {
  margin-bottom: 44px !important;
}

.home9 .howtouse-section {
  padding: 40px 0;
}

.home9 .howtouse-section .section-title.extra {
  margin-bottom: 16px;
}

.home9 .subscribe-section {
  padding: 32px 0;
}

/* Section title + description: generous gap before the section content */
.home9 .section-title {
  margin-bottom: 44px !important;
}

.home9 .section-title.extra {
  margin-bottom: 44px !important;
}

/* Small breathing room between the title and its description */
.home9 .section-title .title {
  margin-bottom: 14px;
}

/* Footer spacing */
.home9 .footer {
  background: #0250c5 !important;
  padding: 60px 0 0 !important;
}

.home9 .footer .shape2 {
  display: none;
}

.home9 .footer .copy-bg {
  margin-top: 0 !important;
  background: rgba(0,0,0,0.15);
  border-top: 1px solid rgba(255,255,255,0.1) !important;
  padding: 18px 0;
}

.home9 .footer .copy-bg p,
.home9 .footer .copy-bg a {
  color: rgba(255,255,255,0.7) !important;
  font-size: 14px;
}

.home9 .footer .copy-bg a:hover {
  color: #fff !important;
}
/* Copyright bar: copyright on the left, legal links on the right */
.home9 .footer .copy-bg .copy-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 26px;
}
.home9 .footer .copy-bg .copy-bar .copy-text { margin: 0; }
.home9 .footer .copy-bg .legal-links {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.home9 .footer .copy-bg .legal-links a { font-size: 14px; white-space: nowrap; }
@media (max-width: 600px) {
  .home9 .footer .copy-bg .copy-bar { flex-direction: column; text-align: center; gap: 10px; }
  .home9 .footer .copy-bg .legal-links { justify-content: center; flex-wrap: wrap; }
}

/* Footer top area */
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: none;
}

.footer-brand {
  flex: 1;
  min-width: 200px;
}

.footer-brand img,
.home9 .footer .footer-brand img {
  height: 50px !important;
  margin-bottom: 15px !important;
  filter: none !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  max-width: none !important;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  line-height: 1.7;
  max-width: 300px;
  margin: 0;
}

.footer-links-col {
  min-width: 120px;
}

.footer-links-col h6 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.footer-links-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-col ul li {
  margin-bottom: 10px;
}

.footer-links-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links-col ul li a:hover {
  color: #fff;
}

.footer-contact-col {
  min-width: 200px;
}

.footer-contact-col h6 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
}

.footer-contact-item i {
  color: rgba(255,255,255,0.9);
  width: 16px;
  text-align: center;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Download column in footer */
.footer-download-col {
  min-width: 160px;
}

.footer-download-col h6 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.footer-download-col a {
  display: block;
  margin-bottom: 12px;
}

.footer-download-col a img {
  width: 150px;
  height: auto;
  transition: transform 0.3s ease;
}

.footer-download-col a:hover img {
  transform: scale(1.05);
}

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

/* Footer social icons */
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-socials a:hover {
  background: #0250c5;
  color: #fff;
}

/* (download strip removed - badges now in footer column) */

@media (max-width: 767px) {
  .footer-top {
    flex-direction: column;
    text-align: center;
  }
  .footer-brand p {
    max-width: 100%;
  }
  .footer-socials {
    justify-content: center;
  }
  .footer-contact-item {
    justify-content: center;
  }
  .footer-download-strip .download-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-app-badges {
    justify-content: center;
  }
}

/* ================================
   UX fixes (2026-04)
   ================================ */

/* AOS safety: if JS never fires aos-animate within 2s, force-show */
@keyframes aos-safety-show { to { opacity: 1; transform: none; } }
[data-aos]:not(.aos-animate) {
  animation: aos-safety-show 0.01s linear 2s forwards;
}

/* Reduce apply hero on desktop - less wasted space */
.apply-hero {
  padding: 70px 0 50px !important;
}
.apply-hero-title {
  font-size: 36px;
}
.apply-hero-subtitle {
  font-size: 16px;
}

/* Mobile hero title clipping + readable sizes */
@media (max-width: 575px) {
  .home9 .hero-area .left-content,
  .hero-area .left-content,
  .home9 .hero-area .left-content .content,
  .hero-area .left-content .content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  .home9 .hero-area .left-content .content .title,
  .hero-area .left-content .content .title {
    font-size: 24px !important;
    line-height: 1.25 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    white-space: normal !important;
    padding-right: 5px;
  }
  .home9 .hero-area .left-content .content .subtitle,
  .hero-area .left-content .content .subtitle {
    font-size: 13px !important;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .apply-hero {
    padding: 50px 0 40px !important;
    margin-top: 60px;
  }
  .apply-hero-title {
    font-size: 22px !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .apply-hero-subtitle {
    font-size: 13px;
    word-wrap: break-word;
  }
  .section-title .title {
    font-size: 22px !important;
    line-height: 1.3 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .section-title p {
    font-size: 13px !important;
    padding: 0 5px;
  }
  .procedure-intro .section-title {
    font-size: 20px !important;
  }
  /* Universal text overflow safety */
  h1, h2, h3, h4, h5, p, span, a {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* Desktop (≥992px): person flush on the next-section edge; balanced top/bottom
   whitespace; bigger guy; phone lifted (space beneath it); roomier buttons. */
@media (min-width: 992px) {
  .home9 .hero-area.compact-hero {
    padding-top: 110px !important;
    padding-bottom: 0 !important;   /* guy stays flush on the next-section edge */
  }
  /* Bottom-align the composite so the person reaches the hero's bottom edge */
  .home9 .hero-area.compact-hero .col-lg-6.order-first.order-lg-last {
    align-self: flex-end !important;
  }
  /* Taller composite → more vertical space (incl. below the buttons) */
  .home9 .hero-area.compact-hero .hero-composite-wrapper {
    padding-bottom: 92% !important;
  }
  .home9 .hero-area.compact-hero .hero-composite-wrapper .hero-img-web {
    width: 78% !important;
    top: 0 !important;
  }
  /* Bigger guy (scaled up so the head stays high) flush to the bottom edge */
  .home9 .hero-area.compact-hero .hero-composite-wrapper .hero-img-person {
    right: 0 !important;
    bottom: 0 !important;
    height: 116% !important;
    max-width: 64% !important;
  }
  /* Phone lifted up so there is space below it */
  .home9 .hero-area.compact-hero .hero-composite-wrapper .hero-img-sim {
    bottom: 12% !important;
    height: 54% !important;
    left: 7% !important;
  }
  /* Vertically centre the text block so its top/bottom whitespace is even */
  .home9 .hero-area.compact-hero .col-lg-6.d-flex.align-self-center {
    align-self: center !important;
  }
  .home9 .hero-area.compact-hero .left-content .content .links {
    margin-top: 30px !important;
  }
}

/* ===========================================================
   HERO RESPONSIVE — single source of truth (winning !important block)
   • Tablet/mobile: text first, image below
   • Tablet (768–991px): composite breaks out to ~96% of the SCREEN
   • Phone (≤767px): single clean app image, no empty gap below it
   =========================================================== */
@media (max-width: 991px) {
  .home9 .hero-area.compact-hero .row {
    flex-direction: column;
  }
  .home9 .hero-area.compact-hero .col-lg-6 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  .home9 .hero-area.compact-hero .order-first.order-lg-last {
    order: 2 !important;
  }
  .home9 .hero-area.compact-hero .col-lg-6.d-flex.align-self-center {
    order: 1 !important;
    margin-bottom: 24px;
  }
}

/* Tablet (768–991px): composite breaks out to ~96% of the screen; the
   dashboard is centred and the person stands flush on the next section. */
@media (min-width: 768px) and (max-width: 991px) {
  /* No bottom padding so the person's feet meet the next section edge */
  .home9 .hero-area.compact-hero {
    padding-bottom: 0 !important;
  }
  .home9 .hero-area.compact-hero .right-img.hero-img-composite {
    padding: 0 !important;
    width: 96vw !important;
    max-width: 96vw !important;
    margin: 24px 0 0 !important;
    margin-left: calc(50% - 48vw) !important;  /* full-bleed, centred on viewport */
    margin-right: calc(50% - 48vw) !important;
  }
  .home9 .hero-area.compact-hero .hero-composite-wrapper {
    padding-bottom: 52% !important;
    max-width: none !important;
    margin: 0 auto !important;
  }
  /* Web dashboard centred horizontally as the backdrop */
  .home9 .hero-area.compact-hero .hero-composite-wrapper .hero-img-web {
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 0 !important;
    width: 72% !important;
  }
  /* Person: flush to the bottom edge, full height */
  .home9 .hero-area.compact-hero .hero-composite-wrapper .hero-img-person {
    right: 2% !important;
    bottom: 0 !important;
    height: 100% !important;
    max-width: 46% !important;
  }
  /* Phone: bottom-left, lifted up so it sits a bit above the edge */
  .home9 .hero-area.compact-hero .hero-composite-wrapper .hero-img-sim {
    height: 64% !important;
    left: 6% !important;
    bottom: 13% !important;
  }
}

/* Phone (≤767px): single app screenshot, centred, with breathing room below */
@media (max-width: 767px) {
  .home9 .hero-area.compact-hero {
    padding: 80px 0 48px !important;
  }
  /* Centre the hero text content (headline, subtitle, buttons) */
  .home9 .hero-area.compact-hero .left-content,
  .home9 .hero-area.compact-hero .left-content .content {
    text-align: center !important;
    width: 100% !important;
  }
  .home9 .hero-area.compact-hero .left-content .content .links {
    text-align: center !important;
    padding-right: 0 !important;
    justify-content: center !important;
  }
  .home9 .hero-area.compact-hero .right-img.hero-img-composite {
    padding: 0 !important;
    width: 100% !important;
    max-width: 340px !important;
    margin: 6px auto 0 !important;
  }
  .home9 .hero-area.compact-hero .hero-composite-wrapper {
    padding-bottom: 0 !important;   /* kill the aspect-ratio box that created the gap */
    max-width: none !important;
    height: auto !important;
    display: flex !important;
    justify-content: center !important;
  }
  .home9 .hero-area.compact-hero .hero-composite-wrapper .hero-img-web,
  .home9 .hero-area.compact-hero .hero-composite-wrapper .hero-img-person {
    display: none !important;
  }
  .home9 .hero-area.compact-hero .hero-composite-wrapper .hero-img-sim {
    position: static !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    max-height: 430px !important;
    max-width: 82% !important;
    margin: 0 auto !important;
    filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.20));
  }
}

/* Overflow safety on small screens */
@media (max-width: 575px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  .container,
  .container-fluid {
    padding-left: 25px !important;
    padding-right: 25px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  body > *, section, .apply-hero, footer {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .row > [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  section img.shape, section img.shape2 {
    max-width: 50%;
    height: auto;
  }
}

/* About section - ensure adequate contrast (dark text on light background) */
section.about {
  background: #ffffff;
}
section.about .section-title .title,
section.about .box .inner-box h4,
section.about .box .inner-box .title {
  color: #242424 !important;
}
section.about .section-title p,
section.about .box .inner-box .text {
  color: #555 !important;
}

/* Keep About card text readable on hover (home9 fills the card with blue) */
section.about .box:hover .inner-box h4,
section.about .box:hover .inner-box .title,
section.about .box:hover .inner-box .text {
  color: #ffffff !important;
}
section.about .box:hover .inner-box .icon i {
  background: #ffffff !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Prevent WhatsApp/back-to-top overlap on mobile */
@media (max-width: 575px) {
  .whatsapp-widget {
    bottom: 20px !important;
    right: 20px !important;
  }
  .bottomtotop {
    bottom: 80px !important;
    right: 20px !important;
  }
}

/* ================================
   Apply Page v2 — Wizard, Review,
   Preparation, Trust, A11y
   ================================ */

/* Hero trust badges */
.apply-hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.apply-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}
.apply-badge i { color: #aee1ff; }

/* Preparation card */
.prep-card {
  margin-top: 40px;
  background: #fff;
  border: 1px solid #e6edf7;
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 10px 40px rgba(2, 80, 197, 0.06);
}
.prep-card-head {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.prep-card-head i {
  grid-row: 1 / span 2;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #e8f0ff;
  color: #0250c5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.prep-card-head h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #242424;
}
.prep-card-head p {
  margin: 0;
  color: #666;
  font-size: 14px;
  grid-column: 2;
}
.prep-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}
.prep-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
  font-size: 14px;
}
.prep-list li i {
  color: #0250c5;
  width: 18px;
  text-align: center;
}
.prep-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0250c5;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-top: 1px solid #eef2f8;
  padding-top: 14px;
  margin-top: 6px;
  width: 100%;
}
.prep-download:hover { color: #013b96; text-decoration: underline; }

/* Wizard stepper */
.wizard-stepper {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  counter-reset: step;
}
.wizard-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
  user-select: none;
}
.wizard-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(50% + 22px);
  right: calc(-50% + 22px);
  height: 2px;
  background: #e0e6ef;
  z-index: 0;
}
.wizard-step.is-done:not(:last-child)::after { background: #0250c5; }
.wizard-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e0e6ef;
  color: #9aa4b2;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  z-index: 1;
  transition: all 0.2s ease;
  font-size: 14px;
}
.wizard-step.is-active .wizard-step-circle {
  background: #0250c5;
  border-color: #0250c5;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(2, 80, 197, 0.15);
}
.wizard-step.is-done .wizard-step-circle {
  background: #0250c5;
  border-color: #0250c5;
  color: #fff;
}
.wizard-step.is-done .wizard-step-circle::before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
}
.wizard-step.is-done .wizard-step-circle { font-size: 0; }
.wizard-step.is-done .wizard-step-circle::before { font-size: 14px; }
.wizard-step-label {
  font-size: 13px;
  color: #6b7380;
  font-weight: 500;
  text-align: center;
}
.wizard-step.is-active .wizard-step-label,
.wizard-step.is-done .wizard-step-label {
  color: #242424;
  font-weight: 600;
}

/* Form steps */
.form-step {
  border: 0;
  padding: 0;
  margin: 0 0 8px;
}
.form-step[hidden] { display: none; }
.form-section-help {
  color: #6b7380;
  font-size: 14px;
  margin: -6px 0 18px;
}

/* Field states */
.form-group .input-field.is-invalid,
.form-group input.is-invalid,
.form-group select.is-invalid {
  border-color: #dc3545 !important;
  background: #fff6f7;
}

/* ================================
   CMS Custom Pages (/page/{slug})
   ================================ */
.cms-page {
  padding-bottom: 70px;
}
.cms-page-hero {
  background: #0250c5;
  padding: 90px 0 45px;
  margin-top: 70px;
  margin-bottom: 40px;
}
.cms-page-title {
  color: #fff;
  font-size: 38px;
  font-weight: 700;
  margin: 0;
  text-align: center;
}
.cms-page-content {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}
.cms-page-content h1,
.cms-page-content h2,
.cms-page-content h3,
.cms-page-content h4 {
  color: #242424;
  font-weight: 700;
  margin: 32px 0 14px;
  line-height: 1.3;
}
.cms-page-content h2 { font-size: 26px; }
.cms-page-content h3 { font-size: 21px; }
.cms-page-content h4 { font-size: 18px; }
.cms-page-content p { margin: 0 0 18px; }
.cms-page-content ul,
.cms-page-content ol { margin: 0 0 18px; padding-left: 22px; }
.cms-page-content li { margin-bottom: 8px; }
.cms-page-content a { color: #0250c5; text-decoration: underline; }
.cms-page-content a:hover { color: #013b96; }
.cms-page-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; }
.cms-page-content blockquote {
  border-left: 4px solid #0250c5;
  background: #f8fafd;
  margin: 0 0 18px;
  padding: 14px 20px;
  color: #555;
  border-radius: 0 8px 8px 0;
}
.cms-page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
}
.cms-page-content th,
.cms-page-content td {
  border: 1px solid #e6edf7;
  padding: 10px 14px;
  text-align: left;
}
.cms-page-content th { background: #f8fafd; font-weight: 700; }
.cms-page-updated {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid #eef2f8;
  font-size: 13px;
  color: #9aa4b2;
}
.cms-page-updated i { color: #0250c5; margin-right: 5px; }

@media (max-width: 575px) {
  .cms-page-hero { padding: 80px 0 36px; }
  .cms-page-title { font-size: 26px; }
  .cms-page-content { font-size: 15px; }
}

/* ================================
   Error Pages (404 / 403 / 500 / 503)
   ================================ */
.error-page {
  background: linear-gradient(135deg, #f8fafd 0%, #eef4fc 100%);
  padding: 100px 0 80px;
  margin-top: 70px;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
}
.error-icon {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 12px 40px rgba(2, 80, 197, 0.12);
  color: #0250c5;
  font-size: 44px;
}
.error-code {
  font-size: 88px;
  font-weight: 800;
  color: #0250c5;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 10px;
  text-shadow: 0 2px 0 rgba(2, 80, 197, 0.08);
}
.error-heading {
  font-size: 30px;
  font-weight: 700;
  color: #242424;
  margin: 0 0 14px;
  line-height: 1.3;
}
.error-message {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 32px;
}
.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.error-actions .mybtn3 {
  padding: 12px 26px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.error-support {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(2, 80, 197, 0.12);
  max-width: 460px;
  margin: 0 auto;
}
.error-support-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #555;
}
.error-support-item i {
  color: #0250c5;
  width: 16px;
  text-align: center;
}
.error-support-item a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}
.error-support-item a:hover { color: #0250c5; }

@media (max-width: 575px) {
  .error-page { padding: 80px 0 60px; }
  .error-icon { width: 90px; height: 90px; font-size: 36px; }
  .error-code { font-size: 64px; }
  .error-heading { font-size: 22px; }
  .error-message { font-size: 15px; }
  .error-actions .mybtn3 { flex: 1; min-width: 0; justify-content: center; }
  .error-support { gap: 14px; }
}

/* ID document upload — visually group type select + file box */
.id-upload-group {
  background: #f8fafd;
  border: 1px solid #e6edf7;
  border-radius: 12px;
  padding: 16px 18px;
}
.id-upload-group > label {
  margin-bottom: 12px !important;
  display: block;
}

/* Styled native select — keeps native mobile UX, looks consistent on desktop */
.select-wrap {
  position: relative;
  display: block;
}
.select-wrap::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #6b7380;
  border-bottom: 2px solid #6b7380;
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
  transition: border-color 0.2s ease;
}
.select-wrap:focus-within::after { border-color: #0250c5; }
.select-wrap select.input-field {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
  background-color: #fff;
  cursor: pointer;
  width: 100%;
}
.select-wrap select.input-field:invalid { color: #9aa4b2; }
.select-wrap select.input-field option { color: #242424; }
.select-wrap select.input-field::-ms-expand { display: none; }
.field-hint {
  display: block;
  color: #8a94a3;
  font-size: 12px;
  margin-top: 6px;
}
.field-error {
  display: block;
  color: #dc3545;
  font-size: 12px;
  margin-top: 6px;
  min-height: 16px;
}
.field-error:empty { min-height: 0; }

/* File upload — richer states */
.file-upload-box.is-dragging {
  border-color: #0250c5;
  background: #e9f1ff;
}
.file-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
}
.file-chip > i {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #e8f0ff;
  color: #0250c5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.file-chip-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.file-chip-meta strong {
  color: #242424;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-chip-meta small { color: #8a94a3; font-size: 12px; }
.file-chip-remove {
  background: none;
  border: 0;
  color: #8a94a3;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}
.file-chip-remove:hover { color: #dc3545; background: #ffecee; }

/* Review step */
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.review-block {
  background: #f8fafd;
  border: 1px solid #e6edf7;
  border-radius: 12px;
  padding: 18px 20px;
}
.review-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e6edf7;
}
.review-block-head h6 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0250c5;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.review-edit {
  background: none;
  border: 0;
  color: #0250c5;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.review-edit:hover { background: #e8f0ff; }
.review-block dl { margin: 0; }
.review-block dl > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed #e6edf7;
  font-size: 14px;
}
.review-block dl > div:last-child { border-bottom: 0; }
.review-block dt { color: #6b7380; font-weight: 500; margin: 0; }
.review-block dd { color: #242424; margin: 0; font-weight: 600; word-break: break-word; }

/* Consent */
.consent-box {
  background: #fffdf5;
  border: 1px solid #f3e6b8;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 10px;
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  color: #333;
  line-height: 1.55;
  cursor: pointer;
}
.consent-label input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #0250c5;
  flex-shrink: 0;
}

/* Wizard navigation bar */
.wizard-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 22px;
  margin-top: 8px;
  border-top: 1px solid #eef2f8;
}
.wizard-nav-spacer { flex: 1; }
.wizard-nav .mybtn3 {
  padding: 12px 28px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mybtn-outline {
  background: #fff !important;
  color: #0250c5 !important;
  border: 2px solid #0250c5 !important;
}
.mybtn-outline:hover {
  background: #0250c5 !important;
  color: #fff !important;
}

/* Alert dismissible */
.alert.alert-dismissible {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 40px;
  position: relative;
}
.alert .alert-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
}
.alert .alert-close:hover { opacity: 1; }

/* Success state */
.apply-success-section {
  padding: 60px 0 80px;
  background: #f8fafd;
}
.apply-success-card {
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}
.apply-success-card .success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e6f7ec;
  color: #28a745;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.apply-success-card h2 {
  font-size: 28px;
  font-weight: 700;
  color: #242424;
  margin-bottom: 10px;
}
.apply-success-card > p {
  color: #666;
  font-size: 16px;
  margin-bottom: 30px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.success-timeline {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px;
  max-width: 520px;
  text-align: left;
}
.success-timeline li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  padding: 10px 0;
  position: relative;
}
.success-timeline li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: -10px;
  width: 2px;
  background: #e6edf7;
}
.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e0e6ef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa4b2;
  font-size: 13px;
  z-index: 1;
}
.timeline-dot.done { background: #28a745; border-color: #28a745; color: #fff; }
.timeline-dot.current {
  background: #0250c5;
  border-color: #0250c5;
  box-shadow: 0 0 0 4px rgba(2, 80, 197, 0.18);
}
.success-timeline strong {
  display: block;
  color: #242424;
  font-size: 15px;
}
.success-timeline small {
  display: block;
  color: #6b7380;
  font-size: 13px;
  margin-top: 2px;
}
.success-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
  .prep-card { padding: 22px 18px; }
  .prep-list { grid-template-columns: 1fr; }
  .wizard-step-label { font-size: 11px; }
  .wizard-step-circle { width: 32px; height: 32px; font-size: 13px; }
  .wizard-step:not(:last-child)::after { top: 16px; left: calc(50% + 18px); right: calc(-50% + 18px); }
  .review-grid { grid-template-columns: 1fr; }
  .review-block dl > div { grid-template-columns: 100px 1fr; font-size: 13px; }
  .apply-success-card { padding: 36px 22px; }
  .apply-success-card h2 { font-size: 22px; }
  .wizard-nav { flex-wrap: wrap; }
  .wizard-nav .mybtn3 { flex: 1; justify-content: center; }
  .apply-hero-badges { gap: 8px; }
  .apply-badge { font-size: 12px; padding: 6px 10px; }
}
@media (max-width: 480px) {
  .wizard-step-label { display: none; }
  .wizard-step:not(:last-child)::after { top: 16px; }
}

/* ===========================================================
   SECTION BACKGROUND RHYTHM
   One unified soft-blue tint alternating with white, top→bottom:
   tint → white → tint → white → tint → white → tint → white → brand-blue footer.
   Targeted by id (highest specificity) so it overrides the theme's mixed tints.
   =========================================================== */
:root { --section-tint: #f5f8ff; }

#home        { background: var(--section-tint) !important; } /* Hero  (+ orbs) */
#about       { background: #ffffff !important; }             /* What is VFD?   */
#howtouse    { background: var(--section-tint) !important; } /* How To Use     */
#feature     { background: #ffffff !important; }             /* API Integration*/
#pricing     { background: var(--section-tint) !important; } /* Pricing        */
#testimonial-area { background: #ffffff !important; }        /* Testimonials   */
#faq         { background: var(--section-tint) !important; } /* FAQ            */
#contact     { background: #ffffff !important; }             /* Get in Touch   */
/* Footer keeps its brand-blue (#0250c5). */

/* Wave ribbons removed entirely — the shape <img> tags were deleted from
   index.php (howtouse / testimonials / FAQ) for a clean, consistent look.
   Safety net in case a template still renders one: */
.home9 section img.shape,
.home9 section img.shape2 { display: none !important; }

/* Contact: add space between the info cards row and the form/map row */
.home9 .contact .row > .col-lg-4 { margin-bottom: 40px; }

/* FAQ: push the title clear of its top wave so the ribbon doesn't cut into it
   (How To Use already sits right at the wave edge — this matches it). */
/* (FAQ wave ribbon removed — normal 44px section padding applies.) */

/* Optically centre the phone glyph in the "VFD Mobile Application" icon —
   the flaticon-apps glyph renders ~6px left of its box. */
.howtouse-icon i.flaticon-apps { transform: translateX(6px); }

/* Same bearing fix for the save-money glyph (About → Cost-Effective) */
.about .box .icon i.flaticon-save-money { display: inline-block; transform: translateX(4px); }

/* Anti-spam captcha row (contact form + quote modal) */
.captcha-row {
  background: #f5f8ff;
  border: 1px solid #e3ecfc;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.captcha-row label {
  margin: 0;
  font-size: 14px;
  color: #444;
  display: flex;
  align-items: center;
  gap: 8px;
}
.captcha-row label .fa-shield-alt { color: #0250c5; }
.captcha-row label strong { color: #0250c5; font-size: 16px; }
.captcha-row .captcha-input {
  width: 90px !important;
  margin: 0 !important;
  text-align: center;
  font-weight: 700;
}

/* Contact section: replace the theme's heavy 30px drop-shadow (it smeared onto
   the tops of neighbouring cards) with the site's soft ambient shadow. */
.home9 .contact .info-box,
.contact .info-box,
.home9 .contact .contact-form-wrapper,
.home9 .contact .google_map_wrapper {
  box-shadow: 0 10px 30px rgba(0, 37, 93, 0.08) !important;
}

/* How To Use: its title sits in a flex column (used for equal-height cards),
   which shrank it to content width and pushed it left. Force full width so it
   centres like every other section title. */
.home9 .howtouse-section .section-title { width: 100% !important; }

/* ===========================================================
   Vision & Mission
   =========================================================== */
.vm-section { padding: 44px 0; background: #f5f8ff; }
.vm-card {
  background: #fff;
  border-radius: 16px;
  padding: 34px 30px;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 37, 93, 0.06);
  border: 1px solid #eef2fb;
  margin-bottom: 24px;
  transition: transform .3s, box-shadow .3s;
}
.vm-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 37, 93, 0.12); }
.vm-icon {
  width: 60px; height: 60px; border-radius: 14px;
  background: linear-gradient(135deg, #0250c5, #1a73e8);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 18px;
}
.vm-card h3 { font-weight: 700; color: #242424; margin-bottom: 12px; font-size: 22px; }
.vm-card p { color: #555; line-height: 1.7; margin: 0; font-size: 15px; }

/* ===========================================================
   Stats / Trust Bar
   =========================================================== */
.stats-section {
  padding: 46px 0;
  background: linear-gradient(135deg, #0250c5 0%, #1652c9 55%, #1a73e8 100%);
}
.stats-section .stat-item { text-align: center; padding: 14px 8px; color: #fff; }
.stats-section .stat-icon { font-size: 30px; color: rgba(255, 255, 255, 0.85); margin-bottom: 10px; }
.stats-section .stat-num { font-size: 42px; font-weight: 800; line-height: 1; margin-bottom: 6px; letter-spacing: -1px; }
.stats-section .stat-label { font-size: 15px; color: rgba(255, 255, 255, 0.82); font-weight: 500; }
@media (max-width: 575px) {
  .stats-section .stat-num { font-size: 32px; }
  .stats-section .stat-item { padding: 12px 4px; }
}

/* ===========================================================
   API "Request a Quote" CTA + modal
   =========================================================== */
.api-cta-wrap { margin-top: 30px; }
.api-cta-text { color: #555; font-size: 15px; margin: 0 auto 16px; max-width: 560px; }
.api-quote-btn { cursor: pointer; }
.quote-modal { border: none; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 37, 93, 0.25); }
.quote-modal .modal-header { background: linear-gradient(135deg, #0250c5, #1a73e8); color: #fff; border-bottom: none; padding: 18px 24px; }
.quote-modal .modal-header .modal-title { font-weight: 700; }
.quote-modal .modal-header .close { color: #fff; opacity: .9; text-shadow: none; }
.quote-modal .modal-body { padding: 22px 24px; }
.quote-modal .quote-intro { color: #666; font-size: 14px; margin-bottom: 18px; }
.quote-modal .form-group { margin-bottom: 16px; }
.quote-modal label { font-weight: 600; font-size: 14px; color: #333; margin-bottom: 6px; display: block; }
.quote-modal .input-field { width: 100%; }
.quote-modal .modal-footer { border-top: 1px solid #eee; padding: 14px 24px; }
.btn-quote-cancel { background: transparent; border: 1px solid #ddd; border-radius: 6px; padding: 10px 20px; color: #555; font-weight: 600; cursor: pointer; transition: all .2s; }
.btn-quote-cancel:hover { border-color: #0250c5; color: #0250c5; }

/* ===========================================================
   Content-fit: Contact info cards — equal height, centred content
   =========================================================== */
.home9 .contact .row > .col-lg-4 { display: flex; }
.home9 .contact .info-box {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.home9 .contact .info-box .right .content p { margin-bottom: 0; }

/* Anchor targets clear the fixed navbar when visited via URL hash (/#faq etc.) */
section[id], div[id="home"] { scroll-margin-top: 90px; }

/* ===========================================================
   Testimonials — modern card grid (replaces owl slider + floating avatars)
   =========================================================== */
.testi-grid > [class*="col-"] { display: flex; margin-bottom: 30px; }
.testi-card {
  background: #fff;
  border: 1px solid #eef2fb;
  border-radius: 16px;
  padding: 30px 28px;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 37, 93, 0.06);
  transition: transform .3s, box-shadow .3s;
}
.testi-card:hover { transform: translateY(-5px); box-shadow: 0 20px 45px rgba(0, 37, 93, 0.12); }
.testi-quote {
  position: absolute;
  top: 22px;
  right: 26px;
  font-size: 30px;
  color: #e3ecfc;
}
.testi-stars { color: #f6b21b; font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }
.testi-text {
  color: #555;
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 22px;
  flex: 1; /* pushes the person row to the bottom so cards align */
}
.testi-person { display: flex; align-items: center; gap: 14px; border-top: 1px solid #f0f4fb; padding-top: 18px; }
.testi-person img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e3ecfc;
}
.testi-name { font-size: 16px; font-weight: 700; color: #242424; margin: 0 0 2px; }
.testi-role { font-size: 13px; color: #888; margin: 0; }
