/* ===== /apply — JCL application portal ===== */
.ap { background: #f4f8f6; }
.ap-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 500px at 85% 20%, rgba(31,155,209,.35), transparent 60%), radial-gradient(700px 400px at 10% 110%, rgba(106,79,193,.28), transparent 60%), linear-gradient(135deg, #072a20 0%, #0b3d2e 45%, #0c4a52 100%); padding: 84px 0 150px; }
.ap-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.ap-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ap-hero .eyebrow { color: #6fe0b5; }
.ap-hero h1 { margin-top: 18px; font-size: clamp(42px, 5.6vw, 70px); line-height: 1.02; color: #fff; }
.ap-hero p { margin-top: 18px; font-size: 18.5px; color: #cfe2da; max-width: 520px; }
.ap-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.ap-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #e4efe9; }
.ap-points svg { width: 20px; height: 20px; color: #6fe0b5; }

/* 3D scene */
.ap-scene { perspective: 1200px; height: 420px; }
.ap-stage { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(14deg) rotateY(-18deg); transition: transform .2s ease-out; animation: ap-float 8s ease-in-out infinite alternate; }
@keyframes ap-float { to { transform: rotateX(10deg) rotateY(-12deg) translateY(-10px); } }
.card3d { position: absolute; border-radius: 22px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.25); color: #fff; transform-style: preserve-3d; }
.c-cv { left: 8%; top: 6%; width: 250px; height: 300px; padding: 26px; transform: translateZ(40px); display: flex; flex-direction: column; gap: 14px; }
.c-cv .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #2fc28f, #1f9bd1); }
.c-cv .ic svg { width: 26px; height: 26px; }
.c-cv b { font: 700 20px/1.2 var(--serif); }
.c-cv i { display: block; height: 10px; border-radius: 6px; background: rgba(255,255,255,.28); }
.c-cv i.s { width: 60%; }
.c-match { right: 4%; top: 18%; padding: 18px 22px; display: flex; align-items: center; gap: 14px; transform: translateZ(120px); background: rgba(255,255,255,.95); color: #0b3d2e; }
.c-match .ring { position: relative; width: 62px; height: 62px; display: grid; place-items: center; }
.c-match .ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.c-match .ring circle { fill: none; stroke: #e3eee9; stroke-width: 3.5; }
.c-match .ring circle.v { stroke: #00815d; stroke-dasharray: 97.4; stroke-dashoffset: 8; stroke-linecap: round; animation: ap-ring 2.4s ease-out both; }
@keyframes ap-ring { from { stroke-dashoffset: 97.4; } }
.c-match .ring b { font: 800 16px/1 var(--sans); color: #00815d; }
.c-match small { display: block; font-size: 12.5px; color: #47554e; margin-top: 2px; }
.c-step { left: 22%; bottom: 4%; padding: 16px 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; font-weight: 600; transform: translateZ(80px); }
.c-step .dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.g { background: #2fc28f; } .dot.b { background: #52c2e3; } .dot.o { background: #ff9a5c; }
.c-badge { right: 12%; bottom: 22%; padding: 14px 18px; display: flex; align-items: center; gap: 12px; font-weight: 700; transform: translateZ(160px); background: linear-gradient(135deg, #00815d, #0f9d8a); border: 0; }
.c-badge img { width: 54px; filter: brightness(0) invert(1); }

/* Form card */
.ap-body { margin-top: -96px; padding-bottom: 96px; position: relative; z-index: 2; }
.ap-form, .ap-done { max-width: 900px; margin: 0 auto; background: #fff; border-radius: 28px; padding: 40px 44px 34px; box-shadow: 0 40px 90px -30px rgba(7,42,32,.35), 0 2px 0 rgba(255,255,255,.6) inset; border: 1px solid #e1e8e4; }
.ap-hp { position: absolute; left: -9999px; }
.ap-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.ap-steps li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: #8a978f; text-align: center; }
.ap-steps span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #eef3f0; color: #7b8a83; font-size: 14px; transition: all .3s; }
.ap-steps li.on { color: var(--green); }
.ap-steps li.on span { background: linear-gradient(135deg, var(--green), var(--teal)); color: #fff; box-shadow: 0 8px 18px -6px rgba(0,129,93,.6); }
.ap-steps li.done span { background: var(--green-50); color: var(--green); }
.ap-bar { height: 6px; border-radius: 6px; background: #eef3f0; margin: 18px 0 30px; overflow: hidden; }
.ap-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--sky), var(--violet)); transition: width .5s cubic-bezier(.2,.8,.2,1); }

.ap-step { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.ap-step.on { display: block; animation: ap-in .45s cubic-bezier(.2,.8,.2,1); }
@keyframes ap-in { from { opacity: 0; transform: translateX(24px); } }
.ap-step.back.on { animation-name: ap-in-back; }
@keyframes ap-in-back { from { opacity: 0; transform: translateX(-24px); } }
.ap-step legend { font: 700 26px/1.2 var(--serif); letter-spacing: -.02em; color: var(--ink); padding: 0; margin-bottom: 8px; }
.ap-hint { color: var(--ink-2); font-size: 15px; margin-bottom: 20px; }
.ap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.ap-grid .full { grid-column: 1 / -1; }
.ap label, .ap-lbl { display: grid; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.ap-lbl { display: block; margin: 18px 0 10px; }
.ap label em, .ap-lbl em { color: var(--coral); font-style: normal; }
.ap input:not([type=checkbox]):not([type=radio]):not([type=file]), .ap textarea { font: 500 15.5px/1.4 var(--sans); padding: 13px 15px; border: 1.5px solid #dde6e1; border-radius: 13px; background: #fbfdfc; color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s; }
.ap input:focus, .ap textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(0,129,93,.12); }
.ap .bad { border-color: var(--coral) !important; box-shadow: 0 0 0 4px rgba(224,87,59,.12) !important; }

/* Job cards */
.ap-jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ap-job { position: relative; text-align: left; display: flex; gap: 14px; padding: 18px; border-radius: 18px; border: 1.5px solid #e1e8e4; background: #fff; cursor: pointer; transition: transform .25s, box-shadow .25s, border-color .25s; font: inherit; color: inherit; }
.ap-job:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -18px rgba(7,42,32,.35); }
.ap-job.sel { border-color: var(--green); box-shadow: 0 0 0 4px rgba(0,129,93,.12); }
.ap-job.sel::after { content: ""; position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.ap-job .th { width: 64px; height: 64px; flex: none; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--green-50), var(--blue-50)); color: var(--green); }
.ap-job .th img { width: 100%; height: 100%; object-fit: cover; }
.ap-job .th svg { width: 28px; height: 28px; }
.ap-job b { display: block; font: 700 17px/1.25 var(--serif); padding-right: 26px; }
.ap-job small { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.ap-job .dl { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--orange); background: var(--orange-50); padding: 4px 9px; border-radius: 99px; }
.ap-job.general .th { background: linear-gradient(135deg, #072a20, #0c4a52); color: #6fe0b5; }
.ap-job .more { margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--blue); }

/* Segmented + tile choices */
.ap-seg { display: flex; flex-wrap: wrap; gap: 10px; }
.ap-seg label, .ap-tiles label { display: block; cursor: pointer; }
.ap-seg input, .ap-tiles input, .ap-chips input { position: absolute; opacity: 0; pointer-events: none; }
.ap-seg span, .ap-tiles span { display: block; padding: 12px 20px; border-radius: 13px; border: 1.5px solid #dde6e1; background: #fbfdfc; font-weight: 700; font-size: 14.5px; color: var(--ink-2); transition: all .2s; }
.ap-seg input:checked + span, .ap-tiles input:checked + span { border-color: var(--green); background: var(--green-50); color: var(--green-800); box-shadow: 0 0 0 3px rgba(0,129,93,.1); }
.ap-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ap-tiles.small { grid-template-columns: repeat(4, 1fr); }
.ap-tiles span { text-align: center; padding: 16px 10px; }
.ap-field { margin-top: 22px; }
.ap-filter { margin-bottom: 12px; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 8px; max-height: 250px; overflow: auto; padding: 4px 2px; }
.ap-chips label { cursor: pointer; }
.ap-chips span { display: inline-block; padding: 9px 13px; border-radius: 99px; border: 1.5px solid #dde6e1; font-size: 13px; font-weight: 600; color: var(--ink-2); background: #fff; transition: all .2s; }
.ap-chips input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }

/* Drop zone */
.ap-drop { position: relative; display: grid; place-items: center; gap: 10px; text-align: center; padding: 42px 20px; border-radius: 20px; border: 2px dashed #b9cfc5; background: linear-gradient(180deg, #f7fbf9, #fff); cursor: pointer; transition: all .25s; margin-top: 10px; }
.ap-drop:hover, .ap-drop.over { border-color: var(--green); background: var(--green-50); }
.ap-drop.has { border-style: solid; border-color: var(--green); }
.ap-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ap-drop-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--green), var(--sky)); box-shadow: 0 14px 28px -12px rgba(0,129,93,.7); }
.ap-drop-ic svg { width: 28px; height: 28px; }
.ap-drop b { font-size: 16px; }
.ap-drop small { color: var(--ink-2); font-size: 13px; font-weight: 500; }

.ap-review { margin: 22px 0; padding: 20px; border-radius: 16px; background: #f6faf8; border: 1px solid #e1e8e4; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: 14px; }
.ap-review div span { display: block; font-size: 12px; font-weight: 700; color: #7b8a83; text-transform: uppercase; letter-spacing: .06em; }
.ap-review div b { font-weight: 600; }
.ap-agree { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 12px; font-weight: 500 !important; color: var(--ink-2) !important; line-height: 1.55; cursor: pointer; }
.ap-agree input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--green); flex: none; }
.ap-err { margin-top: 18px; padding: 12px 16px; border-radius: 12px; background: var(--coral-50); color: #a33b23; font-weight: 600; font-size: 14px; }
.ap-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid #edf2ef; }
.ap-nav .btn[hidden] { display: none; }
.ap-nav #ap-next, .ap-nav #ap-submit { margin-left: auto; }

.ap-done { text-align: center; padding: 56px 44px; }
.ap-done-ic { width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--green), var(--teal)); box-shadow: 0 20px 40px -14px rgba(0,129,93,.7); animation: ap-pop .6s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes ap-pop { from { transform: scale(.3); opacity: 0; } }
.ap-done-ic svg { width: 40px; height: 40px; }
.ap-done h2 { font-size: 34px; }
.ap-done p { margin: 14px auto 26px; max-width: 560px; color: var(--ink-2); font-size: 16.5px; }
.ap-done b { color: var(--green); }

@media (max-width: 900px) {
  .ap-hero { padding: 48px 0 130px; }
  .ap-hero-grid { grid-template-columns: 1fr; }
  .ap-scene { height: 300px; margin-top: 10px; }
  .c-cv { width: 190px; height: 230px; padding: 20px; }
  .ap-jobs { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ap-hero { padding: 36px 0 110px; }
  .ap-hero p { font-size: 16px; }
  .ap-scene { height: 250px; }
  .c-cv { left: 2%; width: 160px; height: 200px; }
  .c-match { right: 0; padding: 12px 14px; }
  .c-match .ring { width: 48px; height: 48px; }
  .c-step { left: 6%; font-size: 11.5px; padding: 10px 14px; }
  .c-badge { right: 4%; bottom: 30%; }
  .ap-form, .ap-done { padding: 26px 18px 22px; border-radius: 22px; }
  .ap-steps li { font-size: 0; gap: 0; }
  .ap-steps span { width: 30px; height: 30px; font-size: 13px; }
  .ap-step legend { font-size: 22px; }
  .ap-grid, .ap-review { grid-template-columns: 1fr; }
  .ap-tiles, .ap-tiles.small { grid-template-columns: 1fr 1fr; }
  .ap-nav .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .ap-stage { animation: none; } }
