/* =============================================
   Вакансии (jobs) — page-specific styles
   ============================================= */

/* --- Hero section --- */
.jobs-hero {
  background-color: var(--color-gray-light);
  padding-top: 40px;
  padding-bottom: 40px;
}

.jobs-hero__title {
  font-size: 25px;
  line-height: 1.5;
  margin-bottom: 30px;
}

.jobs-hero__title span {
  color: var(--color-orange-light);
}

.jobs-hero__text {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 30px;
}

.jobs-hero__text--lead {
  font-weight: 700;
}

.jobs-hero__offers-title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.jobs-hero__offers-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.jobs-hero__offers-list li {
  display: flex;
  align-items: flex-start;
  column-gap: 8px;
}

.jobs-hero__offers-list li + li {
  margin-top: 6px;
}

.jobs-hero__offers-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 5px;
}

.jobs-hero__offers-list p {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.5;
}

/* Info cards (email + phone) */
.jobs-info-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.jobs-info-card {
  border: 1px solid #EBECF0;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.jobs-info-card__icon {
  width: 28px;
  height: 28px;
}

.jobs-info-card__text {
  font-size: 14px;
  line-height: 1.5;
  color: #33302E;
}

.jobs-info-card__value {
  font-size: 30px;
  line-height: 1.5;
  color: var(--color-orange-light);
}

.jobs-info-card__note {
  font-size: 14px;
  line-height: 1.5;
  color: #33302E;
}

/* --- Vacancies section --- */
.jobs-vacancies {
  padding-top: 40px;
  padding-bottom: 40px;
}

.jobs-vacancies__header {
  text-align: center;
  margin-bottom: 40px;
}

.jobs-vacancies__title {
  font-size: 25px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.jobs-vacancies__title span {
  color: var(--color-orange-light);
}

.jobs-vacancies__subtitle {
  font-size: 16px;
  line-height: 1.5;
  color: #33302E;
}

.jobs-vacancies__grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Vacancy card */
.jobs-card {
  border: 1px solid #EBECF0;
  border-radius: 16px;
  padding: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.jobs-card__title {
  font-size: 22px;
  line-height: 1.5;
}

.jobs-card__desc-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jobs-card__desc {
  font-size: 14px;
  line-height: 1.5;
  color: #33302E;
  margin-bottom: 0;
}

/* Tags */
.jobs-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.jobs-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-orange-extra-light);
  border-radius: 100px;
  padding: 12px 16px;
}

.jobs-tag__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.jobs-tag__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-orange-light);
  white-space: nowrap;
}

/* Salary */
.jobs-card__salary {
  font-size: 25px;
  line-height: 1.5;
  color: #33302E;
  margin-top: auto;
  margin-bottom: 0;
}

/* Buttons */
.jobs-card__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jobs-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  width: 100%;
  transition: opacity 0.2s;
}

.jobs-card__btn:hover {
  opacity: 0.85;
}

.jobs-card__btn--primary {
  background-color: var(--color-orange);
  border: 2px solid var(--color-orange);
  color: #fff;
}

.jobs-card__btn--secondary {
  background-color: transparent;
  border: 2px solid var(--color-orange);
  color: var(--color-orange);
}

.jobs-card__btn--secondary:hover {
  background-color: var(--color-orange);
  color: #fff;
}

/* --- Resume form section --- */
.jobs-form-section {
  padding-top: 0;
  padding-bottom: 40px;
}

.jobs-form-box {
  background-color: var(--color-orange-light);
  border-radius: 20px;
  padding: 40px 20px;
  position: relative;
}

.jobs-form-bg {
  position: absolute;
  width: 101%;
  height: 101%;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  object-fit: cover;
}

.jobs-form-box__title {
  color: #fff;
  text-align: center;
  font-size: 23px;
  line-height: 1.5;
  z-index: 2;
  position: relative;
  margin-bottom: 30px;
}

.jobs-form {
  z-index: 2;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.jobs-form__field {
  width: 100%;
}

.jobs-form__field label {
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 4px;
  padding-left: 25px;
  display: block;
}

.jobs-form__field input {
  width: 100%;
  height: 60px;
  border-radius: 10px;
  background-color: #fff;
  padding-left: 25px;
  padding-right: 25px;
  font-size: 18px;
  color: #33302E;
  border: 1px solid #fff;
}

.jobs-form__field input::placeholder {
  font-size: 14px;
  color: #C3C4C8;
}

.jobs-form__file-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.jobs-form__file-name {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  text-align: left;
  word-break: break-word;
}

.jobs-form__file-btn {
  width: 100%;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  border-radius: 8px;
  border: 1px solid #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 10px 20px;
  transition: background-color 0.2s;
}

.jobs-form__file-btn:hover,
.jobs-form__file-btn.is-invalid {
  background-color: var(--color-orange);
  border-color: var(--color-orange);
}

.jobs-form__file-btn img {
  width: 20px;
  height: 20px;
}

.jobs-form__submit {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  border-radius: 12px;
  border: 2px solid #fff;
  transition: background-color 0.2s, border-color 0.2s;
}

.jobs-form__submit:hover {
  background-color: var(--color-orange);
  border-color: var(--color-orange);
}

.jobs-form__consent {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  z-index: 2;
  position: relative;
  margin-top: 0;
  width: 100%;
  font-size: 14px;
  color: #fff;
  line-height: 1.5;
}

.jobs-form__consent a {
  color: #fff;
  text-decoration: underline;
}

.jobs-form__checkbox-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-start;
  cursor: pointer;
}

.jobs-form__checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: #FF6900;
  margin-top: 2px;
}

.jobs-form__checkbox-label input[type="checkbox"].is-invalid {
  border-color: #ffb3b3;
  box-shadow: 0 0 0 1px rgba(198, 40, 40, 0.45);
}

/* =============================================
   Tablet: 768px+
   ============================================= */
@media (min-width: 768px) {
  .jobs-hero {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .jobs-hero__content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
  }

  .jobs-hero__left {
    flex: 1;
    min-width: 0;
  }

  .jobs-hero__title {
    font-size: 52px;
    margin-bottom: 15px;
  }

  .jobs-hero__text {
    font-size: 20px;
  }

  .jobs-hero__offers-list {
    margin-bottom: 40px;
  }

  .jobs-info-cards {
    flex-shrink: 0;
    flex-direction: row;
    gap: 20px;
  }

  .jobs-info-card {
    padding: 30px;
    gap: 25px;
    width: 250px;
  }

  .jobs-info-card__text {
    font-size: 14px;
  }

  .jobs-info-card__value {
    font-size: 24px;
  }

  /* Vacancies */
  .jobs-vacancies {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .jobs-vacancies__title {
    font-size: 52px;
    margin-bottom: 40px;
  }

  .jobs-vacancies__subtitle {
    font-size: 20px;
  }

  .jobs-card {
    padding: 30px;
    gap: 30px;
  }

  .jobs-card__title {
    font-size: 24px;
  }

  .jobs-card__desc {
    font-size: 16px;
  }

  .jobs-tag__text {
    font-size: 15px;
  }

  .jobs-card__salary {
    font-size: 30px;
  }

  .jobs-card__buttons {
    flex-direction: row;
    gap: 10px;
  }

  .jobs-card__btn {
    flex: 1;
    height: 76px;
    font-size: 20px;
  }

  /* Form */
  .jobs-form-section {
    padding-bottom: 80px;
  }

  .jobs-form-box {
    border-radius: 40px;
    padding: 60px 50px;
  }

  .jobs-form-box__title {
    font-size: 48px;
    margin-bottom: 40px;
  }

  .jobs-form__field input {
    height: 76px;
  }

  .jobs-form__field input::placeholder {
    font-size: 18px;
  }

  .jobs-form__submit {
    height: 76px;
    font-size: 20px;
  }

  .jobs-form {
    max-width: 610px;
    margin-left: auto;
    margin-right: auto;
  }

  .jobs-form__consent {
    justify-content: center;
  }
}

/* =============================================
   Desktop: 1200px+
   ============================================= */
@media (min-width: 1200px) {
  .jobs-hero {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .jobs-hero__content {
    gap: 60px;
  }

  .jobs-info-card {
    width: 277px;
  }

  .jobs-info-card__value {
    font-size: 30px;
  }

  .jobs-info-card__text {
    font-size: 16px;
  }

  /* Vacancies */
  .jobs-vacancies {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .jobs-vacancies__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  /* Form */
  .jobs-form-section {
    padding-bottom: 120px;
  }

  .jobs-form-box {
    padding: 65px 60px 80px 60px;
  }

  .jobs-form {
    max-width: 100%;
    gap: 14px;
  }

  .jobs-form__field {
    width: calc(25% - 10.5px);
    margin-bottom: 0;
  }
  
  .jobs-form__file-wrap {
      width: calc(25% - 10.5px);
  }

  .jobs-form__submit {
    width: 100%;
    order: 5;
  }
  
  .jobs-form__consent {
    width: auto;
    margin-left: auto;
    order: 7;
  }
}

/* =============================================
   Form validation & states
   ============================================= */
.jobs-form__field input.is-invalid,
.jobs-form .dropdown__button.is-invalid {
  border-color: #ff4444;
  box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.25);
}

.jobs-form__field-error {
  display: block;
  color: #fff;
  font-size: 12px;
  margin-top: 5px;
  padding: .25rem .5rem .25rem 25px;
  background-color: rgba(220,53,69,.9);
  border-radius: .25rem;
}

.jobs-form__error {
  width: 100%;
  background-color: rgba(220,53,69,.9);
  border-radius: .25rem;
  color: #fff;
  padding: 12px 20px;
  font-size: 14px;
  line-height: 1.5;
  z-index: 2;
  position: relative;
}

.jobs-form__submit.loader {
  pointer-events: none;
  opacity: 0.7;
}

.jobs-form__success {
  z-index: 2;
  position: relative;
  color: #fff;
  background-color: rgba(0, 200, 0, 0.2);
  border: 1px solid rgba(0, 200, 0, 0.5);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  font-size: 18px;
  line-height: 1.5;
}
