/* .contact-section {
    font-family: montserrat, sans-serif;
    margin: auto 2vw;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center; 
    align-items: center;
    height: 100vh;
    font-variant: small-caps;
    color: #333;
    box-sizing: border-box;
  } */

  h1 {
    font-size: 2.5em;
    font-weight: 500;
    text-align: center;
    width: 100%;
    margin: .25em 0 .5em 0;
  }

  h3 {
    font-weight: 500;
    font-size: 1.25em;
    text-align: center;
    width: 100%;
    margin: 0 0 1em 0;
  }

  
  .required-text {
    color: red;
    text-align: right;
    font-size: .9em;
    margin-bottom: 0;
  }

  #form-message {
    font-family:  montserrat, sans-serif;
    color: #666;
    font-size: 2em;
  }
  
  .container {
    background-color: white;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    display: flex;
    flex-wrap: wrap;
    column-gap: 3em;
  }

  .side {
    flex: 1 1 calc(50% - 3em);
  }

  .form-group {
    margin: 1em 0;
  }

  .form-group > label:first-of-type {
    font-weight: 500;
    margin-bottom: 1em;
  }
  

  #realEstate {
    font-family: montserrat, sans-serif;
    font-variant: small-caps;
  }
  
 .comments {
  flex: 1;
  margin-top: 0;
  min-height: 8em;
  margin-bottom: 2em;
 }

 #comments {
  height: 100%;
 }

  label {
    display: block;
    margin-bottom: 5px;
  }
  
  input[type="text"],
  input[type="email"],
  textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
  }
  
  #submitButton, #contactButton {
    background: linear-gradient(to bottom, #d1d1d1, #f0f0f0);
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
    font-variant: small-caps;
    font-family: montserrat, sans-serif;
    font-weight: 500;
    font-size: 1em;
    padding: .6em 1.5em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    align-self: flex-end;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-top: auto;
    color: black;
    text-align: center;
  }

  #contactButton {
    margin-bottom: 1em;
  }
  
  button:hover {
    background: linear-gradient(to bottom, #c0c0c0, #e0e0e0);
    color: #003f75;
    transform: scale(1.05);
  }

  button:active {
    background: linear-gradient(to bottom, #f0f0f0, #d1d1d1);
    box-shadow: none;
    color: #333;
  }

  #sending-message, #success-message {
    margin: auto; /* Automatically adjust margins to center the item */
    align-self: center; /* Center along the cross-axis of the flex container */
    background-color: white;
    padding: .5em;
    font-variant: small-caps;
    border-radius: 5px;
    font-weight: 500;
    font-size: 1.4em;
    text-align: center;
    line-height: 2.5;
  }
  
  #form-message {
      margin-top: 10px;
      font-weight: bold;
      background-color: white;
  }
  .error {
      color: red;
  }
  .success {
      color: green;
  }

.required label::after {
    content: "*";
    color: red;
    margin-left: 5px;
}
.checkbox-group {
    margin-bottom: 10px;
}

.contact-info, .areas-served {
  display: flex;
  min-width: 0;
  gap: 1rem;
  width: 1000px;
  background-color: white;
  margin: 10px 0;
  color: #333;
  padding: 1.4em 1.4em 0 1.4em;
  font-variant: small-caps;
  font-family: 'Montserrat', sans-serif;
  justify-content: center;
}

.contact-info {
  border: .5px solid #999;
}

.contact-info span {
  font-size: .8em;
}

.contact-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-info-col:nth-child(2) {
  justify-content: space-evenly;
}

.contact-info-col:nth-child(3) {
  justify-content: flex-end;
  align-items: flex-end;
  margin-bottom: .8rem;
}

@media (max-width: 1000px) {
  .container, .contact-info, .areas-served {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .contact-info {
    flex-wrap: wrap;
  }
  .contact-info-col {
    flex: 1 1 48%;
  }
  .contact-info-col:nth-child(3) {
    flex: 1 1 100%
  }
}

@media (max-width: 600px) {
  .side, .comments, button {
    flex: 1 1 100%; 
  }

  #submitButton {
    margin-top: 1.5em;
  }

  .required-text {
    font-size: .75em;
  }
}