/* ------------- 01:Hero section Start--------------- */
/* .main_wrapper{
    padding-top: 90px;
} */
section {
  overflow: hidden;
}
.hero-section {
  width: 100%;
  height: calc(100vh - 90px);
  position: relative;
  background: url(../images/contact-us/hero.jpg) no-repeat center center;
  background-size: cover;
}

.content-section {
  color: #fff;
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: start;
  align-items: center;
}
.hero-content {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: start;
  align-items: center;
}

.hero-content h1 {
  font-family: "Gotham-Medium";
  font-weight: normal !important;
  color: white;
  font-size: 48px;
  line-height: 1.13;
  margin-bottom: 1rem;
  overflow: hidden;
}

/* ------ contact informaton----------- */
.contact-section {
  width: 100%;
  height: 100%;
  background: #d0dff1;
}
.content-card-wrapper {
  width: 100%;
  height: 100%;
  padding: 10rem 0;
  display: flex;
  justify-self: center;
  align-items: center;
}
.contact-card {
  display: flex;
  position: relative;
  /* overflow: hidden; */
  width: 100%;
  height: 100%;
  justify-content: end;
}

.contact-info {
  /* flex: 1; */
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #707070;
  overflow: hidden;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  z-index: 1;
  width: 42%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.contact-info h3 {
  color: #3175c2;
  margin-bottom: 0.8rem;
  font-size: 24px;
}

.contact-info p {
  color: #0c082c;
  line-height: 1.6;
  font-size: 16px;
  line-height: 30px;
}

.font-medium,
.contact-info h3 {
  font-family: "Gotham-Book";
  font-weight: normal;
}

.font-bold {
  font-family: "Gotham-Book";
  font-weight: normal;
}

.contact-info a {
  color: #000;
  /* font-weight: bold; */
  text-decoration: none;
  transition: all 0.3s ease; /* smooth effect */
}

.contact-info a:hover {
  text-decoration: underline;
  color: #c72d2c; /* optional: change color smoothly */
}
.contact-map {
  border-radius: 1rem;
  border: 1px solid #6e6d72;
  overflow: hidden;
  width: 68%;
  height: 600px;
}

/* ----------- branch information -------------- */
.branch-information-section {
  width: 100%;
  height: 100%;
}
.branch-address {
  text-align: center;
  width: 100%;
  height: 100%;
  padding: 10rem 0;
  display: flex;
  flex-direction: column;
}

.branch-address h2 {
  font-size: 39px;
  margin-bottom: 3rem;
  font-family: "Gotham-Medium";
  font-weight: normal;
}

.branch-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 2rem;
  border-top: 1px solid transparent;
  flex-wrap: wrap;
}
.branch-wrapper.mob {
  display: none;
}

.branch-card {
  flex: 1;
  /* padding: 1.5rem; */
  padding-left: 0;
  border-right: 1px solid #707070;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
}

.branch-card:last-child {
  border-right: none;
}
/* 1st branch-card */
.branch-card:nth-child(1) {
  padding: 1.5rem 4rem 0 0;
}

/* 2nd branch-card */
.branch-card:nth-child(2) {
  padding: 1.5rem 4rem 0 4rem;
}

/* 3rd branch-card */
.branch-card:nth-child(3) {
  padding: 1.5rem 0 0 4rem;
}

.branch-card-head {
  display: flex;
  flex-direction: column;
  align-items: start;
}
.branch-card-foot {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.6rem;
  padding-left: 1rem;
}
.branch-title {
  width: 210px;
  text-align: left;
  display: inline-block;
  background: #e7282d;
  color: #fff;
  font-size: 24px;
  font-family: "Gotham-Book";
  font-weight: normal;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
}

.branch-card p {
  margin-top: 1.6rem;
  margin-left: 1rem;
  text-align: left;
  line-height: 1.5;
  color: #0c082c;
  font-size: 16px;
  line-height: 30px;
  font-family: "Gotham-Book";
  font-weight: normal;
}

.branch-card h4 {
  /* margin-top: 2.6rem; */
  color: black;
  font-size: 24px;
  font-family: "Gotham-Book";
  font-weight: normal;
}

.branch-card a {
  font-size: 16px;
  font-family: "Gotham-Book";
  font-weight: normal;
  color: black;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: left;
}

.branch-card a:hover {
  text-decoration: underline;
  color: #e62b2b;
}

/* section 04: Contact US */
.contact-us-section {
  width: 100%;
  height: 100%;
  background: #1a3b71;
}

.form-title {
  font-family: "Gotham-Medium";
  font-weight: normal;
  font-size: 39px;
  color: white;
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
  padding: 0 8rem;
}
#contactForm input:focus-visible,
#contactForm textarea:focus-visible {
  outline: none !important;
}
textarea {
  width: 100%;
  height: 120px;
  max-height: 120px;
  resize: none;
  overflow-x: hidden;
}
input,
textarea {
  font-size: 16px;
}

#contactForm input,
#contactForm textarea {
  border-radius: 8px;
  /* outline: none; */
}

#contactForm input:focus,
#contactForm textarea:focus {
  outline: none !important; /* no outline */
}

#contactForm input::placeholder,
#contactForm textarea::placeholder {
  color: #9e9e9e;
  /* opacity: 1;   */
}

#contactForm input,
#contactForm textarea {
  padding: 0.8rem;
  border: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}
#contactForm button {
  padding: 0.5rem 1.8rem;
  border: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
#contactForm button .icon {
  display: flex;
  width: 1.6rem;
  /* text-align: center; */
  align-items: center;
  justify-content: center;
}
.email-phone {
  display: flex;
  gap: 2rem;
}
.email-phone input {
  flex: 1;
}
/* #letterLength {
  width: 100%;
  font-family: "AvenirLTStd-Book";
  font-size: 14px;
  color: white;
} */
button {
  padding: 0.8rem 1.6rem;
  background: #e7282d;
  border: 1px solid transparent;
  border-radius: 34px;
  color: white;
  cursor: pointer;
  width: fit-content;
  font-size: 1rem;
  transition: all 0.5s ease;
}
button:focus,
button:active {
  outline: none;
  box-shadow: none;
}
button:active {
  background-color: #977c54;
}
button:hover {
  background: white;
  color: black;
  border-color: black;
}
button:hover span path {
  stroke: black;
}

.contact-form-wrapper {
  padding: 10rem 0rem;
}
.contact-form-wrapper > div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ------------------- Custom Popup -------------------------- */
.custom-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 1.8rem 4rem;
  border-radius: 5px;
  text-align: center;
  font-size: 24px;
  font-family: "AvenirLTStd-Book";
  z-index: 1000;
  display: none;
}

/* Success popup (green background) */
.custom-popup.success {
  background-color: #28a745;
  /* Green for success */
}

/* Error popup (red background) */
.custom-popup.error {
  background-color: #dc3545;
  /* Red for error */
}

.custom-popup.warning {
  background-color: #ffc107;
  /* Red for error */
}

/* --------------------- Mobile Responsive -------------------*/

@media (max-width: 1740px) {
  .content-card-wrapper {
    /* padding: 7rem 0 ; */
  }
}
@media (max-width: 1640px) {
  .branch-address,
  .contact-form-wrapper {
    padding: 6rem 0;
  }
}

@media (max-width: 1440px) {
  .contact-info h3 {
    font-size: 22px;
  }
  /* .contact-info p,
  .branch-card p,
  .branch-card a {
    font-size: 20px;
  } */

  .branch-wrapper {
    gap: 1rem;
  }
  .branch-card:nth-child(1) {
    padding: 1.5rem 2rem 0 0;
  }
  .branch-card:nth-child(3) {
    padding: 1.5rem 0 0 2rem;
  }
  .contact-form-wrapper {
    padding: 10rem 0;
  }
  .contact-info {
    padding: 1.6rem;
  }
  .contact-info {
    gap: 1rem;
  }
  .content-card-wrapper {
    padding: 11rem 0;
  }
  /* .branch-address {
    padding: 10rem 0;
  } */
  .hero-content h1 {
    font-size: 42px;
    margin-bottom: 1.6rem;
  }

  .branch-address h2,
  .form-title {
    /* font-size: 42px;
    margin-bottom: 1.6rem; */
  }
  .contact-map {
    height: 540px;
  }
}
/* Laptop (max-width: 1280px) */
@media (max-width: 1280px) {
  .contact-info h3 {
    font-size: 20px;
  }
  /* .contact-info p,
  .branch-card p,
  .branch-card a {
    font-size: 18px;
  } */
  .branch-card a {
    /* font-size: 24px; */
  }

  .hero-content h1 {
    font-size: 39px;
    margin-bottom: 1.2rem;
  }

  .branch-address h2,
  .form-title {
    font-size: 36px;
    margin-bottom: 1.2rem;
  }
  form {
    padding: 0;
  }
}

@media (max-width: 1200px) {
  .contact-map {
    width: 70%;
  }
  .contact-info {
    width: 40%;
  }
  .contact-section {
    /* height: 96vh; */
  }
}

@media (max-width: 1240px) {
  .contact-section {
    /* height: 90vh; */
  }
  .content-card-wrapper {
    padding: 9rem 0;
  }
}
/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .branch-wrapper {
    /* flex-direction: column; */
    gap: 4rem;
    margin-top: 2rem;
  }

  .branch-card:last-child {
    border-bottom: none;
  }

  /* .contact-info h3 {
    font-size: 18px;
  }
  .contact-info p,
  .branch-card p,
  .branch-card a {
    font-size: 16px;
  } */
  .branch-card a {
    /* font-size: 22px; */
  }
  /* .contact-section {
    height: 100%;
  } */
  .contact-card {
    flex-direction: column;
    overflow: visible;
    gap: 4rem;
  }
  .contact-info {
    position: static;
    width: 100%;
    overflow: visible;
    transform: none;
    background: #d0dff1;
    border: none;
    padding: 0;
  }

  .content-card-wrapper {
    padding: 6rem 0;
  }
  .contact-map {
    width: 100%;
    height: 500px;
  }

  .contact-info {
    gap: 2rem;
  }
  .branch-card {
    border: none !important;
    padding: 0 !important;
  }
  .branch-title,
  .branch-card h4 {
    font-size: 24px;
  }
}

@media (max-width: 978px) {
}

@media (max-width: 890px) {
  .branch-wrapper.desktop {
    display: none;
  }
  .branch-wrapper.mob {
    display: flex;
    flex-direction: column;
    gap: 4rem;
  }
  .branch-wrapper.mob .branch-card {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    background: url(../images/contact-us/hero-mob.jpg) no-repeat center center;
    background-size: cover;
  }
  .contact-map {
    width: 100%;
    height: 450px;
  }
  .content-card-wrapper,
  .contact-form-wrapper {
    padding: 4rem 0;
  }
  .hero-content h1 {
    font-size: 35px;
    margin-bottom: 1rem;
  }

  .branch-address h2,
  .form-title {
    font-size: 32px;
    margin-bottom: 1rem;
  }

  .branch-title,
  .branch-card h4 {
    font-size: 20px;
  }
  .branch-address {
    padding: 4rem 0;
  }
  .email-phone {
    flex-direction: column;
  }
  .branch-card p {
    margin-left: 0;
  }
  .branch-card-foot {
    padding-left: 0;
  }
  .hero-content {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 600px) {
  .contact-map {
    width: 100%;
    height: 360px;
  }
}

@media (max-width: 480px) {
  .contact-map {
    width: 100%;
    height: 250px;
  }
  .contact-card {
    gap: 2rem;
  }
  .contact-info p,
  .branch-card p,
  .branch-card a {
    /* font-size: 16px; */
    line-height: 1.4;
  }
  .hero-content h1,
  .branch-address h2 {
    font-size: 26px;
    margin-bottom: 0.8rem;
  }
  .branch-wrapper.mob .branch-card {
    gap: 1rem;
  }
  .branch-wrapper.mob {
    gap: 3rem;
  }
  .branch-title {
    width: 150px;
  }

  .hero-content h1 {
    font-size: 29px;
    margin-bottom: 0.8rem;
  }

  .branch-address h2,
  .form-title {
    font-size: 26px;
    margin-bottom: 0.8rem;
  }
      .contact-info h3 {
        font-size: 18px;
    }
}

@media (max-width: 375px) {
  .contact-map {
    width: 100%;
    height: 200px;
  }
  .contact-info p,
  .branch-card p,
  .branch-card a {
    font-size: 14px;
    line-height: 1.2;
  }
  .branch-address h2 {
    font-size: 22px;
    margin-bottom: 0.6rem;
  }
  .branch-title,
  .branch-card h4 {
    font-size: 16px;
  }
  input,
  textarea {
    font-size: 16px;
  }

  .hero-content h1 {
    font-size: 27px;
  }

  .branch-address h2,
  .form-title {
    font-size: 24px;
  }

        .contact-info h3 {
        font-size: 16px;
    }
}
