* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

:root {
  --primary-color: #222831;
  --secondary-color: #31363f;
  --base-color: #aa3235;
  --bg-color: #eeeeee;
}

html,
body {
  height: 100%;
  width: 100%;
}
.legal-home {
  /* margin-top: 80px; */
  background: linear-gradient(
    180deg,
    rgba(170, 50, 53, 1) 0%,
    rgba(255, 255, 255, 1) 100%
  );
}
.legal-container {
  width: 100%;
  margin: 0px auto;
  height: 100vh;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: space-around;
  color: #eeeeee;
  /* margin-top: 70px; */
}
.legal-container h1 {
  font-size: 36px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #aa3235;
  text-align: center;
  text-shadow: 1px 1px 1px #000;
}
.legal-container p {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  text-align: justify;
  color: #000000;
}
.btn-home {
  display: flex;
  justify-content: center;
}
.btn-home .btn {
  background-color: #aa3235;
  border: none;
  color: #ffffff;
  margin: 20px;
  font-size: 20px;
  border-radius: 100px;
  padding: 10px 20px;
}
.btn-home .btn:hover {
  background-color: #aa3235;
  color: white;
}
.img-box img {
  width: 100%;
  /* border-radius: 50%; */
  /* box-shadow: 1px 60px 142px 94px rgba(185, 11, 11, 0.541); */
}
.legal-one {
  width: 100%;
  margin: 0px auto;
  background: linear-gradient(rgba(17, 17, 17, 0.544), rgba(17, 17, 17, 0.5)),
    url(../Assets/allimages/legal/image.png) no-repeat;
  background-size: cover;
  background-position: center;
  padding: 5% 0%;
  background-attachment: fixed;
  justify-content: center;
  text-align: center;
}
.legal-one h1 {
  color: #aa3235;
  /* text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.822); */
}
.legal-one p {
  padding-top: 3%;
  width: 60%;
  margin: 0px auto;
  color: #000000;
  font-weight: 500;
  font-size: 18px;
}
.services {
  width: 100%;
  padding: 2rem 0;
  background: linear-gradient(rgba(17, 17, 17, 0.562), rgba(17, 17, 17, 0.479)),
    url(../Assets/allimages/legal/attachment.jpg) no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.services h1 {
  /* border-top: 2px solid white; */
  /* border-bottom: 2px solid white; */
  text-align: center;
  font-size: 3rem;
  margin-bottom: 2rem;
  color: #aa3235;
  text-shadow: 0px 5px 5px #000;
  /* text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.822); */
  text-transform: uppercase;
}

.container-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.card {
  width: 30%;
  padding: 2% 4%;
  background-color: rgba(0, 0, 0, 0.514);
  outline: 1px solid #aa3235;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
  transition: opacity 0.3s ease;
  text-align: center;
}

.card h2 {
  color: rgb(255, 255, 255);
  /* font-family: "Anton"; */
  font-size: 28px;

  text-transform: uppercase;
}
.card p {
  color: rgb(255, 255, 255);
  text-align: justify;
  font-family: "montsarrat";
  font-size: 20px;

  /* text-transform: uppercase; */
}

.visible {
  opacity: 1;
}

.hidden {
  opacity: 0;
  pointer-events: none; /* Prevent interaction with hidden card */
}
.direction {
  padding: 50px 0px;
  width: 100%;
  background: radial-gradient(
      35.57% 90.42% at 7.25% 94%,
      #aa32359c 0%,
      rgba(255, 232, 72, 0) 100%
    ),
    radial-gradient(
      43.43% 137.36% at 96.97% 12.14%,
      #fff 0%,
      rgba(216, 255, 242, 0) 100%
    );
  /* margin: 0px auto; */
}
.direction h1 {
  color: #aa3235;
  text-align: center;
}
.direction .new {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  margin: 0px auto;
  /* height: 60vh; */
}

.direction .one {
  width: 50%;
}
.direction .two {
  width: 50%;
}

.process {
  width: 80%;
  margin: 0px auto;
}
.process img {
  margin: 4% 0;
  width: 100%;
}
.content {
  width: 50%;
}
.contact_container {
  width: 100%;
  /* height: 86vh; */
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding-bottom: 25px;
  background: rgb(170, 50, 53);
  background: linear-gradient(
    0deg,
    rgba(170, 50, 53, 1) 0%,
    rgba(255, 255, 255, 1) 100%
  );
  /* border-radius: 100%; */
}

.contact_subchild {
  width: 100%;
  max-width: 600px;
  padding: 10% 0 0;
}

.contact_subchild1 h1 {
  font-size: 8rem;
  line-height: 0.9;
  color: #aa3235;
  text-shadow: 2px 1px 1px #000;
}
.contact_subchild1 h5 {
  font-size: 60px;
}

.contact_subchild1 h2 {
  font-size: 2.5em;
}
.callingno {
  line-height: 2em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact_subchild1 h1 {
  font-size: 8rem;
  line-height: 0.9;
  color: #aa3235;
}

.callingno h3 {
  font-size: 30px;
  /* font-weight: 500; */
  color: #000000;
  text-shadow: 1px 1px 1px #ffffff79;
  font-family: "Cedarville Cursive", "cursive";
  font-weight: 400;
  font-style: normal;
}

.callingno h2 {
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
}

/* form content*/

.form-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  font-family: sans-serif;
  /* height: 100vh; */
  min-width: 500px;
}

#formHalfFields {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  flex-wrap: wrap;
  row-gap: 10px;
}
#formSubmitImg {
  /* width: 100%; */
  height: 70%;
  position: absolute;
  /* top: 0; */
  object-fit: contain;
  display: none;
}

.inner-cont {
  background-color: #ffffff26;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 15px; /* Reduced padding */
  max-width: 485px; /* Reduced max-width */
  width: 100vh;
  /* height: 70vh; */
  position: relative;
}

.heading {
  color: #333;
  font-size: 20px; /* Reduced font size */
  margin-bottom: 10px;
}

.subheading {
  color: #666;
  font-size: 18px; /* Reduced font size */
  margin-bottom: 15px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  /* line-height: 35px; */
}

.form-group {
  margin-bottom: 10px; /* Reduced margin */
  width: 100%;
}
#formHalfFields .form-group {
  width: 49% !important;
}

#formHalfFields .form-group:last-child {
  width: 100% !important;
}

.form-group label {
  display: block;
  font-size: 16px; /* Reduced font size */
  margin-bottom: 4px;
}

.required {
  color: red;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px; /* Reduced padding */
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px; /* Reduced font size */
}

.contact-form textarea {
  resize: vertical;
}

.form-btn {
  text-align: center;
}

.submit-button {
  background-color: #aa3235;
  border: none;
  color: #fff;
  padding: 8px;
  border-radius: 4px;
  font-size: 19px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 40%;
}

.submit-button:hover {
  color: black;
}

label {
  font-weight: 549;
}

#project-duration {
  height: 35px; /* Adjust this value to match the email input field height */
}

/* Mobile devices (max-width: 767px) */
@media (max-width: 767px) {
  .contact_subchild {
    padding: 26% 1% 0;
  }

  .contact_subchild1 h1 {
    font-size: 4rem;
  }

  .contact_subchild1 h2 {
    font-size: 2rem;
  }

  .callingno h2 {
    font-size: 2.5rem;
  }

  .callingno h3 {
    font-size: 24px;
  }

  .inner-cont {
    width: 90vw;
    padding: 10px;
  }

  .heading {
    font-size: 24px;
  }

  .subheading {
    font-size: 16px;
  }

  .form-right {
    min-width: 100%;
    height: auto;
    padding: 20px;
  }

  #formHalfFields .form-group {
    width: 100% !important;
  }

  #formHalfFields .form-group:last-child {
    width: 100% !important;
  }

  .submit-button {
    width: 80%;
    padding: 12px;
    font-size: 16px;
  }
}
/* responsive */
@media (max-width: 767px) {
  .legal-container {
    flex-direction: column;
    height: auto;
    padding: 5% 0%;
  }

  .legal-container h1 {
    font-size: 28px;
    text-align: center;
  }

  .content {
    width: 80%;
  }
  .legal-container p {
    font-size: 16px;
  }

  .btn-home .btn {
    font-size: 20px;
    padding: 8px 16px;
  }

  .card {
    width: 80%;
    margin-bottom: 20px;
  }

  .direction .new {
    flex-direction: column;
  }

  .direction .one,
  .direction .two {
    width: 100%;
  }
}
/* Remove hidden elements from layout */

/* Responsive Design */
@media (max-width: 1024px) {
  .hidden {
    display: none;
  }
  .card {
    width: 45%;
  }

  .services h1 {
    font-size: 2rem;
  }
  .legal-container {
    margin-top: 50px;
  }
}

@media (max-width: 768px) {
  .hidden {
    display: none;
  }
  .card {
    width: 90%;
  }

  .services h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  .card h2 {
    font-size: 20px;
  }

  .card p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hidden {
    display: none;
  }
  .card {
    width: 100%;
    padding: 3% 5%;
  }

  .services h1 {
    font-size: 1.5rem;
  }

  .card h2 {
    font-size: 18px;
  }

  .card p {
    font-size: 12px;
  }
}
