/*
  Work Landing Pages (vacancy + lead form)
  Styled for Elemental Terra
  Altsignals brand design
*/

:root {
  --primary: #FF9811;
  --secondary: #FA03A4;
  --accent: #19B1BD;
  --bg-dark: #000A35;
  --bg-gradient: linear-gradient(90deg, #021B88 0%, #000A35 263.3%);
  --bg-card: #192352;
  --text-primary: #F6F3EE;
  --text-secondary: rgba(246, 243, 238, 0.78);
  --text-muted: rgba(246, 243, 238, 0.65);
  --work-bg-overlay: rgba(0, 10, 53, 0.84);
  --border-color: rgba(255, 255, 255, 0.2);
}

html {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

@supports (overflow: clip) {
  html {
    overflow-x: clip;
  }
}

/* Layout */
body {
  background: var(--bg-dark);
  min-height: 100vh;
  font-family: Notosans, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0 !important;
  padding: 0 !important;
  padding-top: 0 !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  overflow: hidden !important;
  width: 100%;
  max-width: 100%;
}

.vacancy-section {
  min-height: calc(100vh - 120px);
  padding: 80px 5% 60px;
  position: relative;
}

.vacancy-section::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.22) 62%, rgba(0, 0, 0, 0.42) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 12px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 18px);
  pointer-events: none;
  z-index: 0;
}

/* Decorative background image under the work placeholder (mirrored) */
.vacancy-section::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 152, 17, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 86% 22%, rgba(250, 3, 164, 0.16) 0%, transparent 58%),
    radial-gradient(circle at 72% 84%, rgba(25, 177, 189, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 110%, rgba(2, 27, 136, 0.55) 0%, transparent 55%),
    linear-gradient(var(--work-bg-overlay), var(--work-bg-overlay)),
    url("./work-bg.png");
  background-position: 0 0, 0 0, 0 0, 0 0, center, center;
  background-size: cover, cover, cover, cover, cover, cover;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  opacity: 1;
  filter: brightness(0.70) contrast(1.08) saturate(1.08);
  pointer-events: none;
  z-index: 0;
  transform: scaleX(-1);
  transform-origin: center;
}

.vacancy-section .container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.vacancy-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 991px) {
  .vacancy-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .vacancy-form-col {
    order: 1;
  }
  .vacancy-info-col {
    order: 2;
  }
}

/* Brand row (logo + text) */
.logo-block {
  display: inline-flex;
  align-items: center;
  margin-top: 0;
  margin-bottom: 32px;
  text-decoration: none;
}

.logo-block .logo-combo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-block .logo-mark {
  width: auto;
  height: 40px;
  display: block;
  object-fit: contain;
  transition: none !important;
  filter: none !important;
}

.logo-block:hover .logo-mark {
  filter: none !important;
}

.logo-block .logo-text {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-transform: uppercase;
}

.logo-block .logo-text::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 30px;
  bottom: -0.24rem;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  box-shadow: none !important;
}

.logo-block .logo-text-main {
  font-family: Notosans, sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  position: relative;
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: none !important;
  filter: none !important;
  text-shadow: none !important;
}

.logo-block:hover .logo-text-main {
  filter: none !important;
  text-shadow: none !important;
}

.logo-block .logo-text-main::before {
  display: none !important;
}

.logo-block .logo-text-sub {
  position: absolute;
  top: 26px;
  right: 9px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  opacity: 0.8;
  text-transform: lowercase;
  color: var(--accent);
}

/* Form column - CSS sticky positioning (native browser behavior) */
.vacancy-form-col {
  position: sticky;
  top: 20px;
  align-self: start;
  z-index: 10;
}

/* Spacer not needed with CSS sticky - removing */
.form-spacer {
  display: none;
}

@media (max-width: 991px) {
  .vacancy-form-col {
    position: static;
    top: auto;
  }
}

.compact-form {
  background: rgba(25, 35, 82, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 4px 16px rgba(255, 152, 17, 0.05);
  position: relative;
  overflow: visible;
}

.compact-form::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 152, 17, 0.015) 2px, rgba(255, 152, 17, 0.015) 4px);
  pointer-events: none;
  z-index: 1;
}

.compact-form .form-field {
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.compact-form .form-field:has(.iti) {
  z-index: 10;
}

.compact-form .form-field-dropdown,
.compact-form .form-field:has(.custom-select-wrapper) {
  z-index: 100;
}

.compact-form label,
.lead-form .form-field label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-family: Notosans, sans-serif;
  line-height: 1.5;
}

/* Lead form normalization (prevents main.min.css from breaking layout) */
.lead-form,
.lead-form * {
  box-sizing: border-box;
}

.lead-form input,
.lead-form select,
.lead-form button {
  font-family: Notosans, sans-serif;
}

/* Inputs */
.lead-form .w-input,
.lead-form input[type="text"]:not(.work-iti-search):not(.iti__search-input),
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form select {
  width: 100% !important;
  height: 56px !important;
  display: block;
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: var(--bg-dark) !important;
  color: var(--text-primary) !important;
  padding: 16px 24px !important;
  font-family: Notosans, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color 0.25s ease, background-color 0.25s ease;
  appearance: none;
  outline: none;
  box-shadow: none !important;
}

.lead-form select {
  padding-right: 44px !important;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.8) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.8) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* Prevent “filled” styling from changing input background (match join/login behavior: only border reflects validity) */
.lead-form .w-input:not(:placeholder-shown),
.lead-form input[type="text"]:not(.work-iti-search):not(.iti__search-input):not(:placeholder-shown),
.lead-form input[type="email"]:not(:placeholder-shown),
.lead-form input[type="tel"]:not(:placeholder-shown),
.lead-form select:not(:placeholder-shown) {
  background: var(--bg-dark) !important;
  color: var(--text-primary) !important;
}

.lead-form .w-input.valid,
.lead-form input.valid,
.lead-form select.valid,
.lead-form .iti__tel-input.valid {
  border-color: #27d988 !important;
  background: var(--bg-dark) !important;
}

.lead-form .w-input.invalid,
.lead-form input.invalid,
.lead-form select.invalid,
.lead-form .iti__tel-input.invalid,
.lead-form .w-input[aria-invalid="true"],
.lead-form input[aria-invalid="true"],
.lead-form select[aria-invalid="true"] {
  border-color: #ff3b30 !important;
  background: var(--bg-dark) !important;
}

/* Hard override: ensure text fields never get a light “filled” background from external CSS */
.vacancy-section .lead-form input.w-input[type="text"],
.vacancy-section .lead-form input.w-input[type="email"],
.vacancy-section .lead-form input.w-input[type="tel"],
.vacancy-section .lead-form select.w-input {
  background-color: var(--bg-dark) !important;
  color: var(--text-primary) !important;
}

.vacancy-section .lead-form input#lead-full-name,
.vacancy-section .lead-form input#lead-messenger {
  background-color: var(--bg-dark) !important;
  color: var(--text-primary) !important;
}

/* Some browsers/stylesheets can still “paint” text inputs; enforce dark fill via inset shadow */
.vacancy-section .lead-form input#lead-full-name,
.vacancy-section .lead-form input#lead-messenger {
  -webkit-appearance: none;
  appearance: none;
  -webkit-box-shadow: 0 0 0px 1000px var(--bg-dark) inset !important;
  box-shadow: 0 0 0px 1000px var(--bg-dark) inset !important;
  /* -webkit-text-fill-color: var(--text-primary) !important; */
  caret-color: var(--text-primary);
}

/* Custom Select (Dropdown) - Cyber Terminal Style */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-wrapper select {
  display: none;
}

.custom-select-trigger {
  width: 100%;
  height: 56px;
  padding: 16px 24px;
  background: var(--bg-dark);
  border: 1px solid transparent;
  border-radius: 32px;
  color: var(--text-primary);
  font-family: Notosans, sans-serif;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  user-select: none;
}

.custom-select-trigger:hover {
  border-color: rgba(255, 255, 255, 0.7);
}

.custom-select-trigger.active {
  border-color: var(--primary);
}

.custom-select-trigger.placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.custom-select-value {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.custom-select-arrow svg {
  fill: var(--primary);
}

.custom-select-trigger.active .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 9999 !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.custom-select-options.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-option {
  padding: 14px 24px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--border-color);
  font-family: Notosans, sans-serif;
  font-size: 16px;
  position: relative;
}

.custom-select-option:last-child {
  border-bottom: none;
}

.custom-select-option:hover {
  background: rgba(255, 152, 17, 0.1);
  color: var(--primary);
}

.custom-select-option.selected {
  background: rgba(255, 152, 17, 0.15);
  color: var(--primary);
  font-weight: 600;
}

.custom-select-options::-webkit-scrollbar {
  width: 8px;
}

.custom-select-options::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.custom-select-options::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

.lead-form .w-input::placeholder,
.lead-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.lead-form .w-input:hover,
.lead-form input[type="text"]:hover,
.lead-form input[type="email"]:hover,
.lead-form input[type="tel"]:hover,
.lead-form select:hover {
  border-color: rgba(255, 255, 255, 0.35) !important;
}

.iti .iti__tel-input:hover {
  border-color: rgba(255, 255, 255, 0.7);
}

.lead-form input:-webkit-autofill,
.lead-form input:-webkit-autofill:hover,
.lead-form input:-webkit-autofill:focus,
.lead-form input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px var(--bg-dark) inset !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: var(--primary) !important;
  transition: background-color 5000s ease-in-out 0s;
}

.lead-form .w-input:focus,
.lead-form input:focus {
  border-color: var(--primary) !important;
}

.lead-form select:focus {
  border-color: var(--primary) !important;
}

.lead-form .w-input:focus-visible,
.lead-form input[type="text"]:focus-visible,
.lead-form input[type="email"]:focus-visible,
.lead-form input[type="tel"]:focus-visible {
  outline: none;
  border-color: var(--primary) !important;
}

/* Full Name: validity borders must win over focus/hover (match email/phone behavior) */
.vacancy-section .lead-form input#lead-full-name.valid,
.vacancy-section .lead-form input#lead-full-name.valid:hover,
.vacancy-section .lead-form input#lead-full-name.valid:focus,
.vacancy-section .lead-form input#lead-full-name.valid:focus-visible {
  border-color: #27d988 !important;
}

.vacancy-section .lead-form input#lead-full-name.invalid,
.vacancy-section .lead-form input#lead-full-name[aria-invalid="true"],
.vacancy-section .lead-form input#lead-full-name.invalid:hover,
.vacancy-section .lead-form input#lead-full-name[aria-invalid="true"]:hover,
.vacancy-section .lead-form input#lead-full-name.invalid:focus,
.vacancy-section .lead-form input#lead-full-name[aria-invalid="true"]:focus,
.vacancy-section .lead-form input#lead-full-name.invalid:focus-visible,
.vacancy-section .lead-form input#lead-full-name[aria-invalid="true"]:focus-visible {
  border-color: #ff3b30 !important;
}

/* Intl-tel-input: force same sizing as other fields */
.lead-form .iti {
  width: 100% !important;
  display: block !important;
}

.lead-form .iti__tel-input {
  width: 100% !important;
  height: 56px !important;
  border-radius: 32px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: var(--bg-dark) !important;
  color: var(--text-primary) !important;
  padding: 16px 24px 16px 100px !important;
  box-shadow: none !important;
  outline: none;
}

/* When separateDialCode is enabled, dial-code area is wider */
.lead-form .iti--separate-dial-code .iti__tel-input {
  padding-left: 152px !important;
}

/* Some intl-tel-input builds don't add `.iti__tel-input` to the input; ensure padding still applies */
.lead-form .iti input[type="tel"],
.lead-form .iti input#lead-phone {
  padding-left: 60px !important;
}

.lead-form .iti--separate-dial-code input[type="tel"],
.lead-form .iti--separate-dial-code input#lead-phone {
  padding-left: 152px !important;
}

/* Add breathing room between flag and dial code */
.lead-form .iti--separate-dial-code .iti__selected-flag {
  padding-right: 10px;
}

.iti__selected-flag {
    padding: 0 6px 0 24px !important;
}

.lead-form .iti--separate-dial-code .iti__selected-dial-code {
  margin-left: 8px;
}

.iti .iti__tel-input:focus,
.iti .iti__tel-input:focus-visible {
  outline: none;
  border-color: var(--primary) !important;
}

/* Submit button */
.lead-form .btn-gold {
  width: 100%;
  height: 56px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  background-size: 200% 100%;
  background-position: left;
  border: none;
  border-radius: 32px;
  color: #fff;
  font-family: Notosans, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  transition: all 0.5s ease;
  position: relative;
  z-index: 2;
}

.lead-form .btn-gold:hover {
  background-position: right;
}

.lead-form .small-text {
  text-align: center;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  line-height: 1.5;
  position: relative;
  z-index: 2;
}

.lead-form .small-text a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px dashed var(--primary);
  transition: color 0.3s ease;
}

.lead-form .small-text a:hover {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
}

/* Vacancy content styles */
.vacancy-info-col {
  color: #fff;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
}

.vacancy-title {
  font-family: Notosans, sans-serif;
  font-size: 48px;
  font-weight: 900;
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
}

.vacancy-company {
  font-family: Notosans, sans-serif;
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 36px;
  font-weight: 500;
  letter-spacing: 0;
}

.vacancy-intro {
  margin-bottom: 40px;
  padding-bottom: 40px;
}

.vacancy-intro p {
  font-size: 16px;
  line-height: 1.7;
  color: #fff;
  margin-bottom: 16px;
}

.vacancy-intro strong {
  color: var(--primary);
  font-weight: 600;
}

.vacancy-block {
  margin-bottom: 40px;
}

.vacancy-block h3 {
  font-family: Notosans, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0;
}

.vacancy-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vacancy-block li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.7;
  color: #fff;
}

.vacancy-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

/* Footer - prevent 100vw full-bleed from creating horizontal scroll */
footer,
footer.cyber-footer,
.cyber-footer {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Mobile helper: centered "Up" button above footer */
.vacancy-section .scroll-to-form-up-wrap {
  display: none;
}

.vacancy-section .scroll-to-form-btn--up {
  display: none;
}

@media (max-width: 991px) {
  .vacancy-section .scroll-to-form-up-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 18px 0 26px;
    min-height: 44px;
    position: relative;
    overflow: visible;
  }

  .vacancy-section .scroll-to-form-ripple {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.30);
    box-shadow:
      0 0 0 1px rgba(255, 152, 17, 0.20),
      0 10px 28px rgba(0, 0, 0, 0.35);
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
  }

  .vacancy-section .scroll-to-form-ripple--1 {
    animation: workUpRipple 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  }

  .vacancy-section .scroll-to-form-ripple--2 {
    animation: workUpRipple 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    animation-delay: 1.2s;
  }

  .vacancy-section .scroll-to-form-btn--up {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 0;
    background:
      radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 35%, transparent 62%),
      linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff;
    font-family: Notosans, sans-serif;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    box-shadow:
      0 16px 38px rgba(0, 0, 0, 0.38),
      0 6px 18px rgba(0, 0, 0, 0.24),
      inset 0 2px 10px rgba(255, 255, 255, 0.14);
    position: relative;
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
    z-index: 1;
    animation: workUpBeat 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  }

  .vacancy-section .scroll-to-form-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.28));
  }

  .vacancy-section .scroll-to-form-btn--up::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.05) 36%, transparent 64%);
    opacity: 0.55;
    pointer-events: none;
    z-index: -1;
  }

  .vacancy-section .scroll-to-form-btn--up:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow:
      0 20px 52px rgba(0, 0, 0, 0.46),
      0 10px 22px rgba(0, 0, 0, 0.24),
      inset 0 2px 12px rgba(255, 255, 255, 0.16);
  }

  .vacancy-section .scroll-to-form-btn--up:active {
    transform: translateY(0);
    filter: brightness(1.02);
  }

  .vacancy-section .scroll-to-form-btn--up:hover,
  .vacancy-section .scroll-to-form-btn--up:active {
    animation: none;
  }


@keyframes workUpBeat {
  /* Soft beat → wave → soft beat → wave (sync with ripple #1 at 0% and ripple #2 at 50%) */
  0%, 22%, 50%, 72%, 100% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }

  /* Beat 1 */
  8% {
    transform: translateY(-0.5px) scale(1.045);
    filter: brightness(1.05);
  }
  16% {
    transform: translateY(0) scale(1.015);
    filter: brightness(1.015);
  }

  /* Beat 2 */
  58% {
    transform: translateY(-0.5px) scale(1.045);
    filter: brightness(1.05);
  }
  66% {
    transform: translateY(0) scale(1.015);
    filter: brightness(1.015);
  }
}
  .vacancy-section .scroll-to-form-btn--up:focus-visible {
    outline: none;
    box-shadow:
      0 16px 38px rgba(0, 0, 0, 0.38),
      0 0 0 3px rgba(255, 152, 17, 0.35),
      inset 0 2px 10px rgba(255, 255, 255, 0.14);
  }
}

@keyframes workUpRipple {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
  /* Hold a moment so it reads as beat first, wave after */
  8% {
    opacity: 0;
  }
  20% {
    opacity: 0.48;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.8);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vacancy-section .scroll-to-form-ripple--1,
  .vacancy-section .scroll-to-form-ripple--2 {
    animation-duration: 4.8s;
    opacity: 0.35;
  }
}

/* Appear animations */
.vacancy-section .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.7s ease;
}

.vacancy-section .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.vacancy-section .reveal-delay-1 {
  transition-delay: 0.1s;
}
.vacancy-section .reveal-delay-2 {
  transition-delay: 0.2s;
}
.vacancy-section .reveal-delay-3 {
  transition-delay: 0.3s;
}
.vacancy-section .reveal-delay-4 {
  transition-delay: 0.4s;
}
.vacancy-section .reveal-delay-5 {
  transition-delay: 0.5s;
}

.vacancy-section .form-field {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 0.5s ease forwards;
}

.vacancy-section .lead-form .form-field:nth-of-type(1) {
  animation-delay: 0.3s;
}
.vacancy-section .lead-form .form-field:nth-of-type(2) {
  animation-delay: 0.4s;
}
.vacancy-section .lead-form .form-field:nth-of-type(3) {
  animation-delay: 0.5s;
}
.vacancy-section .lead-form .form-field:nth-of-type(4) {
  animation-delay: 0.6s;
}
.vacancy-section .lead-form .form-field:nth-of-type(5) {
  animation-delay: 0.7s;
}

.vacancy-section .logo-block {
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInLeft 0.6s ease 0.1s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Intl-tel-input helpers */
.iti {
  width: 100%;
}

.iti li {
  margin: 0 !important;
}

/* Intl-tel-input dropdown (country list) - match site design */
.lead-form .iti__dropdown-content,
.lead-form .iti__country-list {
  background: rgba(25, 35, 82, 0.98) !important;
}

.lead-form .iti__dropdown-content {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55) !important;
  overflow: hidden;
  z-index: 99999 !important;
  backdrop-filter: blur(10px);
}

.lead-form .iti__country-list {
  color: var(--text-primary);
  border: 0 !important;
}

.work-iti-search,
.lead-form .iti__search-input {
  display: block !important;
  width: calc(100% - 32px) !important;
  max-width: 420px;
  height: 40px !important;
  margin: 12px auto 10px !important;
  padding: 8px 12px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(0, 10, 53, 0.9) !important;
  color: var(--text-primary) !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
  outline: none !important;
  box-shadow: none !important;
}

.work-iti-search::placeholder,
.lead-form .iti__search-input::placeholder {
  color: rgba(255, 255, 255, 0.55) !important;
}

.work-iti-search:focus,
.lead-form .iti__search-input:focus {
  border-color: var(--primary) !important;
}

.lead-form .iti__country {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px !important;
  color: var(--text-primary) !important;
}

.lead-form .iti__flag-box,
.lead-form .iti__flag {
  flex: 0 0 auto;
}

.lead-form .iti__country-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92) !important;
}

.lead-form .iti__dial-code {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65) !important;
}

.lead-form .iti__country:hover {
  background: rgba(255, 152, 17, 0.12) !important;
}

.lead-form .iti__country.iti__highlight,
.lead-form .iti__country.iti__active {
  background: rgba(255, 152, 17, 0.18) !important;
}

.lead-form .iti__divider {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.lead-form .iti__country-list::-webkit-scrollbar {
  width: 10px;
}

.lead-form .iti__country-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
}

.lead-form .iti__country-list::-webkit-scrollbar-thumb {
  background: rgba(255, 152, 17, 0.55);
  border-radius: 999px;
}

.lead-form .iti__country-list::-webkit-scrollbar-thumb:hover {
  background: rgba(250, 3, 164, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
  .vacancy-title {
    font-size: 36px;
  }

  .compact-form {
    padding: 24px;
  }

  .vacancy-section {
    padding: 60px 5% 40px;
  }
}

/* Footer (work pages): match main site footer exactly */

#footer-placeholder {
  margin: 0;
  padding: 0;
}

.gradient-btn {
  color: #fff;
  background-image: linear-gradient(90deg, #FA03A4 0%, #FF9811 50%, #FA03A4 100%);
  background-size: 200% 100%;
  background-position: left;
  text-align: center;
  border: 0;
  padding: 16px 24px;
  border-radius: 28px;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  text-decoration: unset;
  transition: 0.5s;
}

.gradient-btn:hover {
  background-position: right;
}

.footer {
  background-color: #000;
  padding: 100px 0 32px;
  position: relative;
  margin: 0;
}

.footer .container {
  width: 100%;
  max-width: 1352px;
  padding: 0 20px;
  margin: 0 auto;
}

.footer a:hover {
  color: #FFCA84;
}

.footer,
.footer *,
.footer *::before,
.footer *::after {
  box-sizing: border-box;
}

.footer a {
  display: inline-block;
  transition: all 0.3s;
}

.footer img {
  max-width: 100%;
  display: block;
}

.footer__wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 50px;
  padding-bottom: 64px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.footer__column {
  width: fit-content;
}

.footer__contacts {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  padding: 8px 24px;
}

.footer__contacts span {
  color: #fff;
}

.footer__logo {
  padding-bottom: 64px;
}

.footer__logo img {
  max-height: 34px;
  width: fit-content;
  height: 100%;
}

.footer__subtitle {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.43;
  color: #FF9811;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer__menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__menu .menu-item:not(:last-child) {
  margin-bottom: 16px;
}

.footer__menu a {
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
  text-decoration: none;
}

.footer__copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding-top: 32px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  margin-bottom: 0;
  margin-top: 0;
}

.footer__item {
  line-height: 1.5;
}

.footer__item:not(:last-child) {
  margin-bottom: 16px;
}

.footer__label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}

.footer__contact {
  font-size: 16px;
  color: #fff;
  text-decoration: none;
}

.disclaimer {
  padding: 48px 0;
  width: 100%;
  max-width: 1090px;
  margin: 0 auto;
  line-height: 1.5;
}

.disclaimer__title {
  font-size: 16px;
  color: #fff;
  margin-bottom: 16px;
}

.disclaimer__text p {
  margin-bottom: 0;
}

.disclaimer__text p:not(:last-child) {
  margin-bottom: 8px;
}

.disclaimer__text * {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

@media screen and (max-width: 1440px) {
  .footer__wrap {
    grid-gap: 50px;
  }
}

@media screen and (max-width: 1024px) {
  .footer__wrap {
    grid-template-columns: 1fr 1fr;
  }

  .footer__column:first-child {
    grid-column-start: span 2;
  }
}

@media screen and (max-width: 767px) {
  .footer {
    padding: 48px 0 32px;
  }

  .footer__wrap {
    grid-template-columns: 1fr;
    grid-gap: 40px;
    padding-bottom: 48px;
  }

  .footer__subtitle {
    margin-bottom: 16px;
  }

  .footer__contacts {
    margin-top: 0;
  }

  .footer__logo {
    padding-bottom: 24px;
  }

  .footer__column:first-child {
    grid-column-start: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .footer__column:last-child {
    margin-top: 32px;
  }

  .footer__menu a {
    font-size: 14px;
  }
}

@media screen and (max-width: 768px) {
  .disclaimer {
    padding: 32px 0;
  }

  .disclaimer__text p:not(:last-child) {
    margin-bottom: 16px;
  }
}
