:root {
  --background: #EEEEEE; /*#1F2336*/
  --box-background: #313852;
  --secondary: #888888;
  --primary: blue;
  --tempfont: #808080;
  --darkfont: #000000;
  --seethru: rgba(0, 0, 0, 0.75);
  --whtfont: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;  /* Updated to match imported font */
  height: 100vh;
  background-color: var(--background);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-image: url('background-2.webp');
  background-repeat: repeat;
  background-position: center;
}

header, footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 10px 0;
}

.sub-heading {
  font-size: 0.75em;  /* 50% of parent font size */
  margin-top: 0;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  min-height: 450px;
  border-radius: 20px;
  border: 2px solid #000;
  box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.4);
}

.box {
  flex: 1 1 45%;
  background-color: var(--darkfont);
  color: white;
  border: 2px solid #000000;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Specific styling for the contact form and info box */
/* .contact-box { */
  /* Additional styling for the contact form container (if needed) */
/* } */

/* .info-box { */
  /* Additional styling for the company info container (if needed) */
/* } */ 

/* Fixed-size textarea for the contact form message */
.contact-box textarea {
  width: 300px;
  height: 150px;
  resize: none;
}

/* Styling for the reCAPTCHA widget container */
.captcha {
  margin-top: 5px;
}

/* Styling for the Google Map iframe in the info box */
.info-box .map iframe {
  width: 300px;
  height: 150px;
  border: 0;
}

.info-box p {
  margin-bottom: 20px; /* Adjust value as needed */
}

/* Existing styling remains below */

.results-box-p1 {
  background: url('Single-Pole-Pylon1.png') center center no-repeat;
  background-size: contain;
  background-color: var(--darkfont);
  color: white;
  text-align: left;
  min-height: 450px;
}
.results-box-p2 {
  background: url('Dual-Pole-Pylon1.png') center center no-repeat;
  background-size: contain;
  background-color: var(--darkfont);
  color: white;
  text-align: left;
  min-height: 450px;
}
.results-box-m1 {
  background: url('Single-Pole-Monument1.png') center center no-repeat;
  background-size: contain;
  background-color: var(--darkfont);
  color: white;
  text-align: left;
  min-height: 450px;
}
.results-box-m2 {
  background: url('Dual-Pole-Monument1.png') center center no-repeat;
  background-size: contain;
  background-color: var(--darkfont);
  color: white;
  text-align: left;
  min-height: 450px;
}
.results-box-pnp1 {
  background: url('Post-And-Panel1.png') center center no-repeat;
  background-size: contain;
  background-color: var(--darkfont);
  color: white;
  text-align: left;
  min-height: 450px;
}

button {
  width: 200px;
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}

nav {
  background-color: #444;
  display: flex;
  justify-content: center;
  padding: 10px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

nav li {
  position: relative;
}

nav li a {
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  display: block;
}

nav li a:hover {
  background-color: #555;
}

nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #444;
  border-radius: 4px;
  min-width: 200px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

nav li:hover ul {
  display: block;
}

nav li ul li a {
  padding: 10px;
}

.input__wrapper {
  position: relative;
  padding: 1rem 0 0;
}

.input__field {
  outline: 2px solid var(--secondary);
  font-size: 1rem;
  border-radius: 0.5rem;
  color: var(--whtfont);
  padding: 0.5rem;
  border: none;
  padding-right: 2rem;
  background: transparent;
  transition: all 0.2s;
}

.input__field::placeholder {
  color: var(--tempfont);
}

.input__field:placeholder-shown~.input__label {
  font-size: 1rem;
  cursor: text;
  color: var(--whtfont);
  top: 1.5rem;
}

label,
.input__field:focus~.input__label {
  position: absolute;
  top: 0.375rem;
  padding: 0 0.25rem;
  background-color: var(--seethru);
  display: block;
  font-size: 0.875rem;
  left: 0.5rem;
  color: var(--whtfont);
  transition: 0.3s;
}

.input__field:focus~.input__label {
  color: var(--whtfont);
}

.input__field:focus {
  outline: 2px solid var(--primary);
}

.input__icon {
  position: absolute;
  right: -0.625rem;
  bottom: -0.625rem;
  width: 1.75rem;
  height: 1.75rem;
  transform: translate(-50%, -50%);
  transform-origin: center;
  cursor: pointer;
}

.results {
  box-shadow: 0 0 15px rgb(153, 153, 153);
  border: 2px solid #000;
  width: 285px;
  margin: 20px auto;
  padding: 10px;
  color: white;
  background-color: rgba(0, 0, 0, 0.85);
  border-radius: 10px;
}

@media (max-width: 768px) {
  .box {
    flex: 1 1 100%;
  }

  nav ul {
    flex-direction: column;
  }

  nav li ul {
    position: static;
    box-shadow: none;
  }
}
