/* Root Variables for Consistency */
:root {
  --primary-green: #014235;
  --secondary-green: #1b5e20;
  --bg-light: #EAEEFB;
  --accent-green: #2a7a3d;
  --font-serif: "Antic Didone", serif;
  --font-sans: "Albert Sans", sans-serif;
}

/* HEADER AND INTRO */
#about-us-intro-container {
  padding: 5%;
}

#about-us-header-image {
  display: block;
  height: 600px;
  width: 100%;
  object-fit: cover;
  box-shadow: 0 1px 8px #0b3a2d;
  background-color: rgba(0, 0, 0, 0.5);
}

#about-us-page-header-image-container::before {
  content: "";
  position: absolute;
  height: 600px;
  width: 100%;
  /* background-color: rgba(0, 0, 0, 0.271); */
  z-index: 20;
}

#about-us-page-header{
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.5rem;
  font-size: 2.3rem;
  color: var(--primary-green);
  margin-bottom: 40px;
  text-align: center;
}

#meet-the-team-intro h2 {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 25;
  width: 100%;
  top: 25%;
  color: white;
  font-family: var(--font-serif);
  font-size: 6rem;
  font-weight: 500;
  text-shadow: 3px 5px 3px black;
  gap: 40px;
  margin-top: 100px;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  padding-top: 20px;
  padding-bottom: 20px;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-us-text {
  font-size: 1.3rem;
  font-family: var(--font-sans);
  color: var(--secondary-green);
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: left;
}

/* MEET THE TEAM */
#meet-us-container {
  color: var(--primary-green);
  padding: 0 5% 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#meet-us-container-header {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.5rem;
  font-size: 2.3rem;
  color: var(--primary-green);
  margin-bottom: 40px;
  text-align: center;
}

.team-section {
  display: grid;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.team-member {
  /* background: linear-gradient(to bottom, #ffffff, hsla(171, 29%, 69%, 0.349)); */
  /* border-radius: 10px; */
  /* box-shadow: 0 1px 8px #0b3a2d; */
  overflow: hidden;
  margin: 0.5rem auto;
  padding: 0.5rem;
  text-align: center;
  border-bottom: 1px solid var(--secondary-green);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  /* transform: translateY(-10px); */
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.team-member img {
  width: 250px;
  height: 250px;
  border: 10px solid var(--bg-light);
  border-radius: 50%;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.team-member-name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--primary-green);
  margin: 10px 0;
}

.agent-title {
  font-size: 1.1rem;
  font-family: var(--font-sans);
  font-style: italic;
  margin-bottom: 15px;
  color: var(--secondary-green);
}

/* AGENT BIO */
.bio-full {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.7s ease-in-out, opacity 0.5s ease-in-out;
}

.bio-full.show {
  max-height: 1200px;
  opacity: 1;
}

.bio-content-text {
  font-size: 1.3rem;
  font-family: var(--font-sans);
  color: var(--secondary-green);
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: left;
}

.bio-overlay button {
  background: none;
  color: var(--primary-green);
  border: none;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.bio-overlay button:hover {
  color: var(--accent-green);
}

#april-bio-button-close,
#terry-bio-button-close {
  display: none;
  background: none;
  color: var(--primary-green);
  border: none;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

/* CONTACT FORM */
#about-contact-form-container {
  border-radius: 8px;
  justify-content: center;
  display: flex;
}

#about-contact_us_form {
  align-items: center;
  padding-bottom: 2rem;
}

.about-contact-us-form{
  margin: 0 5% 5% 5%;
  padding:none;
}

#about-contact-form-header {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--primary-green);
  text-align: center;
  margin-bottom: 20px;
}

#about-contact-group {
  padding-bottom: 20px;
}

.contact-us-form{
  margin: 0 5% 5%;
  width: 100%;
  max-width: 1200px;
}

.contact_us_form_group label {
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--primary-green);
}

.contact_us_form_group input,
.contact_us_form_group textarea {
  width: -moz-available;
  width: -webkit-fill-available;
  width: fill-available;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: var(--font-sans);
  margin-top: 8px;
  font-size: 16px;
}

.contact_us_form_group input:focus{
  border-color: #295943;
  outline: none;
}

.contact_us_form_group textarea:focus{
  border-color: #295943;
  outline: none;
}

.form-error {
  color: #b23c3c;
  font-size: 0.9rem;
  margin-top: 5px;
}

#contact_form_submit_button {
  background-color: var(--accent-green);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#contact_form_submit_button:hover {
  background-color: var(--primary-green);
}

/* Accessibility Focus State */
#contact_form_submit_button:focus,
.bio-overlay button:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

/* MOBILE STYLES */
@media (max-width: 750px) {
  .team-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .about-contact-form-container{
    padding: 0 5% 5%;
  }
}

@media (max-width: 475px) {
  #contact_form_submit_button {
    width: 100%;
  }
  #about-contact-form-grouping{
    padding-left: 2rem;
    padding-right: 2rem;
  }
  #about-contact_us_form{
    padding-left: 0;
    padding-right: 0;
  }
}


/* BANNER RESPONSIVENESS */
@media (max-width: 1200px) {
  #about-us-header-image {
    height: 600px;
  }

  #about-us-page-header-image-container::before {
    height: 600px;
  }

  #meet-the-team-intro h2 {
    font-size: 5rem;
  }
}

@media (max-width: 1000px) {
  #about-contact_us_form{
    padding-top: 0;
  }
}

@media (max-width: 992px) {
  #about-us-header-image {
    height: 500px;
  }

  #about-us-page-header-image-container::before {
    height: 500px;
  }

  #meet-the-team-intro h2 {
    font-size: 4rem;
    margin-top: 50px;
  }
}

@media (max-width: 768px) {
  #about-us-header-image {
    height: 500px;
  }

  #about-us-page-header-image-container::before {
    height: 400px;
  }

  #meet-the-team-intro h2 {
    font-size: 3rem;
    margin-top: 40px;
  }
}

@media (max-width: 576px) {
  #about-us-header-image {
    height: 500px;
  }

  #about-us-page-header-image-container::before {
    height: 300px;
  }

  #meet-the-team-intro h2 {
    font-size: 3.2rem;
    margin-top: 40px;
  }
    #property_showcase_header{
      padding-bottom:0;
    }
    .agent_image img{
    border: none;
    border-radius: 2%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    }
  }


@media (max-width: 400px) {
  #about-us-header-image {
    height: 500px;
  }

  #about-us-page-header-image-container::before {
    height: 250px;
  }

  #meet-the-team-intro h2 {
    font-size: 2.4rem;
    margin-top: 30px;
  }
}

@media (max-width:420px) {
  .contact_us_form_group textarea {
  width: 90%;
  }
}