html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #0b1c30;
  background-color: #ffffff;
}

/* Keeps anchored sections clear of the sticky header. */
[id] {
  scroll-margin-top: 5rem;
}

/* Inline SVG icons (assets/js/icons.js): drawn in the page, so no icon font has to download first. */
.hj-icon {
  flex: none;
  vertical-align: middle;
}

.scrollbar-none {
  scrollbar-width: none;
}
.scrollbar-none::-webkit-scrollbar {
  display: none;
}

/* ===== Homepage hero: fills the screen below the 4rem sticky header ===== */
.hero-fullscreen {
  min-height: calc(100vh - 4rem);
  min-height: calc(100svh - 4rem);
  background-color: #0b1324;
  background-image: url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
}

/* ===== Fade in on scroll (html.js is set in <head>, so content stays visible without JavaScript) ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* FAQ accordion: the +/× icon replaces the browser's disclosure triangle */
.faq-item > summary {
  list-style: none;
}
.faq-item > summary::-webkit-details-marker {
  display: none;
}

/* ===== Floating apply button ===== */
.floating-apply-btn {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease, background-color 0.2s ease;
}
.floating-apply-btn.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* With live chat on, the Apply button stacks above the chat bubble instead of covering it. */
html.hj-chat-on .floating-apply-btn {
  bottom: 5.75rem;
}
.floating-apply-btn.is-hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* ===== Application form: country pickers ===== */
.nationality-wrapper {
  position: relative;
  width: 100%;
}
.nationality-input {
  cursor: pointer;
  padding-right: 2.5rem !important;
  background-color: #ffffff;
}
.nationality-input.has-flag {
  padding-left: 2.75rem !important;
}
.nationality-input.error {
  border-color: #ba1a1a !important;
}
.nationality-flag-display {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 15px;
  pointer-events: none;
  display: none;
}
.nationality-flag-display.show {
  display: block;
}
.nationality-flag-display img,
.nationality-flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  border-radius: 2px;
}
.nationality-flag {
  width: 22px;
  height: 16px;
  flex-shrink: 0;
}
.nationality-chevron {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #787680;
  transition: transform 0.2s ease;
}
.nationality-wrapper.active .nationality-chevron {
  transform: translateY(-50%) rotate(180deg);
}
.nationality-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.25rem;
  max-height: 18rem;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(7, 2, 53, 0.12);
  z-index: 40;
  display: none;
}
.nationality-dropdown.active {
  display: block;
}
.nationality-search {
  position: sticky;
  top: 0;
  padding: 0.5rem;
  background: #ffffff;
  border-bottom: 1px solid #eef2f7;
  z-index: 1;
}
.nationality-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  text-align: left;
  color: #0b1c30;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nationality-option:hover,
.nationality-option:focus-visible {
  background: #eff4ff;
  outline: none;
}

/* ===== Application form: CV upload ===== */
.upload-area.dragover {
  background: #e5eeff;
  border-color: #070235;
}

/* ===== Application form: status messages ===== */
.form-alert {
  margin-top: 1.25rem;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  border-left: 4px solid;
  font-size: 0.875rem;
  line-height: 1.5;
}
.form-alert--info {
  background: #eff4ff;
  border-color: #070235;
  color: #070235;
}
.form-alert--success {
  background: #ecfdf5;
  border-color: #059669;
  color: #065f46;
}
.form-alert--error {
  background: #ffdad6;
  border-color: #ba1a1a;
  color: #93000a;
}
