:root {
  --primary-color: #004080;
  --secondary-color: #0073e6;
  --text-color: #333;
  --bg-color: #f4f4f4;
  --form-bg-color: #f9f9f9;
  --border-color: #333;
  --table-header-bg: #d0d0d0;
  --table-row-bg-1: #f0f0f0;
  --table-row-bg-2: #e0e0e0;
}

/* Base Styles */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
}
.container {
  flex: 1;
  padding: 20px;
  text-align: center;
}

/* Header Styles */
header {
  background: url('images/bg.jpg') no-repeat center center / cover;
  color: white;
  padding: 10px 0;
  text-align: center;
}
header img {
  max-width: 100%;
  height: auto;
}

/* Navigation Styles */
nav {
  display: flex;
  justify-content: center;
  background-color: var(--primary-color);
  padding: 10px 0;
}
nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
nav a:hover,
nav a:focus {
  border-bottom-color: white;
}
nav a:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Footer Styles */
footer {
  background-color: var(--secondary-color);
  color: white;
  text-align: center;
  padding: 10px 0;
}

/* Contact Info Styles */
.contact-info a {
  color: black;
  font-weight: bold;
}

/* Page-specific Background Styles */
body.index {
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url('images/index_bg.webp');
}

body.plans,
body.contact,
body.faq {
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url('images/faq_bg.webp');
}

body.host_transmitter {
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url('images/faq_bg.webp'); /* Assuming it's the same as faq for now */
}

/* Homepage Specific Styles */
.homepage-mission {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  border: 2px solid var(--border-color);
  padding: 20px;
}

.homepage-serving {
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
  background-color: white;
  border: 2px solid var(--border-color);
  padding: 20px;
}

/* Contact Page Specific Styles */
.contact-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  border: 2px solid var(--border-color);
  padding: 20px;
}

/* Host Transmitter Page Styles */
.host-transmitter-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  background-color: white;
  border: 2px solid var(--border-color); /* Use your CSS variable */
  padding: 20px;
}

/* Floating Window Styles */
#floatingWindow {
  display: none; /* Initial state */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  padding: 20px;
  background-color: white;
  border: 2px solid var(--border-color);
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  z-index: 1000;
}

#floatingWindow button {
  padding: 10px 20px; /* Adjust as needed */
  background-color: var(--secondary-color); /* Use your theme color */
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#floatingWindow button:hover {
  background-color: #005bb5; /* Darker shade of secondary color */
}


/* Utility Classes */
.anchor {
  display: block;
  position: relative;
  top: -100px;
  visibility: hidden;
}

/* Form Styles */
form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--form-bg-color);
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border: 2px solid var(--border-color);
  box-sizing: border-box;
}
form div {
  margin-bottom: 15px;
}
form label {
  display: block;
  margin-bottom: 5px;
  text-align: left;
}
form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  box-sizing: border-box;
}
form * {
  box-sizing: border-box;
}
form button {
  background-color: var(--secondary-color);
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
form button:hover {
  background-color: #005bb5;
}

/* Hover Image Styles */
.hover-info {
  text-decoration: underline;
  color: blue;
  cursor: pointer;
}
#hover-image {
  position: absolute;
  display: none;
  z-index: 1000;
}
#hover-image img {
  max-width: 200px;
  height: auto;
  border: 2px solid var(--border-color);
}

/* Plans Page Styles */
.plans-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  background-color: white;
  padding: 20px;
  border: 2px solid var(--border-color);
}

.plans-table-container {
  overflow-x: auto;
}

.plans-table {
  width: 100%;
  border-collapse: collapse;
}

.plans-table th {
  border: 2px solid var(--border-color);
  padding: 10px;
  background-color: var(--table-header-bg);
}

.plans-table td {
  border: 1px solid var(--border-color);
  padding: 10px;
}

.plans-table tr:nth-child(odd) {
  background-color: var(--table-row-bg-1);
}

.plans-table tr:nth-child(even) {
  background-color: var(--table-row-bg-2);
}

.plans-table img {
  width: 72px;
  height: 72px;
}

.plan-info-box {
  border: 2px solid var(--border-color);
  padding: 20px;
  background-color: white;
  margin-top: 20px;
}

/* FAQ Page Styles */
.content-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  border: 2px solid var(--border-color);
  padding: 20px;
  text-align: left;
}

.faq-question {
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 8px;
}

.faq-question:first-of-type {
  margin-top: 15px;
}

.faq-answer {
  margin-bottom: 15px;
}

/* Install Page Styles */
.installation-costs-table {
  width: 80%;
  border-collapse: collapse;
  background-color: #f9f9f9;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin: 20px auto 40px auto; /* Shorthand for top right bottom left */
  border: 2px solid var(--border-color); /* Use your variable */
}

.installation-costs-header-row {
  background-color: #e1e1e1;
  text-align: center;
}

.installation-costs-row {
  background-color: #f2f2f2;
  text-align: center;
}

.installation-costs-row.alt { /* For alternating rows */
  background-color: #D0E4F7;
}

.installation-costs-cell {
  padding: 10px;
  border: 1px solid var(--border-color); /* Use your variable */
}

.installation-costs-header-cell {
  padding: 10px;
  border: 1px solid var(--border-color); /* Use your variable */
  font-weight: bold;
}

/* Services Page Styles (or you could group with Install Page Styles) */
.services-section {
  border: 2px solid var(--border-color);
  padding: 20px;
  background-color: white;
  margin-top: 20px;
}

.services-table {
  width: 100%;
  border-collapse: collapse;
}

.services-table th,
.services-table td {
  border: 1px solid var(--border-color);
  padding: 10px;
}

.services-table tr:nth-child(odd) {
  background-color: #f0f0f0;
}

.services-table tr:nth-child(even) {
  background-color: #e0e0e0;
}

.services-table th {
  background-color: #f0f0f0; /* Consistent header background */
}

/* Media Queries */
@media (min-width: 768px) {
  .container {
    padding-top: 40px;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 600px) {
  .plans-table th,
  .plans-table td {
    padding: 8px;
    font-size: 14px;
  }

  .plans-table img {
    width: 48px;
    height: 48px;
  }

  .content-container {
    padding: 15px;
  }

  .faq-question {
    margin-top: 16px;
    margin-bottom: 6px;
  }
}

/* Hamburger Menu Styles */
.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1000;
  background: none; /* Remove default button background */
  border: none;     /* Remove default button border */
  padding: 10px;   /* Add some padding around the bars for easier clicking */
}

.hamburger-menu:focus {
  outline: none; /* Remove the focus outline */
}

.hamburger-bar {
  width: 25px;
  height: 3px;
  background-color: white; /* Change the color to black */
  margin: 3px 0;
  transition: 0.4s;
}

.hamburger-menu.active .hamburger-bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .hamburger-menu {
    display: flex;
    position: absolute;
    top: 15px;
    right: 15px;
  }

  nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    z-index: 100;
  }

  nav.active {
    left: 0;
  }

  nav a {
    margin: 15px 0;
    font-size: 1.5rem;
  }

  header {
    position: relative;
  }

/* Form Submission Messages */
.form-success-message {
  max-width: 600px;
  margin: 20px auto;
  padding: 15px;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  border-radius: 5px;
  text-align: center;
}

.form-error-message {
  max-width: 600px;
  margin: 20px auto;
  padding: 15px;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  border-radius: 5px;
  text-align: center;
}

} /* This is the final closing brace of the entire styles.css file */
