/* Контейнер дошки */
.relocationjobs-wrapper {
  font-family: 'Inter', sans-serif;
  background: #f9fafb;
}

/* Основний контейнер */
.relocationjobs-wrapper .relocationjobs-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

/* Фільтри */
.relocationjobs-wrapper .relocationjobs-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  gap: 1.5rem;
}

.relocationjobs-wrapper .relocationjobs-filters-group {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex-wrap: nowrap;
}

.relocationjobs-wrapper select,
.relocationjobs-wrapper input[type="text"] {
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 0.9rem 1.2rem;
  font-size: 1.5rem;
  border-radius: 6px;
}

/* Пошук гнучкий */
.relocationjobs-wrapper input[type="text"] {
  flex: 1;
  min-width: 200px;
}

/* Перемикач Grid/List */
.relocationjobs-wrapper .relocationjobs-view-toggle {
  display: flex;
  gap: 0.75rem;
}

.relocationjobs-wrapper .relocationjobs-view-toggle button {
  padding: 1rem 1.3rem;
  font-weight: 300;
  font-size: 1.5rem;
  border-radius: 6px;
  background: #e5e7eb;
  color: #374151;
  transition: all 0.2s ease;
}

.relocationjobs-wrapper .relocationjobs-view-toggle button.active {
  background: #194E8C;
  color: #fff;
}

/* Мобільні */
@media (max-width: 639px) {
  .relocationjobs-wrapper .relocationjobs-view-toggle {
    display: none;
  }
  .relocationjobs-wrapper .relocationjobs-filters-group {
    flex-wrap: wrap;
  }
  .relocationjobs-wrapper input[type="text"] {
    flex: unset;
    width: 100%;
  }
}

/* Grid / List */
.relocationjobs-wrapper .relocationjobs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .relocationjobs-wrapper .relocationjobs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .relocationjobs-wrapper .relocationjobs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.relocationjobs-wrapper .relocationjobs-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Картка вакансії */
.relocationjobs-wrapper .job-card {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.relocationjobs-wrapper .job-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.relocationjobs-wrapper .job-card.list-view {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* Контент картки */
.relocationjobs-wrapper .job-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.relocationjobs-wrapper .job-card h3 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #194E8C;
  margin-bottom: 0.5rem;
}

.relocationjobs-wrapper .job-meta {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 1rem 0;
  line-height: 1.5;
}

.relocationjobs-wrapper .job-summary {
  color: #374151;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.relocationjobs-wrapper .job-actions {
  margin-top: auto;
  padding-top: 1rem;
}

/* Бейджі у картках (grid/list) */
.relocationjobs-wrapper .job-card .badge-permanent,
.relocationjobs-wrapper .job-card .badge-flex {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 10;
  color: #fff;
}

/* Кольори бейджів */
.relocationjobs-wrapper .badge-permanent {
  background: #194E8C;   /* Permanent (Full Time) */
}

.relocationjobs-wrapper .badge-flex {
  background: #3f89df;   /* Flex (Temporary Contract) */
}

/* Бейджі у job-header (деталі вакансії) */
.relocationjobs-wrapper .job-header .badge-permanent,
.relocationjobs-wrapper .job-header .badge-flex {
  position: static;
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  color: #fff;
  align-self: flex-start;
  margin-top: 0.5rem;
  margin-left: 0;
}

.relocationjobs-wrapper .job-header .badge-permanent {
  background: #194E8C;
}

.relocationjobs-wrapper .job-header .badge-flex {
  background: #3f89df;
}

/* Контейнер заголовка */
.relocationjobs-wrapper .job-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .relocationjobs-wrapper .job-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .relocationjobs-wrapper .job-header .badge-permanent,
  .relocationjobs-wrapper .job-header .badge-flex {
    margin-left: 1rem;
    margin-top: 0;
    align-self: center;
  }
}

/* Кнопка в картці */
.relocationjobs-wrapper .job-card a {
  background: linear-gradient(90deg, #28ACE1, #1e96c8);
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 1.4rem;
  color: #fff;
  transition: background 0.3s ease;
  display: inline-block;
}

.relocationjobs-wrapper .job-card a:hover {
  background: linear-gradient(90deg, #1e96c8, #194E8C);
}

/* Back link */
.relocationjobs-wrapper .back-link {
  color: #28ACE1;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 2rem;
  display: inline-block;
  text-decoration: none;
}
.relocationjobs-wrapper .back-link:hover {
  text-decoration: underline;
}

/* Заголовок вакансії */
.relocationjobs-wrapper .job-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #194E8C;
  margin-bottom: 0.5rem;
}

.relocationjobs-wrapper .job-posted {
  font-size: 1.2rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

/* Блок мета-інформації */
.relocationjobs-wrapper .job-meta-block {
  margin-bottom: 2rem;
  color: #374151;
  font-size: 1.7rem;
  line-height: 1.6;
}

/* Опис вакансії (ізоляція від стилів теми) */
.relocationjobs-wrapper .job-description {
  margin-bottom: 3rem;
  font-size: 1.6rem !important;
  line-height: 1.8 !important;
  color: #1f2937 !important;
  font-family: 'Inter', sans-serif !important;
}

.relocationjobs-wrapper .job-description p,
.relocationjobs-wrapper .job-description ul,
.relocationjobs-wrapper .job-description ol,
.relocationjobs-wrapper .job-description li {
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  font-family: inherit !important;
}

.relocationjobs-wrapper .job-description p {
  margin-bottom: 1.2rem !important;
}

.relocationjobs-wrapper .job-description ul,
.relocationjobs-wrapper .job-description ol {
  margin: 1rem 0 1.5rem 2rem !important;
  padding: 0 !important;
}

.relocationjobs-wrapper .job-description li {
  margin-bottom: 0.5rem !important;
}

/* Заголовки всередині опису */
.relocationjobs-wrapper .job-description h2,
.relocationjobs-wrapper .job-description h3 {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #194E8C !important;
  margin: 1.5rem 0 1rem !important;
  font-family: 'Inter', sans-serif !important;
}

/* Форматування: жирний/курсив/спан */
.relocationjobs-wrapper .job-description strong,
.relocationjobs-wrapper .job-description b {
  font-weight: 800 !important;
  color: #111827 !important;
}

.relocationjobs-wrapper .job-description em,
.relocationjobs-wrapper .job-description i {
  font-style: italic !important;
  color: #374151 !important;
}

.relocationjobs-wrapper .job-description span[style*="bold"] {
  font-weight: 700 !important;
  color: #111827 !important;
}

/* Посилання в описі */
.relocationjobs-wrapper .job-description a {
  color: #28ACE1 !important;
  text-decoration: underline !important;
}
.relocationjobs-wrapper .job-description a:hover {
  color: #1e96c8 !important;
}

/* Форма заявки */
.relocationjobs-wrapper .apply-form {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  padding: 2rem;
  border-radius: 8px;
}

.relocationjobs-wrapper .apply-form h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: #194E8C;
}

.relocationjobs-wrapper .apply-form form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.relocationjobs-wrapper .apply-form .form-row {
  display: flex;
  gap: 1rem;
}

@media (max-width: 639px) {
  .relocationjobs-wrapper .apply-form .form-row {
    flex-direction: column;
  }
}

.relocationjobs-wrapper .apply-form input,
.relocationjobs-wrapper .apply-form textarea {
  border: 1px solid #d1d5db;
  padding: 1.2rem;
  font-size: 1.7rem;
  border-radius: 6px;
  width: 100%;
  background: #fff;
}

.relocationjobs-wrapper .apply-form textarea {
  resize: vertical;
}

/* Upload block */
.relocationjobs-wrapper .apply-form .upload-block {
  border: 2px dashed #d1d5db;
  padding: 2rem;
  text-align: center;
  border-radius: 8px;
  background: #fff;
}

.relocationjobs-wrapper .apply-form .upload-block label {
  cursor: pointer;
  color: #28ACE1;
  font-weight: 600;
  font-size: 1.7rem;
}

.relocationjobs-wrapper .apply-form .upload-block label:hover {
  color: #1e96c8;
}

.relocationjobs-wrapper .apply-form .upload-block p {
  color: #6b7280;
  margin-top: 0.5rem;
  font-size: 1.2rem;
}

/* Consent — єдиний блок */
body .relocationjobs-wrapper .apply-form .consent-block {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0.8rem !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  text-align: left !important;
}

body .relocationjobs-wrapper .apply-form .consent-block input[type="checkbox"] {
  margin: 0 !important;
  margin-top: 0.3rem !important;
  flex-shrink: 0 !important;
}

body .relocationjobs-wrapper .apply-form .consent-block .consent-label {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1.7rem;
  text-align: left !important;
  max-width: calc(100% - 2rem) !important;
  word-break: break-word !important;
}

body .relocationjobs-wrapper .apply-form .consent-block .consent-label a {
  color: #194E8C !important;
  text-decoration: underline !important;
}

body .relocationjobs-wrapper .apply-form .consent-block input[type="checkbox"] {
  width: auto !important;       /* не розтягується */
  height: auto !important;      /* стандартний розмір */
  padding: 0 !important;        /* без внутрішніх відступів */
  margin: 6px 0.3rem 0 0 !important; /* невеликий відступ справа */
  flex-shrink: 0 !important;
  vertical-align: middle !important;
}

/* Кнопка у формі — зелена */
.relocationjobs-wrapper .apply-form button {
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 6px;
  padding: 1rem;
  font-weight: 600;
  font-size: 1.2rem;
  color: #fff;
  transition: background 0.3s ease;
  cursor: pointer;
  border: none;
}
.relocationjobs-wrapper .apply-form button:hover {
  background: linear-gradient(90deg, #16a34a, #15803d);
}

/* Dial code (intl-tel-input) */
.iti__selected-dial-code {
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Reset заголовків теми в межах сайту */
body h1, body h2, body h3, body h4, body h5, body h6 {
  font-size: revert;
  font-weight: revert;
}
