html {
  scrollbar-gutter: stable;
  overflow-x: hidden;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #fff;
  color: #333;
  line-height: 1.6;
  padding: 0;
}

/* CONTAINER ELEMENTS */
main {
  margin: auto;
  width: 60%;
  margin-bottom: 100px;
  box-sizing: border-box;
}

footer {
  font-family: Anton;
  background-color: #F2F2F2;
  width: 100%;
  min-height: 50px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  bottom: 0;
}

footer p {
  margin: auto;
  height: auto;
  /* border: 1px solid #ccc; */
}

/* LOGO */
.logo {
  width: 100%;
  max-width: 200px;
  /* height: ; */
  padding: 10px;
  /* justify-content: left; */
  align-items: left;
  /* border: 1px solid #ccc; */
}

/* Branding */
.branding {
  display: flex;
  align-items: center;
  /* border: 1px solid #ccc; */
  /* width: 90%; */
  height: 80px;
  margin: 15px;
  justify-content: space-between;
}

.main-nav {
  /* border: 1px solid #ccc; */
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  /* padding: 0px 20px;   */
  /* margin: 0; */
  margin: auto;
  /* width: ; */
  justify-content: space-evenly;
}

.main-nav li {
  /* padding: 0px 30px;   */
  /* display: flex; */
  /* width: auto; */
  font-family: Raleway, sans-serif;
  font-weight: bold;
}

.contact-info {
  /* display: flex; */
  /* border: 1px solid #ccc; */
  align-items: center;
  /* justify-content: space-between; */
  /* width: 100%; */
  /* padding: 0px 20px; */
}

a {
  color: #333;
  text-decoration: none;
}

.phone_number {
  font-family: Raleway, serif;
  color: blue;
  cursor: pointer;
  /* font-size: 1.2rem; */
}

.Bible_Verse {
  font-size: 1rem;
  font-family: Raleway, serif;
  background-color: #F2F2F2;
  color: #01743D;
  font-weight: bold;
  width: 100%;
  padding: 10px 0px;
  margin: 0px;
  /* position: absolute; */
  /* left: 0; */
  /* text-transform: capitalize; */
}

.Bible_Verse p {
  padding: 0px;
  text-align: center;
  margin: 0;
  word-spacing: 5px;
  ;
}

.Bible_Verse .reference {
  text-align: right;
  padding: 0px 30% 0px 0px;
}

.about {
  font-family: Raleway, serif;
}

.services ul li {
  font-family: Raleway, serif;
  list-style: none;
}

.gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 10px;

}

.gallery img,
.video {
  width: 100%;
  max-width: 350px;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

.gallery::after {
  content: "";
  width: 350px;
}

.space {
  padding-right: 5px;
  /* border: 1px solid #ccc; */

}

/* Responsive styles */
/* MEDIA QUERY FOR SMALL SCREENS */
@media (max-width: 768px) {
  header {
    width: 100%;
    position: static;
    z-index: 2;
    background: #fff;
  }
  .branding {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    margin: 0;
    width: 100%;
    padding: 10px 0;
    box-sizing: border-box;
  }
  .logo {
    max-width: 150px;
    margin-bottom: 10px;
  }
  .contact-info {
    margin-top: 10px;
    border: none;
  }
  nav {
    width: 100%;
  }
  /* Hamburger menu styles */
  .menu-toggle {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 3;
  }
  .menu-toggle input {
    display: none;
  }
  .menu-toggle span {
    display: block;
    width: 30px;
    height: 4px;
    margin: 6px auto;
    background: #333;
    border-radius: 2px;
    transition: 0.4s;
  }
  /* Hide nav by default */
  .main-nav {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    width: 100%;
    margin: 5px 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .main-nav li {
    text-align: center;
    border: none;
    width: 100%;
    box-sizing: border-box;
  }
  .divider {
    display: none;
  }
  /* Show nav when hamburger is checked */
  .menu-toggle input:checked~nav .main-nav {
    display: flex;
  }
  /* Animate hamburger to X when checked */
  .menu-toggle input:checked~.menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }
  .menu-toggle input:checked~.menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle input:checked~.menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  main, .container {
    padding: 1rem;
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  /* Prevent overlap */
  .Bible_Verse {
    margin-top: 0;
  }
  /* Footer stays at bottom */
  footer {
    margin-top: 30px;
    min-height: 50px;
    position: relative;
    width: 100%;
    left: 0;
    bottom: 0;
    box-sizing: border-box;
  }
  .quote-builder {
    padding: 0.5rem;
    font-size: 0.95rem;
  }
  .quote-builder form,
  .quote-builder #quoteSummary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .quote-builder button {
    width: 100%;
  }
  #customer-info {
    padding: 0.5rem;
  }
  #customer-info input, textarea{
    font-size: 0.9rem;
  }
  .remove-entry {
    width: 100%;
    margin-top: 0.5rem;
  }
}

.container {
  max-width: 700px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  /* border: 1px solid black; */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

label {
  font-weight: bold;
  margin-top: 1rem;
  display: block;
}

select,
input[type="text"] {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

button,
input[type="submit"] {
  background-color: #01743D;
  color: white;
  border: none;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 1rem;
}

button:hover,
input[type="submit"]:hover {
  background-color: #219150;
}

#quote-summary {
  margin-top: 2rem;
  background-color: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #01743D;
}

#quote-summary ul {
  list-style: none;
  padding-left: 0;
}

#quote-summary li {
  margin-bottom: 0.5rem;
}

#customer-info {
  margin-top: 2rem;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 8px;
}

#customer-info label {
  font-weight: bold;
  margin-top: 1rem;
  display: block;
}

#customer-info input,textarea {
  width: 90%;
  padding: 0.6rem;
  margin-top: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}
.error-message {
    color: red;
    font-size: 0.85em;
    margin-left: 5px;
    display: block;
}

input.invalid {
    border: 2px solid red;
}
select{
  font-family: Raleway, serif;
}
.custom-input {
  height: 80px;
  text-wrap: normal;
  text-align: left;
  align-items: flex-start;
  display: block;
}

textarea {
  resize: vertical;
}