/* Reset default styles for consistency */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global Styles */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

/* Hero Section */
.hero {
  background-image: url('images/bg3.jpg'); /* actual image */
  background-size: cover;
  background-position: center;
  position: relative;
  height: 100vh; /* Full viewport height */
  text-align: center;
  color: white;
}

/* Overlay text styling */
.overlay-text {
  position: absolute;
  top: 25%; /* Adjust the position to your liking */
  left: 50%;
  transform: translateX(-50%);
  font-size: 3.6rem; /* Reduced font size by 10% for desktop */
  font-weight: bold;
  color: #FFD700; /* Bright, complementary color */
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7); /* Strong shadow for better contrast */
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  padding: 20px 40px; /* Adding padding to the text block */
  border-radius: 8px; /* Rounded corners */
  white-space: nowrap; /* Prevent text from wrapping to the next line */
}

/* Hero Section Button Styling */
.hero .cta-button {
  position: absolute;
  top: 50%; /* Positioning the button visually centered */
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #005a8d;
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  font-size: 1.2rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  z-index: 20;
}

.hero .cta-button:hover {
  background-color: #003366;
}

.hero .cta-button:focus {
  outline: 2px solid #FFD700;
  outline-offset: 2px;
}

/* Navigation Dropdown */
nav {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #003366;
  padding: 10px;
  display: none; /* Initially hidden */
  width: 100%;
  overflow: hidden;
  transition: opacity 0.3s ease-in-out; /* We only animate opacity */
	z-index: 25; /* Ensure nav appears above the background */
}

nav.open {
  display: block; /* Make the nav menu visible */
  opacity: 1; /* Set opacity to 1 when the 'open' class is added */
}

nav ul {
  list-style: none;
  padding: 0;
}

nav ul li {
  padding: 10px;
  text-align: center;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

nav ul li a:hover,
nav ul li a:focus {
  background-color: #005a8d;
  outline: none;
}

/* Radio Button Form Styling */
.radio-form {
  margin-top: 20px;
  display: flex;
  justify-content: center; /* Center the radio buttons */
  gap: 30px; /* Space between options */
}

.radio-form label {
  font-size: 1.2rem;
  font-weight: 500;
  color: #333; /* Dark gray for text */
  cursor: pointer; /* Pointer cursor on hover */
  display: flex;
  align-items: center;
  gap: 10px; /* Space between radio button and label */
}

.radio-form input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: #003366; /* Blue color for radio button */
  cursor: pointer;
}

/* Add space between the radio buttons */
form label {
  margin-right: 20px; /* Adds space between the Yes and No options */
  display: inline-block; /* Ensure they stay on the same line */
}

/* Service Selection Section - Added space between checkboxes */
.service-selection-container {
  margin-top: 30px; /* Space at the top for better separation */
}

.service-selection-container label {
  display: block;
  margin-bottom: 15px; /* Space between each checkbox */
  font-size: 1.1rem; /* Slightly larger text */
  line-height: 1.5; /* Ensure good readability */
}

/* Continue Button Styling */
.continue-button {
  background-color: #4a90e2;
  color: white;
  padding: 1em 2em; /* Add horizontal padding for better button size */
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  margin-top: 1em; /* Ensure some spacing above the button */
  border-radius: 4px;
  display: block; /* Block element to center */
  width: auto; /* Let the button adjust width based on content */
  margin-left: auto;
  margin-right: auto; /* Center the button */
}

.continue-button:hover {
  background-color: #357ab7;
}

.question {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

/* Submit Button Styling */
.submit-button {
  background-color: #28a745; /* Green color for submission */
  color: white;
  padding: 1em 2em; /* Add horizontal padding for better button size */
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  margin-top: 1em; /* Space above button */
  border-radius: 4px;
  display: block;
  width: auto; /* Let the button adjust width based on content */
  margin-left: auto;
  margin-right: auto; /* Center the button */
}

.submit-button:hover {
  background-color: #218838; /* Darker green on hover */
}

.submit-button:focus {
  outline: 2px solid #FFD700;
  outline-offset: 2px;
}

/* Toggle Button for Mobile */
.hamburger {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: transparent;
  padding: 15px;
  cursor: pointer;
  color: white;
  z-index: 30;
}

.hamburger:hover {
  background-color: #005a8d;
}

.hamburger:focus {
  outline: 2px solid #FFD700;
  outline-offset: 2px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px 0;
  transition: transform 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background-color: #003366;
  color: white;
  font-size: 0.9rem;
}

/* Transparent Content Window (Empty White Box) - Default (All Pages) */
.content-window {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  height: auto; /* Allow flexible height based on content */
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1;
  padding: 30px; /* Add padding inside the white box */
  text-align: center; /* Center the content horizontally */
}

/* Make the content box slightly narrower for the services page */
.services-page .content-window {
  width: 90%; /* Reduced the width by 15% */
  max-width: 1200px; /* Set a max-width to prevent it from becoming too wide */
  padding: 40px; /* Add more padding for better spacing inside */
  text-align: center; /* Align text to the left for better readability */
}

/* Ensure the content window is well spaced on small screens */
@media (max-width: 768px) {
  /* Make the content window use the full width */
  .content-window {
    width: 100%;
    padding: 15px;  /* Adjust padding for mobile */
    top: 20%;  /* Adjust the top position if needed */
  }

  /* Adjust images to take full width */
  .service-item img {
    width: 100%;
    height: auto;  /* Maintain aspect ratio */
  }

  /* Adjust text layout for mobile screens */
  .service-item {
    display: block;  /* Stack images and text */
    margin-bottom: 20px;
  }

  /* Make text span the full width */
  .service-item p {
    font-size: 1rem;  /* Adjust text size for readability */
    line-height: 1.6;
    margin-top: 10px;
    width: 100%;  /* Make sure text spans the full width */
  }

  /* Adjust font size for smaller screens */
  .services-page .content-window h2 {
    font-size: 1.6rem; /* Adjust font size for smaller screens */
  }
}

