:root {
  --brand-blue: #10267f;
  --brand-blue-900: #061044;
  --brand-blue-800: #091a66;
  --brand-blue-700: #122b8c;
  --brand-red: #ff1f2d;
  --brand-red-dark: #d70d1c;
  --success-green: #18a558;
  --success-green-dark: #118244;
  --white: #ffffff;
  --ink: #08123f;
  --muted: #69738d;
  --line: #dce3ef;
  --field: #f8faff;
  --glow-blue: rgba(60, 132, 255, 0.34);
  --glow-red: rgba(255, 31, 45, 0.26);
}

* {
  box-sizing: border-box;
}

.container {
  width: min(100% - 2rem, 1320px);
  margin-inline: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: calc(var(--gutter, 1.5rem) / -2);
  row-gap: var(--row-gap, var(--gutter, 1.5rem));
}

.row > * {
  width: 100%;
  padding-inline: calc(var(--gutter, 1.5rem) / 2);
}

.g-3 {
  --gutter: 1rem;
  --row-gap: 1rem;
}

.g-4 {
  --gutter: 1.5rem;
  --row-gap: 1.5rem;
}

.align-items-center {
  align-items: center;
}

.d-none {
  display: none !important;
}

.w-100 {
  width: 100%;
}

.me-2 {
  margin-right: 0.5rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.alert {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
}

.alert-danger {
  color: #8f0611;
  background: #ffe8ea;
}

.alert-success {
  color: #0f5d35;
  background: #e7f7ee;
}

.alert-info {
  color: #0b3978;
  background: #e8f1ff;
}

.spinner-border {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  vertical-align: -0.15em;
  border: 0.16em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner 0.7s linear infinite;
}

.spinner-border-sm {
  width: 0.88rem;
  height: 0.88rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545;
}

.form-control.is-invalid ~ .invalid-feedback,
.form-select.is-invalid ~ .invalid-feedback {
  display: block;
}

.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.35rem;
  color: #dc3545;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--white);
  background: var(--brand-blue-900);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.career-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 20%, rgba(58, 120, 255, 0.35), transparent 28rem),
    radial-gradient(circle at 72% 75%, rgba(255, 31, 45, 0.16), transparent 26rem),
    linear-gradient(135deg, var(--brand-blue-900) 0%, var(--brand-blue-800) 42%, var(--brand-blue) 100%);
}

.career-page::before,
.career-page::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.career-page::before {
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 82%, transparent);
}

.career-page::after {
  right: -9rem;
  bottom: -7rem;
  width: 44rem;
  height: 32rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transform: rotate(-8deg);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 44px 44px;
}

.ambient {
  position: absolute;
  z-index: 0;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(22px);
  animation: floatGlow 8s ease-in-out infinite;
}

.ambient-one {
  top: 8%;
  left: -7rem;
  background: rgba(70, 150, 255, 0.18);
}

.ambient-two {
  right: 4%;
  bottom: 8%;
  background: rgba(255, 31, 45, 0.14);
  animation-delay: -3s;
}

.blueprint-grid {
  position: absolute;
  z-index: 0;
  left: 32%;
  top: 12%;
  width: 29rem;
  height: 24rem;
  border: 1px solid rgba(95, 167, 255, 0.2);
  opacity: 0.5;
  transform: skewY(-10deg);
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(83, 158, 255, 0.4) 49% 50%, transparent 51%),
    linear-gradient(transparent 0 48%, rgba(83, 158, 255, 0.28) 49% 50%, transparent 51%);
  background-size: 86px 86px;
  animation: blueprintDrift 14s linear infinite;
}

.route-line {
  position: absolute;
  z-index: 1;
  left: 35%;
  top: 8%;
  width: 22rem;
  height: 78vh;
  border-left: 4px solid var(--brand-red);
  border-radius: 52% 48% 47% 53% / 40% 45% 55% 60%;
  filter: drop-shadow(0 0 12px rgba(255, 31, 45, 0.5));
  opacity: 0.78;
  transform: rotate(18deg);
  animation: routePulse 3.6s ease-in-out infinite;
}

.career-shell {
  position: relative;
  z-index: 2;
  padding-top: clamp(2rem, 4vw, 4.25rem);
  padding-bottom: clamp(2rem, 4vw, 4.25rem);
}

.brand-block {
  width: min(31rem, 88vw);
  margin-bottom: clamp(2rem, 4vw, 3.3rem);
}

.brand-logo {
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

.hero-copy {
  max-width: 40rem;
}

.hero-copy h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(3rem, 7vw, 6.45rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy h1::after {
  content: "";
  display: block;
  width: 5.1rem;
  height: 0.35rem;
  margin-top: 1.35rem;
  border-radius: 999px;
  background: var(--brand-red);
  box-shadow: 0 0 24px var(--glow-red);
}

.hero-copy p {
  max-width: 34rem;
  margin: 1.6rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 1.5vw, 1.42rem);
  line-height: 1.42;
}

.motivation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.motivation-card {
  position: relative;
  min-height: 15.8rem;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.motivation-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.36);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
}

.motivation-card::after {
  content: "";
  display: block;
  width: 2rem;
  height: 0.25rem;
  margin-top: 1rem;
  border-radius: 999px;
  background: var(--brand-red);
}

.card-icon {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  place-items: center;
  color: #ffffff;
}

.card-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px var(--glow-blue));
}

.motivation-card h2 {
  margin: 0;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 850;
  line-height: 1.16;
}

.motivation-card p {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.96rem;
  line-height: 1.45;
}

.form-panel {
  position: relative;
  overflow: hidden;
  max-width: 44rem;
  margin-left: auto;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 28px;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 31, 45, 0.08), transparent 16rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 255, 0.98));
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.32);
}

.form-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 0.32rem;
  background: linear-gradient(90deg, var(--brand-red), #ff6270, var(--brand-blue));
}

.panel-header {
  margin-bottom: 1.35rem;
}

.panel-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 900;
  line-height: 1.06;
}

.panel-header p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.48rem;
  color: var(--brand-blue-800);
  font-size: 0.95rem;
  font-weight: 800;
}

.form-control,
.form-select {
  display: block;
  width: 100%;
  min-height: 3.38rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid #cfd8e8;
  border-radius: 12px;
  color: var(--ink);
  background-color: var(--field);
  font-size: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.form-control::placeholder {
  color: #929bb0;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-red);
  background-color: #ffffff;
  box-shadow: 0 0 0 0.24rem rgba(255, 31, 45, 0.14);
}

.form-control:hover,
.form-select:hover {
  border-color: #aab8ce;
}

.form-control:disabled,
.form-select:disabled,
.form-select.is-disabled {
  color: #8d96aa;
  border-color: #d8dfeb;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(16, 38, 127, 0.025) 0,
      rgba(16, 38, 127, 0.025) 8px,
      rgba(255, 255, 255, 0.28) 8px,
      rgba(255, 255, 255, 0.28) 16px
    ),
    #eef2f8;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
  cursor: not-allowed;
  opacity: 0.72;
}

.form-select:disabled:hover,
.form-select.is-disabled:hover {
  border-color: #d8dfeb;
}

.file-control {
  padding-top: 0.9rem;
  padding-left: 1.15rem;
}

.vehicle-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  margin: 0.1rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid #d8e0ef;
  border-radius: 14px;
  color: var(--brand-blue-800);
  background: rgba(16, 38, 127, 0.035);
  font-weight: 750;
  cursor: pointer;
}

.vehicle-check input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--brand-red);
}

.submit-area {
  margin-top: 1.55rem;
}

.btn-primary {
  min-height: 4rem;
  color: #ffffff;
  border-color: var(--success-green);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--success-green), #22c66b);
  box-shadow: 0 18px 42px rgba(24, 165, 88, 0.34);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn-primary:hover {
  color: #ffffff;
  border-color: var(--success-green-dark);
  background: linear-gradient(135deg, var(--success-green-dark), var(--success-green));
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(24, 165, 88, 0.42);
}

.btn-primary:disabled {
  color: #ffffff;
  border-color: var(--success-green);
  background: var(--success-green);
}

.required-mark {
  color: var(--brand-red);
}

.helper-text,
.privacy-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.privacy-note {
  margin: 1rem 0 0;
  text-align: center;
}

.invalid-feedback {
  font-size: 0.86rem;
  font-weight: 650;
}

.alert {
  border: 0;
  border-radius: 14px;
  font-weight: 700;
}

.mock-button {
  position: fixed;
  z-index: 20;
  right: 1.25rem;
  bottom: 1.25rem;
  display: grid;
  width: 4.25rem;
  height: 4.25rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(145deg, var(--brand-red), #ff5864);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), 0 0 26px var(--glow-red);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
  animation: testPulse 2.4s ease-in-out infinite;
}

.mock-button:hover {
  transform: translateY(-2px);
}

.reveal-up {
  animation: revealUp 680ms ease both;
}

.reveal-delay-1 {
  animation-delay: 100ms;
}

.reveal-delay-2 {
  animation-delay: 200ms;
}

.reveal-delay-3 {
  animation-delay: 320ms;
}

.reveal-delay-4 {
  animation-delay: 440ms;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatGlow {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(1.5rem, -1rem, 0) scale(1.08);
  }
}

@keyframes blueprintDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 86px 86px, 86px 86px;
  }
}

@keyframes routePulse {
  0%, 100% {
    opacity: 0.55;
    filter: drop-shadow(0 0 8px rgba(255, 31, 45, 0.42));
  }
  50% {
    opacity: 0.9;
    filter: drop-shadow(0 0 20px rgba(255, 31, 45, 0.62));
  }
}

@keyframes testPulse {
  0%, 100% {
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), 0 0 22px var(--glow-red);
  }
  50% {
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32), 0 0 36px rgba(255, 31, 45, 0.52);
  }
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 768px) {
  .col-md-5 {
    width: 41.66666667%;
  }

  .col-md-6 {
    width: 50%;
  }

  .col-md-7 {
    width: 58.33333333%;
  }
}

@media (min-width: 992px) {
  .col-lg-6 {
    width: 50%;
  }
}

@media (min-width: 1200px) {
  .g-xl-5 {
    --gutter: 3rem;
    --row-gap: 3rem;
  }
}

@media (min-width: 992px) and (max-height: 860px) {
  .container {
    width: min(100% - 2rem, 1220px);
  }

  .career-shell {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .brand-block {
    width: min(19.5rem, 72vw);
    margin-bottom: 0.7rem;
  }

  .hero-copy h1 {
    font-size: clamp(3.55rem, 5.75vw, 5.15rem);
    line-height: 0.9;
  }

  .hero-copy h1::after {
    width: 4.3rem;
    height: 0.28rem;
    margin-top: 1rem;
  }

  .hero-copy p {
    max-width: 31rem;
    margin-top: 1rem;
    font-size: 1.08rem;
    line-height: 1.38;
  }

  .motivation-grid {
    gap: 0.82rem;
    margin-top: 1rem;
  }

  .motivation-card {
    min-height: 12.25rem;
    padding: 0.92rem 1rem;
    border-radius: 15px;
  }

  .card-icon {
    width: 2.55rem;
    height: 2.55rem;
    margin-bottom: 0.58rem;
  }

  .motivation-card h2 {
    font-size: 1.05rem;
  }

  .motivation-card p {
    margin-top: 0.58rem;
    font-size: 0.86rem;
    line-height: 1.33;
  }

  .motivation-card::after {
    margin-top: 0.58rem;
  }

  .form-panel {
    max-width: 38.5rem;
    padding: 1.65rem 1.85rem 1.35rem;
    border-radius: 22px;
  }

  .panel-header {
    margin-bottom: 1rem;
  }

  .panel-header h2 {
    font-size: 2rem;
  }

  .panel-header p {
    margin-top: 0.35rem;
    font-size: 0.9rem;
  }

  .g-3 {
    --gutter: 0.82rem;
    --row-gap: 0.82rem;
  }

  .form-label {
    margin-bottom: 0.34rem;
    font-size: 0.84rem;
  }

  .form-control,
  .form-select {
    min-height: 2.86rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
  }

  .vehicle-check {
    min-height: 2.75rem;
    padding: 0.68rem 0.85rem;
    border-radius: 11px;
    font-size: 0.86rem;
  }

  .file-control {
    padding-top: 0.72rem;
  }

  .helper-text,
  .privacy-note {
    font-size: 0.78rem;
  }

  .submit-area {
    margin-top: 1.05rem;
  }

  .btn-primary {
    min-height: 3.28rem;
    border-radius: 12px;
    font-size: 0.95rem;
  }

  .privacy-note {
    margin-top: 0.72rem;
  }

  .mock-button {
    width: 3.65rem;
    height: 3.65rem;
    font-size: 0.76rem;
  }
}

@media (max-width: 1199.98px) {
  .motivation-grid {
    grid-template-columns: 1fr;
  }

  .motivation-card {
    min-height: 0;
  }
}

@media (max-width: 991.98px) {
  .career-page {
    overflow-y: auto;
  }

  .route-line {
    left: auto;
    right: 8%;
    opacity: 0.38;
  }

  .form-panel {
    max-width: none;
    margin-top: 1rem;
  }

  .brand-block {
    width: min(25rem, 78vw);
    margin-inline: auto;
  }

  .hero-copy {
    margin-inline: auto;
    text-align: center;
  }

  .hero-copy h1::after {
    margin-inline: auto;
  }
}

@media (max-width: 575.98px) {
  .career-shell {
    padding-top: 1.35rem;
    padding-bottom: 5.75rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.7rem, 16vw, 4rem);
  }

  .hero-copy p {
    font-size: 1.03rem;
  }

  .form-panel {
    padding: 1.1rem;
    border-radius: 22px;
  }

  .panel-header h2 {
    font-size: 1.75rem;
  }

  .motivation-grid {
    gap: 0.85rem;
  }

  .motivation-card {
    padding: 1.1rem;
    border-radius: 16px;
  }

  .mock-button {
    right: 0.9rem;
    bottom: 0.9rem;
    width: 3.75rem;
    height: 3.75rem;
    font-size: 0.76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
