html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
/* Custom Styles based on wi-fi.africa */

/* Color variables */
:root {
  --wf-magenta: #c41c74; /* Magenta/pink color from wi-fi.africa */
  --wf-dark-grey: #343a40; /* Dark charcoal/grey for main header */
  --wf-blue-light: #0099ff; /* Light blue for gradient */
  --wf-blue-dark: #0066cc; /* Darker blue for gradient */
  --wf-green: #4cd137; /* Green for buttons and logo */
  --wf-text-light: #ffffff; /* White text */
  --wf-text-dark: #333333; /* Dark text */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.6;
}

/* Top bar styles */
.top-bar {
  background-color: var(--wf-magenta);
  padding: 0.5rem 0;
}

.top-bar a {
  color: var(--wf-text-light);
  font-size: 0.9rem;
  text-decoration: none;
  margin-left: 1.5rem;
}

.top-bar a:hover {
  text-decoration: underline;
}

/* Main header styles */
.header-custom-bg {
  background-color: var(--wf-dark-grey) !important;
}

/* Logo styles */
.logo-image {
  height: 40px;
  width: auto;
  max-width: 200px;
  background: transparent;
  /* Force white background to be transparent */
  mix-blend-mode: multiply;
  filter: drop-shadow(0 0 2px rgba(76, 209, 55, 0.4));
  transition: all 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 4px rgba(76, 209, 55, 0.6));
}

.footer-logo {
  height: 60px;
  width: auto;
  max-width: 180px;
  margin-bottom: 1rem;
  background: transparent;
  /* Force white background to be transparent */
  mix-blend-mode: multiply;
  filter: drop-shadow(0 0 2px rgba(76, 209, 55, 0.4));
}

/* Legacy logo styles - keeping for backward compatibility */
.logo-text {
  color: var(--wf-text-light);
  font-weight: bold;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  position: relative;
  padding-left: 30px; /* Space for the Wi-Fi icon */
}

.logo-text:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: radial-gradient(circle at center, var(--wf-green) 2px, transparent 3px),
              radial-gradient(circle at center, transparent 6px, var(--wf-green) 6px, var(--wf-green) 8px, transparent 9px),
              radial-gradient(circle at center, transparent 12px, var(--wf-green) 12px, var(--wf-green) 14px, transparent 15px);
}

.logo-dot {
  color: var(--wf-green);
  font-weight: bold;
}

/* Navbar styles */
.navbar-dark .navbar-brand {
  padding: 0.5rem 0;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: var(--wf-text-light);
}

.navbar-dark .navbar-nav .nav-link.active {
  color: var(--wf-text-light);
}

/* Hero section styles */
.hero-section {
  background: linear-gradient(135deg, var(--wf-blue-light) 0%, var(--wf-blue-dark) 100%);
  color: var(--wf-text-light);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  margin-top: -1rem; /* To remove gap between navbar and hero */
  margin-bottom: 2rem;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="500" viewBox="0 0 1000 500"><path fill="rgba(255,255,255,0.05)" d="M786,66C688,120,609,141,500,120C391,99,309,40,228,40C147,40,33,139,33,139L33,0L967,0L967,66C967,66,884,12,786,66Z"/><path fill="rgba(255,255,255,0.05)" d="M833,143C696,169,618,157,500,120C382,83,316,8,200,8C84,8,33,32,33,32L33,0L967,0L967,92C967,92,970,117,833,143Z"/><path fill="rgba(255,255,255,0.05)" d="M890,103C746,110,618,157,500,120C382,83,316,8,200,8C84,8,33,32,33,32L33,0L967,0L967,66C967,66,1034,96,890,103Z"/></svg>');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-title {
  color: var(--wf-magenta);
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.hero-image {
  height: 300px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="500" height="300" viewBox="0 0 500 300"><path fill="rgba(255,255,255,0.2)" d="M150,10C80,30,20,70,20,150C20,230,80,270,150,290C220,310,280,270,280,190C280,110,220,70,150,50C80,30,20,70,20,150Z"/><path fill="rgba(255,255,255,0.2)" d="M350,50C300,65,260,90,260,150C260,210,300,235,350,250C400,265,440,240,440,180C440,120,400,95,350,80C300,65,260,90,260,150Z"/><path fill="rgba(255,255,255,0.2)" d="M450,100C420,110,400,125,400,150C400,175,420,190,450,200C480,210,500,195,500,170C500,145,480,130,450,120C420,110,400,125,400,150Z"/></svg>');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* Button styles */
.btn-wf-primary {
  background-color: var(--wf-green);
  color: var(--wf-text-light);
  font-weight: bold;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-wf-primary:hover {
  background-color: #45b62f; /* Slightly darker green */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Card styles */
.card {
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-title {
  color: var(--wf-dark-grey);
  font-weight: bold;
  margin-bottom: 1rem;
}

/* Service section styles */
.text-primary {
  color: var(--wf-magenta) !important;
}

.text-success {
  color: var(--wf-green) !important;
}

.bg-light {
  background-color: #f8f9fa !important;
}

/* Page header styles */
.page-header {
  background-color: var(--wf-green);
  color: var(--wf-text-light);
  padding: 2rem 0;
  text-align: center;
  margin-top: -1rem;
}

.page-header h1 {
  font-weight: bold;
  margin: 0;
  font-size: 2.5rem;
}

/* Content section styles */
.content-section {
  padding: 3rem 0;
}

.blue-bg {
  background: linear-gradient(135deg, var(--wf-blue-light) 0%, var(--wf-blue-dark) 100%);
  color: var(--wf-text-light);
  position: relative;
}

.blue-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="500" viewBox="0 0 1000 500"><path fill="rgba(255,255,255,0.05)" d="M786,66C688,120,609,141,500,120C391,99,309,40,228,40C147,40,33,139,33,139L33,0L967,0L967,66C967,66,884,12,786,66Z"/><path fill="rgba(255,255,255,0.05)" d="M833,143C696,169,618,157,500,120C382,83,316,8,200,8C84,8,33,32,33,32L33,0L967,0L967,92C967,92,970,117,833,143Z"/><path fill="rgba(255,255,255,0.05)" d="M890,103C746,110,618,157,500,120C382,83,316,8,200,8C84,8,33,32,33,32L33,0L967,0L967,66C967,66,1034,96,890,103Z"/></svg>');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}

.content-section .container {
  position: relative;
  z-index: 1;
}

.section-title {
  color: var(--wf-text-light);
  font-weight: bold;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

/* Service card styles */
.service-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  color: var(--wf-text-light);
  font-weight: bold;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  font-size: 5rem;
  color: var(--wf-green);
}

/* Plan card styles */
.plan-card {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 1.5rem;
  color: var(--wf-text-dark);
  height: 100%;
  transition: all 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.plan-card.highlighted {
  background-color: var(--wf-green);
  color: var(--wf-text-light);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.plan-card h4 {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.plan-card .speed {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--wf-magenta);
  margin-bottom: 0.5rem;
}

.plan-card.highlighted .speed {
  color: var(--wf-text-light);
}

.plan-card .price {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.plan-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.plan-card ul li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.plan-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--wf-green);
}

.plan-card.highlighted ul li::before {
  color: var(--wf-text-light);
}

/* Feature list styles */
.feature-list, .process-list {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.feature-list li, .process-list li {
  margin-bottom: 0.5rem;
}

.privfeature-list {
    list-style: none;
    padding-left: 0;
}

.privfeature-list li {
    text-align: center;
    position: relative;
}

.privfeature-list li::before {
    content: "• ";
    font-weight: bold;
}

/* Call to action section */
.cta-section {
  background-color: var(--wf-dark-grey);
  color: var(--wf-text-light);
  padding: 3rem 0;
  text-align: center;
}

.cta-section h2 {
  font-weight: bold;
  margin-bottom: 1rem;
}

/* Footer styles */
.footer {
  background-color: var(--wf-dark-grey);
  color: var(--wf-text-light);
  padding: 4rem 0 3rem 0;
  margin-top: 3rem;
  position: relative;
  clear: both;
}

.footer .container {
  max-width: 1200px;
}

.footer .row {
  margin-bottom: 0;
}

.footer-section {
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.footer-heading {
  color: var(--wf-text-light);
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-brand-text p {
  color: var(--wf-text-light);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.footer-links a {
  color: var(--wf-text-light);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--wf-green);
  text-decoration: underline;
}

.footer-contact li {
  color: var(--wf-text-light);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.footer-logo {
  height: 80px;
  width: auto;
  max-width: 200px;
  margin-bottom: 1rem;
  background: transparent;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 0 2px rgba(76, 209, 55, 0.4));
}

.footer-logo-section {
  padding-bottom: 1.5rem;
  padding-right: 4rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow: hidden;
  max-width: 18%;
  width: 18%;
  flex: 0 0 18%;
  box-sizing: border-box;
  position: relative;
}

.footer-logo-section::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: transparent;
}

.footer-logo-section p {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.footer-links-section {
  padding-bottom: 1.5rem;
  padding-right: 2rem;
  padding-left: 3rem;
  max-width: 44%;
  width: 44%;
  flex: 0 0 44%;
}

.footer-contact-section {
  padding-bottom: 1.5rem;
  padding-left: 2rem;
  max-width: 38%;
  width: 38%;
  flex: 0 0 38%;
}

/* Edge browser specific fixes */
@supports (-ms-ime-align: auto) {
  .footer-logo-section {
    max-width: 15%;
    width: 15%;
    flex: 0 0 15%;
    padding-right: 5rem;
  }
  
  .footer-links-section {
    max-width: 45%;
    width: 45%;
    flex: 0 0 45%;
    padding-left: 4rem;
  }
  
  .footer-contact-section {
    max-width: 40%;
    width: 40%;
    flex: 0 0 40%;
  }
}

.footer-links-section {
  padding-bottom: 1.5rem;
  padding-right: 2rem;
  padding-left: 2rem;
  max-width: 42%;
  flex: 0 0 42%;
}

.footer-contact-section {
  padding-bottom: 1.5rem;
  padding-left: 1rem;
  max-width: 33%;
  flex: 0 0 33%;
}

@media (max-width: 991px) {
  .footer-logo-section,
  .footer-links-section,
  .footer-contact-section {
    max-width: 100%;
    flex: 0 0 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-bottom: 1.5rem;
  }
}

.footer h5 {
  margin-bottom: 1rem;
  font-weight: bold;
  color: var(--wf-text-light);
}

.footer ul {
  margin-bottom: 0;
}

.footer ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.footer a {
  color: var(--wf-text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--wf-green);
  text-decoration: underline;
}

.footer p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/* Coverage page styles */
.map-container {
  position: relative;
  width: 100%;
  height: 400px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.south-africa-map {
  width: 100%;
  height: 100%;
}

.province {
  fill: rgba(255, 255, 255, 0.1);
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 2;
}

.coverage-area {
  fill: rgba(76, 209, 55, 0.3);
  stroke: var(--wf-green);
  stroke-width: 2;
}

.coverage-point {
  fill: var(--wf-magenta);
}

.map-legend {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px;
  border-radius: 5px;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.legend-color {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 10px;
  border-radius: 3px;
}

.coverage-color {
  background-color: rgba(76, 209, 55, 0.3);
  border: 1px solid var(--wf-green);
}

.planned-color {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.point-color {
  background-color: var(--wf-magenta);
}

.coverage-form .form-control, .coverage-form .form-select {
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  color: var(--wf-text-dark);
}

.coverage-form .form-label {
  color: var(--wf-text-light);
  font-weight: 500;
}

.coverage-info {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  height: 100%;
}

.coverage-info h4 {
  color: var(--wf-text-light);
  font-weight: bold;
  margin-bottom: 1rem;
}

.coverage-contact {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 1rem;
}

.expansion-phase {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  height: 100%;
  transition: all 0.3s ease;
}

.expansion-phase:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.expansion-phase h4 {
  color: var(--wf-green);
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
}

/* Contact page styles */
.contact-form .form-control, .contact-form .form-select {
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  color: var(--wf-text-dark);
}

.contact-form .form-label {
  color: var(--wf-text-light);
  font-weight: 500;
}

.contact-method h4 {
  color: var(--wf-green);
  font-size: 1.2rem;
  font-weight: bold;
}

.contact-detail {
  font-size: 1.2rem;
  font-weight: bold;
}

.business-hours {
  margin-top: 1rem;
}

.hour-box {
  background-color: var(--wf-magenta);
  color: var(--wf-text-light);
  border-radius: 5px;
  padding: 0.5rem;
  text-align: center;
  height: 100%;
}

.hour-box .day {
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background-color: var(--wf-dark-grey);
  color: var(--wf-text-light);
  border-radius: 50%;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--wf-magenta);
  transform: translateY(-5px);
}

.map-section {
  height: 400px;
  position: relative;
}

.map-placeholder {
  background-color: #e9ecef;
  height: 400px;
  position: relative;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="800" height="400" viewBox="0 0 800 400"><rect width="800" height="400" fill="%23e9ecef"/><path d="M100,100 L700,100 L700,300 L100,300 Z" fill="none" stroke="%23adb5bd" stroke-width="2" stroke-dasharray="5,5"/><circle cx="400" cy="200" r="10" fill="%23c41c74"/></svg>');
  background-position: center;
  background-repeat: no-repeat;
}

.map-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-overlay h3 {
  color: var(--wf-dark-grey);
  font-weight: bold;
  margin-bottom: 1rem;
}
/* Table-based footer layout to prevent overlapping */
.footer-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.footer-logo-cell {
  width: 20%;
  padding-right: 3rem;
  vertical-align: top;
  overflow: hidden;
}

.footer-links-cell {
  width: 40%;
  padding-left: 2rem;
  padding-right: 2rem;
  vertical-align: top;
}

.footer-contact-cell {
  width: 40%;
  padding-left: 2rem;
  vertical-align: top;
}

.footer-logo-cell p {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .footer-table,
  .footer-logo-cell,
  .footer-links-cell,
  .footer-contact-cell {
    display: block;
    width: 100%;
    padding: 1rem;
  }
}
/* Footer textarea styling */
.footer-description {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: var(--wf-text-light);
  font-size: 0.85rem;
  line-height: 1.3;
  padding: 8px;
  resize: none;
  overflow: hidden;
  font-family: inherit;
}

.footer-description:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
}