body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #333;
  scroll-behavior: smooth;
}
a {
  color: black;
  font-weight: bold;
  text-decoration: none;
}
h1,h2,h3,h4 { color: #007acc; }

/* === Header / Nav === */
.header {
  position: sticky;
  top: 0;
  background: #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid #ddd;
  z-index: 1000;
}
.logo {
  width: 180px;
  max-width: 100%;
  height: auto;
  z-index: 1001;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #000000;
  z-index: 1001;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a {
  font-size: 16px;
}
.nav-icons i {
  font-size: 20px;
}

/* === Mobile menu === */
@media (max-width: 768px) {
  .menu-toggle {
	display: block;
  }
  .nav-links {
	position: absolute;
	top: 100px;
	left: 0;
	right: 0;
	background: #f0f0f0;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 1rem 0;
	width: 100%;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	transition: max-height 0.4s ease, opacity 0.4s ease;
  }
  .nav-links.show {
	max-height: 500px;
	opacity: 1;
	pointer-events: auto;
  }
  .nav-links a {
	padding: 10px 0;
	width: 100%;
  }
}

.coming-soon {
  position: relative;
  color: #999;
  cursor: not-allowed;
}

.coming-soon::after {
  content: "Coming Soon";
  position: absolute;
  bottom: -1.8rem;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
  pointer-events: none;
}

.coming-soon:hover::after,
.coming-soon:focus::after,
.coming-soon:active::after {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .coming-soon::after {
    bottom: auto;
    top: 100%;
    margin-top: 6px;
  }
}


.container {
  max-width: 1000px;
  margin: auto;
  padding: 2rem;
}
section {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}
.divider {
  border-top: 1px dashed #bbb;
  margin: 1.5rem 0;
}
ul {
  padding-left: 20px;
}
footer {
  background: #f0f0f0;
  padding: 1.5rem 1rem;
  text-align: center;
  color: #333;
}
footer a {
  text-decoration: underline;
}
#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #007acc;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}
#backToTop:hover {
  background: #005fa3;
}
@media (max-width: 600px) {
  .container { padding: 1rem; }
  .logo { width: 150px; }
}

/* === form === */


.page-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
}

.intro-text {
  font-size: 1rem;
  color: #444;
  margin-bottom: 2rem;
}

.container-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"] {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.terms {
  display: flex;
  align-items: flex-start;
  font-size: 0.9rem;
  gap: 0.5rem;
}

.submit-btn {
  padding: 0.75rem;
  background-color: #007bff;
  color: white;
  border: none;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #0056b3;
}

select,
#referred_by_input {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  background-color: white;
  color: #333;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23666" class="bi bi-caret-down-fill" viewBox="0 0 16 16"><path d="M7.247 11.14 2.451 5.658A.5.5 0 0 1 2.874 5h10.252a.5.5 0 0 1 .423.658L8.753 11.14a.5.5 0 0 1-.753 0z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}

select:invalid {
  color: #888;
}


    /* ===== Hero Section ===== */
.hero {
  top: -22px;
  position: relative;
  width: 100%;
  height: 80vh;
  background-image: url('https://dgmelectrical-inc.com/images/electric1.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fadeIn 2s forwards;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  filter: drop-shadow(0 0 0.85rem #0056b3);
  font-size: 48px;
  font-weight: bold;
  text-align: center;
  opacity: 0;
  animation: showText 1s forwards;
  animation-delay: 2.5s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes showText {
  to {
    opacity: 1;
  }
}

/* General layout */
.two-column {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 40px 0;
}

/* Reset columns inside each section */
.two-column .col {
  flex: 1 1 50%;
  padding: 20px;
  box-sizing: border-box;
}

/* Style images to fit nicely */
.two-column img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Alternate layout for even-numbered sections (2nd, 4th, etc.) */
section:nth-of-type(even) .two-column {
  flex-direction: row-reverse;
}

/* Section heading spacing */
.section-heading h2 {
  margin-top: 0;
  font-size: 1.8em;
}

.section-heading p {
  font-weight: bold;
  color: #555;
  margin-bottom: 1em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .two-column {
    flex-direction: column;
  }

  section:nth-of-type(even) .two-column {
    flex-direction: column;
  }

  .two-column .col {
    flex: 1 1 100%;
    padding: 10px;
  }
}
