
/* === Base Styles === */
body {
    background-color: #d9e4fa;
  margin: 0;
  padding: 0;
}

.gridcontainer {
  display: grid;
  grid-template-areas:
    "header"
    "main"
    "footer";
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

/* === Typography === */
h1 {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  font-size: 50px;
  text-align: center;
}
p {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 20px;
  margin: 0 auto;
  width: 50%;
}


/* === Header === */
header {
  grid-area: header;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  grid-template-areas: "left right";
  padding: 15px 30px;
  font-family: "Playfair Display", serif;
  gap: 20px;
  background-color: #bebffa;
}

.header-left {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 20px;
   grid-area: left;

}

.header-left img {
  height: 80px;
  width: auto;
}

.header-left h2 {
  color: black;
  font-family: "Playfair Display", serif;
  font-size: 40px;
  margin: 0;
  font-weight: 600;
}

.header-right {
  grid-column: 2;
  justify-self: end;
  grid-area: right;

}

.header-right ul {
   display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;

}

.header-right a {
 
  color: black;
  text-decoration: none;
 font-family: "Playfair Display", serif;
  font-size: 35px;
  text-align: center;
}

.header-right a:hover,
a:hover,
a:active {
  color: #027373;
}

a:link {
  color: black;
}

/* === Banner Image === */
.BannerImgContainer {
  max-width: 90vw;
  margin-inline: auto;      /* keeps it centered left/right */
  margin-block: 30px;  
  box-sizing: border-box;
}

.BannerImgContainer img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* === Large Text Box === */
.largetextbox1 {
  display: grid;
  place-items: center;
   background-color: #e5dcfa;
  padding: 30px;
  max-width: 90vw;
    margin-inline: auto;      /* keeps it centered left/right */
  margin-block: 60px;  
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

}

.largetextbox1 p {
  width: 70%;
  text-align: center;
  font-size: 36px;
}

/* === Image Row === */
.imgrow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 90vw;
  margin: auto;
  justify-content: center;
}

.column {
  text-align: center;
}

.imgrow img {
  width: 350px;
  height: 350px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* the two images */
.TwoImg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 90vw;
  margin: 40px auto;
  gap: 40px;
  box-sizing: border-box;
  align-items: center;
  justify-items: center;
}

.TwoImg img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}




/* === Form Section === */
.form-container form {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px 40px;
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
  align-items: center;
}

.form-row {
  display: contents; /* allows label/input to flow into grid columns */
}

.form-row.full-width {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  align-items: center;
}

.form-container label {
  grid-column: 1;
  text-align: right;
  font-size: 1.2em;
}



.form-container input,
.form-container textarea {
  grid-column: 2;
  width: 100%;
  padding: 10px;
  font-size: 1em;
  box-sizing: border-box;
}


.form-container .error {
  grid-column: span 2;
  color: red;
  font-size: 0.9em;
  margin-bottom: -10px;
  text-align: center;

}

.formbuttons {
  grid-column: span 2;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.formbuttons input[type="submit"], .formbuttons input[name="reset"]  {
  flex: 1;
  max-width: 300px;
  padding: 14px;
  font-size: 1.1em;
  background-color: #bebffa;
  color: black;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}


/* footer */
footer {
  background-color: #bebffa;
}

.message {
  text-align: center;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 10px;
}



@media (max-width: 800px) {
  header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "right";
    text-align: center;
  }

  .header-left {
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }

  .header-right {
    justify-self: center;
    width: 100%;
  }

  .header-right ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
  }

  .imgrow {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .largetextbox1 p {
    font-size: 24px;
    width: 90%;
  }



  .form-container {
    font-size: 20px;
    padding: 20px;
  }

  footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-copy {
    justify-self: center;
  }
}

/* === Tablet (801px–999px) === */
@media (min-width: 801px) and (max-width: 999px) {
  .imgrow {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .largetextbox1 p {
    font-size: 28px;
    width: 80%;
  }

   .menu-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }



  .form-container {
    font-size: 24px;
    padding: 30px;
  }

  footer {
    grid-template-columns: auto auto;
    text-align: left;
  }

  .footer-copy {
    justify-self: start;
  }
}

/* === Laptop (1000px–1599px) === */
@media (min-width: 1000px) and (max-width: 1599px) {
  .imgrow {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  .largetextbox1 p {
    font-size: 32px;
    width: 70%;
  }



  .form-container {
    font-size: 28px;
    padding: 40px;
  }

  footer {
    grid-template-columns: auto auto;
    text-align: left;
  }

  .footer-copy {
    justify-self: start;
  }
}

/* === Desktop (1600px+) === */
@media (min-width: 1600px) {
  .imgrow {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }

  .largetextbox1 p {
    font-size: 36px;
    width: 60%;
  }

  .TwoImg {
  gap: 60px;
  padding: 60px 40px;
}

.TwoImg img {
  max-width: 700px;
}


  .form-container {
    font-size: 30px;
    padding: 50px;
  }

  footer {
    grid-template-columns: auto auto;
    text-align: left;
  }

  .footer-copy {
    justify-self: start;
  }
}
