* {
  box-sizing: border-box;
}

body {
  padding: 0;
  margin: 0;
  margin-top: -100px;/*this is the new added line*/
  font-family: "Roboto", Arial, sans-serif;
  overflow-x: hidden;
}

.firm {
  position: relative;
  width: 100%;
  height: 60vh;
  margin-top: 80px;
  min-height: 300px;
  overflow: hidden;
  color: white;
  font-weight: 600;
  z-index: 1;
}

#bg-video {
  position: absolute;
  opacity: 60%;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.videotext {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.careers {
  font-size: 3.5rem;
  text-decoration: underline;
  color: #4d6a6d;
  text-decoration-color: #ffffff;
  text-underline-offset: 1rem;
  text-decoration-thickness: 0.2rem;
}

.paraa {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 4rem 6rem;
  gap: 4rem;
  margin: 0rem auto -5rem;
}

.left_imgg_side {
  flex: 1;
  min-width: 300px;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
}

.care_img {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin-top: 3rem;
  object-fit: cover;
  transition: transform 0.3s ease-in;
}

.care_img:hover {
  transform: scale(1.04);
}

.right_side {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

form {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
}

.join {
  color: #4d6a6d;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.line1 {
  width: 100px;
  height: 2px;
  background-color: #4d6a6d;
  margin-bottom: 2rem;
}

.input_txt {
  color: rgba(27, 23, 23, 0.759);
  margin-bottom: 0rem;
  font-family: "Roboto", Arial, sans-serif;
}

#position,
#name,
#email,
#msg,
#number {
  padding: 0.8rem;
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  color: #333;
  font-size: 1rem;
}

#msg {
  height: 100px;
  resize: vertical;
}

.resume {
  padding: 1rem 0;
  margin-bottom: 1.5rem;
}

button[type="submit"] {
  padding: 0.65rem 0rem;
  background-color: #4d6a6d;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100px;
}

button[type="submit"]:hover {
  background-color: #3a5254;
  transform: translateY(-3px);
}

button[type="submit"]:active {
  transform: translateY(0);
}

.error-message {
  color: red;
  font-size: 0.875em;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

input.error,
select.error {
  border-color: red;
}

.message-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1.5rem;
  border-radius: 8px;
  background-color: #f9f9f9;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  width: 90%;
  max-width: 300px;
  text-align: center;
  
}

.message-box span {
  display: block;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.message-box button {
  padding: 0.5rem 1rem;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .paraa {
    padding: 4rem;
  }

  .careers {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  .paraa {
    padding: 3rem;
    gap: 3rem;
  }

  .left_imgg_side,
  .right_side {
    flex: 100%;
    max-width: 100%;
  }

  .care_img {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .careers {
    font-size: 2.5rem;
  }

  .firm {
    height: 40vh;
  }

  .paraa {
    padding: 2rem;
    gap: 2.5rem;
    margin-top: -1rem;
  }

  .join {
    font-size: 1.8rem;
  }

  .left_imgg_side {
    font-size: 1rem;
  }

  button[type="submit"] {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .careers {
    font-size: 2rem;
    text-underline-offset: 0.8rem;
  }

  .paraa {
    padding: 1.5rem;
    gap: 2rem;
  }

  .join {
    font-size: 1.5rem;
  }

  .left_imgg_side {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

@media (max-width: 400px) {
  .careers {
    font-size: 1.7rem;
  }

  .paraa {
    padding: 1rem;
    gap: 1.5rem;
  }

  .join {
    font-size: 1.3rem;
  }

  .left_imgg_side {
    font-size: 0.9rem;
  }

  .care_img {
    margin-top: 1.5rem;
  }

  #position,
  #name,
  #email,
  #msg,
  #number {
    padding: 0.6rem;
    font-size: 0.9rem;
  }

  button[type="submit"] {
    padding: 0.8rem;
  }
}
