﻿/* ============================================================
   TRUE PATH LEADS — CAREERS PAGE  |  styles.css
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.no-scroll { overflow: hidden; }
body { font-family: 'Montserrat', sans-serif; background: #fff; color: #121212; overflow-x: hidden; }

/* ============================================================
   ANIMATION UTILITIES
   ============================================================ */
.anim-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim-fade-up.is-visible  { opacity: 1; transform: translateY(0); }
.anim-fade-in             { opacity: 0; transition: opacity 0.7s ease; }
.anim-fade-in.is-visible  { opacity: 1; }
.anim-scale               { opacity: 0; transform: scale(0.93); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.anim-scale.is-visible    { opacity: 1; transform: scale(1); }

/* stagger delays (scroll-in only — NOT applied to hover) */
.delay-1 { transition-delay: 0.08s !important; }
.delay-2 { transition-delay: 0.16s !important; }
.delay-3 { transition-delay: 0.24s !important; }
.delay-4 { transition-delay: 0.32s !important; }

/* ============================================================
   HERO WRAPPER  (exact 668 px, holds bg + header + content)
   ============================================================ */
.hero-wrapper {
  position: relative;
  width: 100%;
  height: 668px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
  animation: kenburns 18s ease-in-out infinite alternate;
}
@keyframes kenburns {
  0%   { transform: scale(1)    translate(0, 0); }
  100% { transform: scale(1.06) translate(-1%, -1%); }
}

.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1;
}

/* ============================================================
   HEADER
   — absolute inside hero (Figma: top 50, left 140, w 1160)

   ============================================================ */
.header {
  position: absolute;
  top: 50px; left: 140px; right: 140px;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

}



.header-logo img { width: 105px; height: auto; display: block; }



.btn-outline-white {
  backdrop-filter: blur(7.5px);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.05);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px; font-weight: 500; line-height: 20px;
  padding: 15px 30px;
  border-radius: 100px;
  cursor: pointer; white-space: nowrap;
  text-decoration: none; display: inline-block;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

/* ============================================================
   HERO CONTENT  (centred column, px 140)
   ============================================================ */
.hero-content {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 35px; padding: 0 140px; text-align: center;
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 15px;
  opacity: 0;
  animation: heroFadeUp 0.8s 0.3s cubic-bezier(0.22,1,0.36,1) forwards;
}
.hero-eyebrow-line { width: 85px; height: 1px; background: rgba(255,255,255,0.5); flex-shrink: 0; }
.hero-eyebrow-text { font-size: 18px; font-weight: 500; line-height: 25px; color: rgba(255,255,255,0.5); white-space: nowrap; }

.hero-title {
  font-size: 48px; font-weight: 500; line-height: 60px;
  color: #fff; width: 608px; max-width: 100%;
  opacity: 0;
  animation: heroFadeUp 0.9s 0.5s cubic-bezier(0.22,1,0.36,1) forwards;
}

.hero-sub {
  font-size: 18px; font-weight: 500; line-height: 25px;
  color: rgba(255,255,255,0.5);
  width: 725px; max-width: 100%;
  opacity: 0;
  animation: heroFadeUp 0.9s 0.65s cubic-bezier(0.22,1,0.36,1) forwards;
}

.hero-cta {
  display: inline-flex; align-items: center; gap: 20px;
  background: #fff; backdrop-filter: blur(7.5px);
  border-radius: 100px; padding: 5px 5px 5px 20px;
  cursor: pointer; text-decoration: none;
  opacity: 0;
  animation: heroFadeUp 0.9s 0.85s cubic-bezier(0.22,1,0.36,1) forwards;
  transition: transform 0.25s, box-shadow 0.25s;
}
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,0.3); }
.hero-cta-text { font-size: 14px; font-weight: 500; line-height: 20px; color: #000; }
.hero-cta-icon {
  width: 45px; height: 45px; background: #000; border-radius: 22.5px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; padding: 10px;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.hero-cta:hover .hero-cta-icon { transform: rotate(-45deg); }
.hero-cta-icon img {
  width: 25px; height: 25px; display: block;
  filter: brightness(0) invert(1);
  transform: scaleY(-1) rotate(180deg);
}

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%); z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0;
  animation: heroFadeUp 0.8s 1.3s ease forwards;
}
.hero-scroll span { font-size: 10px; font-weight: 500; color: rgba(255,255,255,0.4); letter-spacing: 2px; text-transform: uppercase; }
.hero-scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, transparent 100%);
  animation: scrollPulse 2s 1.6s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   OPEN POSITIONS SECTION
   ============================================================ */
.section { padding: 100px 140px; }

.section-heading-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 30px; gap: 20px;
}
.section-title { font-size: 48px; font-weight: 700; line-height: 1.2; color: #121212; white-space: nowrap; }

.filter-tags { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tag {
  display: inline-flex; align-items: center;
  padding: 11px 20px; border-radius: 1000px;
  font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
  border: 1px solid rgba(18,18,18,0.12);
  background: #fff; color: #121212;
  font-family: 'Montserrat', sans-serif;
  /* NO delay on hover — instant feel */
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.tag:hover { border-color: #3466d3; color: #3466d3; transform: translateY(-1px); }
.tag.active { background: linear-gradient(117deg, #3466d3 0%, #234795 100%); color: #fff; border-color: transparent; box-shadow: 0 4px 16px rgba(52,102,211,0.3); }

/* ── FILTER ROW: search only, left-aligned ── */
.filter-row {
  display: flex;
  gap: 12px;
  margin-bottom: 50px;
  /* no flex: 1 here — width is constrained by .filter-search */
}

/* Search — fixed width, not full-width */
.filter-search {
  width: 400px;       /* not full-width */
  flex: none;
  display: flex; align-items: center;
  padding: 15px 20px 15px 24px;
  border: 1px solid rgba(18,18,18,0.1);
  border-radius: 100px;
  background: #fff;
  gap: 10px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.filter-search:focus-within {
  border-color: rgba(52,102,211,0.4);
  box-shadow: 0 0 0 3px rgba(52,102,211,0.08);
}
.filter-search input {
  flex: 1; border: none; outline: none;
  font-size: 14px; font-weight: 500; color: #121212;
  background: transparent; font-family: 'Montserrat', sans-serif;
}
.filter-search input::placeholder { color: rgba(18,18,18,0.4); }
.filter-search img { width: 18px; height: 18px; opacity: 0.4; flex-shrink: 0; }

/* ============================================================
   JOB CARDS
   ============================================================ */
.jobs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.job-card {
  background: #fff;
  border: 1px solid rgba(18,18,18,0.1);
  border-radius: 25px; padding: 35px;
  display: flex; flex-direction: column; gap: 30px;
  /* instant hover — no delay */
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.job-card:hover {
  box-shadow: 0 12px 50px rgba(0,0,0,0.1);
  transform: translateY(-4px);
  border-color: rgba(52,102,211,0.15);
}

.job-card-header { display: flex; align-items: flex-start; gap: 16px; }
.job-card-info { flex: 1; }
.job-card-title { font-size: 18px; font-weight: 700; line-height: 1.35; color: #121212; margin-bottom: 8px; }
.job-card-location { font-size: 15px; font-weight: 500; color: rgba(18,18,18,0.5); }

.btn-apply {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 20px; border-radius: 1000px;
  font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(149deg, #3466d3 0%, #234795 100%);
  white-space: nowrap; cursor: pointer; border: none;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 4px 16px rgba(52,102,211,0.25);
  transition: opacity 0.18s, transform 0.18s, box-shadow 0.18s;
}
.btn-apply:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(52,102,211,0.35); }

.job-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.job-tag {
  display: inline-flex; align-items: center;
  padding: 10px 18px; border: 1px solid rgba(18,18,18,0.1);
  border-radius: 100px; font-size: 13px; font-weight: 500; color: #121212; background: #fff;
}
.job-tag.muted { opacity: 0.25; }
.job-desc { font-size: 15px; font-weight: 400; line-height: 1.65; color: rgba(18,18,18,0.55); }

.no-results { grid-column: 1/-1; text-align: center; padding: 60px; font-size: 16px; color: rgba(18,18,18,0.4); font-weight: 500; }

/* ============================================================
   WHY TRUE PATH LEADS
   ============================================================ */
.section-blue {
  background: linear-gradient(129deg, #3466d3 0%, #1b3a8a 100%);
  padding: 100px 140px; position: relative; overflow: hidden;
}
.section-blue::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.why-heading-row { display: flex; align-items: center; gap: 45px; margin-bottom: 50px; }
.why-title { font-size: 48px; font-weight: 700; color: #fff; line-height: 1.2; white-space: nowrap; }
.why-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.25); flex-shrink: 0; }
.why-sub { flex: 1; font-size: 17px; font-weight: 400; line-height: 1.6; color: rgba(255,255,255,0.55); }

.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.04) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 25px; padding: 35px;
  display: flex; flex-direction: column; gap: 16px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.why-card:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.08) 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.why-card-icon { width: 36px; height: 36px; }
.why-card-icon img { width: 36px; height: 36px; display: block; filter: brightness(0) invert(1); }
.why-card-title { font-size: 18px; font-weight: 700; color: #fff; }
.why-card-desc { font-size: 16px; font-weight: 400; color: rgba(255,255,255,0.55); line-height: 1.5; }

/* ============================================================
   DIVIDER / LIFE / FOOTER  (unchanged)
   ============================================================ */
.section-divider { height: 1px; background: rgba(18,18,18,0.07); margin: 0 140px; }

.life-section { padding: 100px 140px; display: flex; align-items: stretch; gap: 60px; }
.life-text { flex: 1; display: flex; flex-direction: column; gap: 50px; }
.life-section-title { font-size: 48px; font-weight: 700; color: #121212; line-height: 1.2; }
.life-divider { height: 1px; background: rgba(18,18,18,0.07); }
.quote-block { display: flex; flex-direction: column; gap: 16px; }
.quote-tag { display: inline-flex; align-items: center; padding: 11px 20px; border: 1px solid rgba(18,18,18,0.1); border-radius: 1000px; font-size: 13px; font-weight: 500; color: #121212; background: #fff; align-self: flex-start; }
.quote-text { font-size: 22px; font-weight: 500; line-height: 1.55; color: #121212; font-style: italic; }

.stats-row { display: flex; gap: 14px; }
.stat-card { flex: 1; background: #fff; border: 1px solid rgba(18,18,18,0.1); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: transform 0.2s, box-shadow 0.2s; }
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.stat-number { font-size: 38px; font-weight: 800; background: linear-gradient(135deg, #3466d3, #234795); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 14px; font-weight: 500; color: rgba(18,18,18,0.5); }

.life-photo { flex: 1; border-radius: 25px; overflow: hidden; min-height: 480px; }
.life-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform 0.5s ease; }
.life-photo:hover img { transform: scale(1.03); }

.footer { padding: 50px 140px; display: flex; align-items: center; justify-content: space-between; }
.footer-logo img { height: 60px; width: auto; display: block; }
.footer-copy { font-size: 14px; font-weight: 400; color: rgba(18,18,18,0.4); }

/* ============================================================
   JOB DETAIL OVERLAY
   ============================================================ */
.job-detail-overlay {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: flex-start; justify-content: center;
  background: rgba(5,10,35,0.65);
  backdrop-filter: blur(8px);
  padding: 50px 20px 40px;
  overflow-y: auto;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.job-detail-overlay.open { opacity: 1; pointer-events: all; }

/* Panel: flex-col, overflow hidden so sticky works */
.job-detail-panel {
  background: #fff;
  border-radius: 28px;
  width: 100%; max-width: 1060px;
  /* fixed max-height so inner body scrolls */
  max-height: calc(100vh - 90px);
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}

/* ── STICKY header (title + location + tags + actions) ── */
.job-detail-sticky {
  flex-shrink: 0;          /* never shrink — always visible */
  background: #fff;
  border-bottom: 1px solid rgba(18,18,18,0.08);
  padding: 28px 40px;
  display: flex; align-items: flex-start; gap: 20px;
  /* No position:sticky needed — it's flex-shrink:0 at top of column */
}
.job-detail-heading { flex: 1; min-width: 0; }
.job-detail-title { font-size: 22px; font-weight: 800; color: #121212; margin-bottom: 5px; }
.job-detail-loc { font-size: 14px; font-weight: 500; color: rgba(18,18,18,0.5); margin-bottom: 14px; }

.job-detail-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; padding-top: 2px; }

.btn-apply-large {
  display: inline-flex; align-items: center;
  padding: 13px 28px; border-radius: 1000px;
  font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(149deg, #3466d3 0%, #234795 100%);
  text-decoration: none; cursor: pointer; border: none;
  font-family: 'Montserrat', sans-serif; white-space: nowrap;
  box-shadow: 0 4px 20px rgba(52,102,211,0.3);
  transition: opacity 0.18s, transform 0.18s, box-shadow 0.18s;
}
.btn-apply-large:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(52,102,211,0.4); }

.job-detail-close {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid rgba(18,18,18,0.15);
  background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s, border-color 0.18s, transform 0.25s;
}
.job-detail-close:hover { background: #f3f4f6; border-color: rgba(18,18,18,0.25); transform: rotate(90deg); }
.job-detail-close svg { width: 16px; height: 16px; stroke: #121212; stroke-width: 2.2; stroke-linecap: round; }

/* ── Scrollable body ── */
.job-detail-body {
  flex: 1;           /* takes remaining height */
  overflow-y: auto;  /* THIS is what scrolls */
  padding: 40px 40px 56px;
}
.job-detail-body h3 {
  font-size: 13px; font-weight: 800; color: #121212;
  margin: 32px 0 10px;
  text-transform: uppercase; letter-spacing: 1px;
}
.job-detail-body h3:first-child { margin-top: 0; }
.job-detail-body p { font-size: 15px; font-weight: 400; color: rgba(18,18,18,0.72); line-height: 1.8; }
.job-detail-body ul { margin: 8px 0 0 20px; }
.job-detail-body ul li { font-size: 15px; font-weight: 400; color: rgba(18,18,18,0.72); line-height: 1.8; margin-bottom: 4px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .header { left: 50px; right: 50px; }

  .hero-content { padding: 0 50px; }
  .section, .section-blue, .life-section, .footer { padding-left: 50px; padding-right: 50px; }
  .section-divider { margin: 0 50px; }
  .section-title, .hero-title, .why-title, .life-section-title { font-size: 40px; }
  .hero-title { width: auto; } .hero-sub { width: auto; }
  .filter-search { width: 340px; }
}

@media (max-width: 900px) {
  .header { left: 30px; right: 30px; top: 30px; }

  .hero-content { padding: 0 30px; }
  .section, .section-blue, .footer { padding: 70px 30px; }
  .life-section { padding: 70px 30px; flex-direction: column; gap: 40px; }
  .section-divider { margin: 0 30px; }
  .jobs-grid, .why-grid { grid-template-columns: 1fr; }
  .section-title, .hero-title, .why-title, .life-section-title { font-size: 34px; }
  .hero-title { line-height: 1.25; }
  .why-heading-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .why-divider { display: none; }
  .why-title { white-space: normal; }
  .section-heading-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .life-photo { min-height: 300px; }
  .filter-search { width: 100%; }
}

@media (max-width: 640px) {
  /* ── layout ── */
  .hero-wrapper { height: auto; min-height: 560px; }
  .header { left: 20px; right: 20px; top: 20px; }
  .header-logo img { width: 80px; }
  .btn-outline-white { display: none; }
  .hero-content { padding: 0 20px; gap: 24px; }
  .hero-title { font-size: 28px; line-height: 1.3; }
  .hero-sub { font-size: 15px; line-height: 1.5; }
  .hero-eyebrow { display: none; }
  .section, .section-blue { padding: 55px 20px; }
  .footer { padding: 36px 20px; }
  .life-section { padding: 55px 20px; }
  .section-divider { margin: 0 20px; }
  .section-title, .why-title, .life-section-title { font-size: 26px; }
  .filter-search { width: 100%; }
  .job-card { padding: 24px; gap: 22px; }
  .job-card-header { flex-direction: column; align-items: flex-start; }
  .btn-apply { align-self: flex-start; }
  .stats-row { gap: 10px; }
  .hero-scroll { display: none; }

  /* ── footer — лого и копирайт по центру ── */
  .footer {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }
  .footer-copy { font-size: 12px; text-align: center; }

  /* ── job detail overlay — fixed body + no scroll bleed ── */
  .job-detail-overlay {
    padding: 16px 16px 16px;   /* 1rem отступ со всех сторон */
    align-items: flex-end;
    overflow: hidden;
  }
  .job-detail-panel {
    border-radius: 20px;       /* закруглены все 4 угла */
    max-height: calc(100dvh - 32px);   /* экран минус верх+низ по 16px */
    width: 100%;
    max-width: 100%;
    margin: 0;
    /* на мобильном панель едет снизу */
    transform: translateY(calc(100% + 16px));
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .job-detail-overlay.open .job-detail-panel {
    transform: translateY(0);
  }

  /* ── sticky header попапа — компактнее ── */
  .job-detail-sticky {
    padding: 14px 16px 10px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .job-detail-title { font-size: 16px; margin-bottom: 3px; }
  .job-detail-loc   { font-size: 12px; margin-bottom: 8px; }
  .job-tags         { gap: 6px; }
  .job-tag          { font-size: 11px; padding: 6px 12px; }
  .btn-apply-large  { font-size: 13px; padding: 10px 18px; }
  .job-detail-close { width: 36px; height: 36px; }

  /* ── тело попапа — меньший шрифт ── */
  .job-detail-body { padding: 16px 16px 56px; }
  .job-detail-body h3 { font-size: 11px; margin: 20px 0 6px; }
  .job-detail-body p,
  .job-detail-body ul li { font-size: 13px; line-height: 1.65; }
}

/* ============================================================
   APPLY FORM MODAL
   ============================================================ */

/* Second overlay — sits above job-detail (z-index 1100) */
.apply-overlay {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 10, 35, 0.7);
  backdrop-filter: blur(10px);
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.apply-overlay.open { opacity: 1; pointer-events: all; }

.apply-modal {
  background: #fff;
  border-radius: 24px;
  width: 100%; max-width: 560px;
  padding: 40px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
.apply-overlay.open .apply-modal { transform: translateY(0) scale(1); }

/* header row: title + close btn */
.apply-modal-head {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px;
  margin-bottom: 28px;
}
.apply-modal-title {
  font-size: 20px; font-weight: 800; color: #121212; line-height: 1.3;
}
.apply-modal-subtitle {
  font-size: 13px; font-weight: 500; color: rgba(18,18,18,0.45);
  margin-top: 4px;
}
.apply-modal-close {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid rgba(18,18,18,0.15);
  background: #fff; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s, transform 0.25s;
}
.apply-modal-close:hover { background: #f3f4f6; transform: rotate(90deg); }
.apply-modal-close svg { width: 15px; height: 15px; stroke: #121212; stroke-width: 2.2; stroke-linecap: round; }

/* form fields */
.apply-form { display: flex; flex-direction: column; gap: 16px; }

.apply-field { display: flex; flex-direction: column; gap: 6px; }
.apply-field label {
  font-size: 12px; font-weight: 700; color: #121212;
  text-transform: uppercase; letter-spacing: 0.7px;
}
.apply-field input,
.apply-field textarea {
  width: 100%; padding: 13px 18px;
  border: 1.5px solid rgba(18,18,18,0.12);
  border-radius: 12px;
  font-size: 14px; font-weight: 500; color: #121212;
  font-family: 'Montserrat', sans-serif;
  background: #fafafa;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  resize: none;
}
.apply-field input::placeholder,
.apply-field textarea::placeholder { color: rgba(18,18,18,0.35); }
.apply-field input:focus,
.apply-field textarea:focus {
  border-color: #3466d3;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(52,102,211,0.1);
}
.apply-field textarea { min-height: 110px; }

/* required star */
.apply-field label span { color: #e53e3e; margin-left: 2px; }

.apply-submit {
  width: 100%; padding: 15px;
  border-radius: 1000px; border: none; cursor: pointer;
  background: linear-gradient(149deg, #3466d3 0%, #234795 100%);
  color: #fff; font-family: 'Montserrat', sans-serif;
  font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 20px rgba(52,102,211,0.3);
  transition: opacity 0.18s, transform 0.18s, box-shadow 0.18s;
  margin-top: 8px;
}
.apply-submit:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(52,102,211,0.4); }

/* success state */
.apply-success {
  display: none;
  flex-direction: column; align-items: center;
  text-align: center; gap: 16px;
  padding: 20px 0 8px;
}
.apply-success.show { display: flex; }
.apply-success-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #3466d3, #234795);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(52,102,211,0.35);
}
.apply-success-icon svg { width: 28px; height: 28px; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.apply-success h3 { font-size: 20px; font-weight: 800; color: #121212; }
.apply-success p { font-size: 14px; font-weight: 500; color: rgba(18,18,18,0.55); line-height: 1.6; max-width: 360px; }
.apply-success-close {
  padding: 12px 32px; border-radius: 1000px; border: none; cursor: pointer;
  background: linear-gradient(149deg, #3466d3 0%, #234795 100%);
  color: #fff; font-family: 'Montserrat', sans-serif;
  font-size: 14px; font-weight: 700;
  transition: opacity 0.18s, transform 0.18s;
  margin-top: 4px;
}
.apply-success-close:hover { opacity: 0.9; transform: translateY(-1px); }

@media (max-width: 640px) {
  .apply-modal { padding: 28px 20px; }
  .apply-modal-title { font-size: 17px; }
}
