
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: 'Nunito', sans-serif;
  background-color: #fff;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin-top: 255px;
}

/* MAIN NAV CONTAINER */
.navigation {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgb(0, 104, 71);
  color: white;
  display: flex;
  flex-direction: column;
  z-index: 2;
  transition: height 0.3s ease;
}

.navParent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 165px;
  width: 100%;
  padding: 0 5%;
  box-sizing: border-box;
}

/* NAV LEFT AND RIGHT SECTIONS */
.topLeft, .topRight {
  flex: 1;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(14px, 1.1vw, 20px);
}

.topLeft p { 
  margin: 0; 
  font-size: larger;
}
.topRight p { 
  margin: 0; 
  text-align: right;
  font-size: larger;
}

/* CENTER LOGO */
.topMid {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.topMid img {
  max-width: 45%;
  height: auto;
  display: block;
}

/* NAV LINKS */
.topLinks {
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgb(0, 85, 58);
}

.topLinks ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.topLinks ul li {
  display: inline-block;
  margin: 0 40px;
}

.topLinks ul li a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  transition: 0.3s;
}

.topLinks ul li a:hover {
  color: gold;
  font-weight: bold;
}


/* DELIVERY CONTAINER, FORM, ENSURING CORRECT BOX SIZING  */
.deliveryContainer{
  width: 95%;
  height: auto;
  margin-top: 50px;

  background: white;
  align-self: center;
  
  display: flex;
  flex-direction: column;
  text-align: center;
}

.deliveryContainer h1{
  padding: 0; 
  margin: 0;
}


.orderForm {
    background-color: rgb(0, 104, 71); 
    padding: 25px 30px;
    border-radius: 12px;
    width: 85%;
    margin: 30px auto;
    font-family: Arial, sans-serif;
}

.orderForm h2 {
    color: white;
    margin-bottom: 20px;
    text-align: center;
}

.orderForm label {
    display: block;
    font-weight: 600;
    color: white; 
    margin-bottom: 6px;
}

.orderForm input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #f9f9f9;
}

.orderForm input:focus {
    border-color: rgb(0, 104, 71);
    box-shadow: 0 0 4px rgba(52,151,251,0.3);
    outline: none;
}

.dateWrap{
  width: 100%;
  overflow: hidden;
}

.orderForm input[type="datetime-local"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-right: 10px; 
  appearance: none;
  -webkit-appearance: none;
}

.orderForm textarea, .formTextarea {
  width: 100%; 
  max-width: 100%; 
  box-sizing: border-box;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: inherit;
  resize: vertical;
}

.formGroup {
    margin-bottom: 18px;
    width: 100%;
}

.orderForm button {
  background-color: rgb(0, 164, 112); 
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 30px;
}


.orderForm button:hover {
  background-color: rgb(0, 129, 88); 
}

.formError {
  width: 100%;
  box-sizing: border-box;

  background: #ffe0e0;
  color: #900;

  padding: 12px 16px;
  margin: 0 0 18px 0;

  border-radius: 8px;
  border: 1px solid #ffb3b3;

  font-weight: 700;
  text-align: center;
}

.hidden {
  display: none;
}

.inputError {
  border: 2px solid #d40000 !important;
  background-color: #fff5f5 !important;
}


/* FOOTER */
.footer{
    display: flex;
    justify-content: space-around;
    background-color: rgb(0, 104, 71);
    color: white;
    padding: 20px 0; /*vertical padding and horizontal padding*/
    width: 100%;
    align-content: center;
    align-items: center;;
    margin-top: 50px;
    font-size: 20px;

}

/* DESKTOP VIEW DEFAULT */

.desktop-only{
  display: block;
}

.mobile-only{
  display: none;
}




/* MOBILE VIEW */

@media (max-width: 785px) {

  /* MOBILE VIEW DEFAULT */
  .desktop-only { 
    display: none;
  }
  .mobile-only {
    display: block;
  }

  html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: 'Nunito', sans-serif;
    background-color: #fff;
    scroll-behavior: smooth;
    overflow-x: hidden;
  }

  body{
    margin-top: 28vh;
  }

  /* NAV CONTAINER */
  .navigation {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
  }

  .navParent {
    height: 20vh;
  }

  .topMid img {
    max-width: 70%;
    height: auto;
  }

  .topLinks {
    height: auto;
    padding: 10px 0;
  }

  .topLinks ul {
    display: flex;
    flex-wrap: wrap;           
    justify-content: center;
    gap: 10vw;                 
  }
  
  .topLinks ul li {
    margin: 0;                 
  }

  .topLinks ul li a {
    font-size: 2.3vw;
    white-space: nowrap;       
  }

  /* DELIVERY CONTENT ON MOBILE */
  .deliveryContainer {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;          
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;    
  }

  /* CENTER THE FORM ITSELF */
  .orderForm {
    width: 100%;
    max-width: 420px;        
    margin: 24px auto;       
    box-sizing: border-box;
  }


  .footer {
    display: flex;
    align-items: center;
    gap: 40px;

    background-color: rgb(0, 104, 71);
    color: white;

    padding: 24px 16px;
    width: 100%;
    box-sizing: border-box;
  }


  .footer-left {
    flex: 1;               
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
  }

  .footer-left p{
    font-size: 3.5vw;
  }

  .footer-left img {
    max-width: 300px;
    width: 100%;
    height: auto;
  }


  .footer-right {
    flex: 1vw;             
    font-size: 3vw;
    line-height: 1.6;
  }

}
