/*
  Work Landing Pages (vacancy + lead form)
  Styled for Begini Crypto Trading Academy
  Dark neon cyberpunk theme
*/

:root {
  --c: #00ffd1;
  --m: #ff2df0;
  --p: #7b61ff;
  --y: #ffd43b;
  --bg-dark: #070812;
  --bg-card: rgba(10, 15, 25, 0.95);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.75);
}

html {
  width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html {
    overflow-x: clip;
  }
}

/* Layout */
body {
  background: linear-gradient(135deg, #070812 0%, #0b0f1a 50%, #0f1419 100%);
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  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 20% 20%, rgba(0, 255, 209, 0.08) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255, 45, 240, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.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, rgba(0, 255, 255, 0.35), rgba(255, 105, 255, 0.4));
  box-shadow: none !important;
}

.logo-block .logo-text-main {
  font-family: "Orbitron", sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  position: relative;
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: linear-gradient(110deg, #00ffe5 0%, #00f5ff 35%, #5cc3ff 65%, #ff6bff 100%);
  -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.94;
  text-transform: lowercase;
  color: #dbe4f5;
}

/* 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: linear-gradient(135deg, rgba(0, 20, 20, 0.95), rgba(10, 10, 20, 0.98));
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 12px;
  padding: 32px;
  box-shadow:
    0 0 40px rgba(0, 255, 255, 0.12),
    0 0 80px rgba(255, 0, 255, 0.05),
    inset 0 0 80px rgba(0, 255, 255, 0.03);
  position: relative;
  overflow: visible;
}

.compact-form::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 255, 0.012) 2px, rgba(0, 255, 255, 0.012) 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: 13px;
  font-weight: 600;
  color: var(--c);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: "Orbitron", sans-serif;
}

/* Inputs (dark neon theme) */
.lead-form .w-input,
.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form select {
  width: 100%;
  height: 52px;
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 255, 0.25);
  background: rgba(5, 10, 20, 0.85);
  color: #fff;
  padding: 12px 16px;
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  transition: all 0.3s ease;
  appearance: none;
  outline: none;
}

/* 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: 52px;
  padding: 12px 16px;
  background: rgba(5, 10, 20, 0.85);
  border: 1px solid rgba(0, 255, 255, 0.25);
  border-radius: 4px;
  color: #fff;
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  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(0, 255, 255, 0.5);
  background: rgba(5, 10, 20, 0.95);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.15);
}

.custom-select-trigger.active {
  border-color: var(--c);
  box-shadow:
    0 0 20px rgba(0, 255, 255, 0.3),
    0 0 0 2px rgba(0, 255, 255, 0.1);
  background: rgba(5, 10, 20, 0.95);
}

.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(--c);
  filter: drop-shadow(0 0 4px var(--c));
}

.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: rgba(5, 10, 20, 0.98);
  border: 1px solid var(--c);
  border-radius: 4px;
  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, 255, 255, 0.3),
    0 0 80px rgba(0, 255, 255, 0.1),
    inset 0 0 20px rgba(0, 255, 255, 0.05);
}

.custom-select-options.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-option {
  padding: 14px 18px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0, 255, 255, 0.1);
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  position: relative;
}

.custom-select-option:last-child {
  border-bottom: none;
}

.custom-select-option:hover {
  background: rgba(0, 255, 255, 0.15);
  padding-left: 28px;
  color: var(--c);
}

.custom-select-option.selected {
  background: linear-gradient(90deg, rgba(0, 255, 255, 0.2), rgba(255, 45, 240, 0.15));
  color: var(--c);
  font-weight: 600;
  padding-left: 28px;
}

.custom-select-option.selected::before {
  content: ">";
  position: absolute;
  left: 12px;
  color: var(--c);
  font-weight: bold;
  text-shadow: 0 0 8px var(--c);
}

.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: rgba(0, 255, 255, 0.3);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 255, 0.5);
}

.lead-form .w-input::placeholder,
.lead-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.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(0, 255, 255, 0.5);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.15);
}

.iti .iti__tel-input:hover {
  border-color: rgba(0, 255, 255, 0.5);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.15);
}

.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 rgba(5, 10, 20, 0.95) inset !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: var(--c) !important;
  transition: background-color 5000s ease-in-out 0s;
}

.lead-form .w-input:focus,
.lead-form input:focus {
  border-color: var(--c);
  box-shadow:
    0 0 20px rgba(0, 255, 255, 0.3),
    0 0 0 2px rgba(0, 255, 255, 0.1);
  background: rgba(5, 10, 20, 0.95);
}

.lead-form select:focus {
  border-color: var(--c);
  box-shadow:
    0 0 20px rgba(0, 255, 255, 0.3),
    0 0 0 2px rgba(0, 255, 255, 0.1);
  background-color: rgba(5, 10, 20, 0.95);
}

.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(--c);
  box-shadow:
    0 0 20px rgba(0, 255, 255, 0.3),
    0 0 0 2px rgba(0, 255, 255, 0.1);
  background: rgba(5, 10, 20, 0.95);
}

.iti .iti__tel-input {
  outline: none;
}

.iti .iti__tel-input:focus,
.iti .iti__tel-input:focus-visible {
  outline: none;
  border-color: var(--c);
  box-shadow:
    0 0 20px rgba(0, 255, 255, 0.3),
    0 0 0 2px rgba(0, 255, 255, 0.1);
  background: rgba(5, 10, 20, 0.95);
}

/* Submit button */
.lead-form .btn-gold {
  width: 100%;
  height: 52px;
  background: linear-gradient(120deg, var(--c), var(--m), var(--p));
  border: none;
  border-radius: 4px;
  color: #000;
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow:
    0 0 20px rgba(0, 255, 255, 0.4),
    0 0 35px rgba(255, 0, 255, 0.2);
  position: relative;
  z-index: 2;
}

.lead-form .btn-gold:hover {
  transform: scale(1.03);
  box-shadow:
    0 0 30px rgba(0, 255, 255, 0.6),
    0 0 50px rgba(255, 0, 255, 0.4);
}

.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(--c);
  text-decoration: none;
  border-bottom: 1px dashed var(--c);
  transition: color 0.3s ease;
}

.lead-form .small-text a:hover {
  color: var(--m);
  border-bottom-color: var(--m);
}

/* Vacancy content styles */
.vacancy-info-col {
  color: var(--text-primary);
  padding-right: 20px;
  display: flex;
  flex-direction: column;
}

.vacancy-title {
  font-family: "Orbitron", sans-serif;
  font-size: 48px;
  font-weight: 900;
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.1;
  background: linear-gradient(120deg, var(--c), var(--m), var(--p));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
}

.vacancy-company {
  font-family: "Roboto Mono", monospace;
  font-size: 16px;
  color: rgba(0, 255, 255, 0.6);
  margin-bottom: 36px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.vacancy-intro {
  margin-bottom: 40px;
  padding-bottom: 40px;
}

.vacancy-intro p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.vacancy-intro strong {
  color: var(--c);
  font-weight: 600;
}

.vacancy-block {
  margin-bottom: 40px;
}

.vacancy-block h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(0, 255, 255, 0.3);
  letter-spacing: 0.05em;
}

.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: var(--text-secondary);
}

.vacancy-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--c);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--c);
}

/* 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;
}

/* 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;
}

/* Responsive */
@media (max-width: 768px) {
  .vacancy-title {
    font-size: 36px;
  }

  .compact-form {
    padding: 24px;
  }

  .vacancy-section {
    padding: 60px 5% 40px;
  }
}
