* {
  font-family: "Lexend", sans-serif;
}

html,
body {
  overflow-x: hidden;
}

.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-section {
  text-align: center;
  margin-bottom: 20px;
  padding: 0 20px 20px;
  max-width: 850px;
  width: 100%;
}

.get__in__touch__text {
  font-size: 48px;
  font-weight: 700;
  line-height: 60px;
  color: #1e293b;
}

.contact__section__details {
  font-size: 16px;
  font-weight: 400;
  line-height: 29px;
  color: #424f57;
}

.box__design {
  left: 85%;
  top: 30%;
}

.career-us {
  display: flex;
  justify-content: center;
  padding: 20px 20px 80px;
}

.career-us__card {
  display: flex;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 1200px;
  width: 100%;
  min-height: 600px;
  padding: 10px;
}

.card__left {
  background: linear-gradient(to top right, #ff8d4a, #d84f00);
  border-radius: 10px;
  color: #ffffff;
  padding: 30px;
  flex: 1;
  max-width: 45%;
}

.card__left h2 {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: #ffffff;
}

.card__left p {
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: #ffffff;
}

.contact__details {
  list-style: none;
  padding: 0;
  margin: 60px 0;
}

.contact__details li {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
}

.social__icons {
  display: flex;
  gap: 10px;
}

.social__icons .fab-icon,
.insta-icon,
.twitter-icon,
.linkedin-icon a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: #f36b1c;
  border-radius: 50%;
  text-decoration: none;
}

.right__section {
  flex: 1;
  padding: 0 20px 80px;
  position: relative;
  min-height: 600px;
}

.form-toggle-container {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  border-radius: 8px;
  background: #f8fafc;
  padding: 4px;
}

.toggle-btn {
  flex: 1;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.toggle-btn:hover {
  color: #1e293b;
}

.toggle-btn.active {
  background: #1e293b;
  color: #ffffff;
  transform: scale(1.02);
}

.career-form {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.career-form.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group {
  margin-bottom: 20px;
}

.input__label {
  font-size: 18px;
  font-weight: 400;
  line-height: 25px;
  color: #1e293b;
}

.optional-text {
  font-size: 14px;
  font-weight: 400;
  color: #64748b;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea,
.form-group input[type="file"] {
  width: 100%;
  border-radius: 8px;
  background: #f8fafc;
  border: 2px solid transparent;
  font-size: 14px;
  line-height: 20px;
  padding: 10px 12px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-group input[type="file"]:focus {
  outline: none;
  border: 2px solid #1e293b;
  background: #ffffff;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group select {
  cursor: pointer;
}

.error-message {
  display: none; /* using native browser validation; keep spans but hide */
}

.form__btn {
  position: absolute;
  bottom: 20px;
  width: calc(100% - 40px);
  left: 20px;
  right: 20px;
}

.submit__btn {
  background: #1e293b;
  color: #ffffff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  width: 100%;
}

.submit__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 960px) {
  .career-us__card {
    flex-direction: column;
    background: none;
    box-shadow: none;
    padding: 0;
  }

  .card__left {
    max-width: 100% !important;
    padding: 20px;
  }

  .right__section {
    padding: 20px 0 100px;
    min-height: auto;
  }

  .box__design {
    display: none;
  }

  .get__in__touch__text {
    font-size: 24px;
    font-weight: 600;
    line-height: 33px;
  }

  .contact__section__details {
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: #64748b;
  }

  .form__btn {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 15px 20px;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
  }
}

