/* =====================================================
   Application form (loads after apply.css / header.css)
   ===================================================== */
.ap{ position:relative; isolation:isolate; overflow:clip; display:block; padding:clamp(24px,4vw,56px) 20px clamp(40px,6vw,80px); background:linear-gradient(180deg,#050a28 0%,#091550 55%,#060d36 100%); }
.ap, .ap *{ box-sizing:border-box; font-family:'Inter','Inter Fallback',sans-serif; }
.ap-bg{ position:absolute; inset:0; z-index:-1; pointer-events:none; overflow:hidden; background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px); background-size:56px 56px; }
.ap-bg i{ position:absolute; border-radius:50%; filter:blur(90px); } .ap-bg .g1{ width:520px; height:520px; left:-170px; top:-100px; background:#1b9cff; opacity:.3; animation:apDrift 18s ease-in-out infinite alternate; } .ap-bg .g2{ width:480px; height:480px; right:-150px; top:34%; background:#7c5cff; opacity:.28; animation:apDrift 22s ease-in-out -8s infinite alternate; } .ap-bg .g3{ width:380px; height:380px; left:34%; bottom:-160px; background:#e0407a; opacity:.16; animation:apDrift 26s ease-in-out -4s infinite alternate; }
@keyframes apDrift{ to{ transform:translate(60px,40px) scale(1.15); } }
.ap-wrap{ max-width:1180px; margin:0 auto; display:grid; grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr); gap:clamp(20px,3.4vw,52px); align-items:start; }

/* side panel */
.ap-side{ position:sticky; top:110px; color:#fff; }
.ap-back{ display:inline-flex; align-items:center; gap:8px; margin-bottom:22px; padding:9px 16px; border-radius:999px; font-size:13.5px; font-weight:700; color:rgba(255,255,255,.86); text-decoration:none; background:rgba(255,255,255,.08); border:1px solid rgba(160,190,255,.26); transition:background .25s, transform .25s; } .ap-back svg{ width:16px; height:16px; } .ap-back:hover{ background:rgba(255,255,255,.16); transform:translateX(-4px); }
.ap-pill{ display:flex; width:max-content; align-items:center; gap:10px; padding:7px 16px; border-radius:999px; font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; background:rgba(255,255,255,.08); border:1px solid rgba(150,180,255,.3); } .ap-pill i{ width:8px; height:8px; border-radius:50%; background:#5df0d0; animation:apPing 2.2s ease-out infinite; } @keyframes apPing{ 0%{ box-shadow:0 0 0 0 rgba(93,240,208,.7); } 70%,100%{ box-shadow:0 0 0 9px rgba(93,240,208,0); } }
.ap-side h1{ margin:14px 0 12px; font-size:clamp(34px,4.4vw,56px); line-height:1.05; letter-spacing:-.04em; font-weight:800; color:#fff; }
.ap-role{ display:inline-flex; align-items:center; gap:10px; margin:0 0 16px; padding:11px 18px; border-radius:16px; font-size:15.5px; font-weight:800; background:linear-gradient(135deg,rgba(74,120,255,.5),rgba(93,240,208,.26)); border:1px solid rgba(160,200,255,.5); } .ap-role svg{ width:19px; height:19px; color:#8ff5dc; }
.ap-lead{ margin:0 0 24px; max-width:420px; font-size:15.5px; line-height:1.7; color:rgba(255,255,255,.74); }
.ap-steps{ list-style:none; margin:0 0 24px; padding:0; display:grid; gap:14px; position:relative; }
.ap-steps::before{ content:""; position:absolute; left:19px; top:20px; bottom:20px; width:2px; background:linear-gradient(180deg,#6fb0ff,#5df0d0); opacity:.45; }
.ap-steps li{ position:relative; display:flex; align-items:center; gap:14px; opacity:0; animation:apIn .6s cubic-bezier(.22,.68,.36,1) forwards; } .ap-steps li:nth-child(1){ animation-delay:.2s; } .ap-steps li:nth-child(2){ animation-delay:.4s; } .ap-steps li:nth-child(3){ animation-delay:.6s; } @keyframes apIn{ from{ opacity:0; transform:translateX(-16px); } to{ opacity:1; transform:none; } }
.ap-steps span{ flex:none; width:40px; height:40px; border-radius:50%; display:grid; place-items:center; font-size:15px; font-weight:800; background:linear-gradient(140deg,#4a78ff,#2147e6); box-shadow:0 0 0 5px #0a1450; } .ap-steps li:nth-child(2) span{ background:linear-gradient(140deg,#b58cff,#7c5cff); } .ap-steps li:nth-child(3) span{ background:linear-gradient(140deg,#3fe0a8,#0f9a5a); }
.ap-steps b{ display:block; font-size:15.5px; } .ap-steps small{ display:block; font-size:13px; color:rgba(255,255,255,.64); }
.ap-help{ display:grid; gap:5px; padding:16px 18px; border-radius:20px; background:rgba(255,255,255,.07); border:1px solid rgba(160,190,255,.24); } .ap-help b{ font-size:14px; } .ap-help a{ font-size:14px; color:#8fd0ff; text-decoration:none; overflow-wrap:anywhere; } .ap-help a:hover{ text-decoration:underline; }

/* form card */
.ap-card{ position:relative; min-width:0; padding:clamp(18px,3vw,38px); border-radius:32px; background:#fff; box-shadow:0 50px 90px -40px rgba(0,0,0,.85), 0 0 0 8px rgba(255,255,255,.07); animation:apUp .8s cubic-bezier(.22,.68,.36,1) both; }
@keyframes apUp{ from{ opacity:0; transform:translateY(28px); } }
.ap-card::before{ content:""; position:absolute; left:30px; right:30px; top:0; height:5px; border-radius:0 0 6px 6px; background:linear-gradient(90deg,#4fb4ff,#2b4ee0,#7c5cff,#e0407a); }
.ap-progress{ display:grid; grid-template-columns:1fr auto; gap:8px 12px; margin:4px 0 22px; font-size:13px; font-weight:700; color:#5b6690; } .ap-progress b{ color:#0B1F6B; } .ap-progress i{ grid-column:1 / -1; display:block; height:8px; border-radius:6px; background:#e8eefc; overflow:hidden; } .ap-progress u{ display:block; height:100%; width:0; border-radius:6px; background:linear-gradient(90deg,#4a78ff,#3fe0a8); transition:width .45s cubic-bezier(.22,.68,.36,1); }
.ap .apply-form{ margin:0; max-width:none; padding:0; background:none; border:0; box-shadow:none; opacity:1; transform:none; }
.ap-set{ margin:0 0 22px; padding:0 0 6px; border:0; min-width:0; border-bottom:1px solid #eaeffb; }
.ap-set legend{ display:flex; align-items:center; gap:11px; margin:0 0 16px; padding:0; font-size:17px; font-weight:800; letter-spacing:-.01em; color:#0B1F6B; } .ap-set legend span{ width:30px; height:30px; border-radius:10px; display:grid; place-items:center; font-size:13.5px; color:#fff; background:linear-gradient(140deg,#4a78ff,#2147e6); box-shadow:0 10px 18px -10px #2147e6; }
.ap-row{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; }
.ap .form-group{ margin:0 0 16px; min-width:0; }
.ap .form-group > label:not(.upload-dropzone), .ap-lab{ display:block; margin:0 0 7px; font-size:13.5px; font-weight:700; color:#0B1F6B; } .ap .form-group label em{ font-style:normal; color:#e0407a; }
.ap-in{ position:relative; } .ap-in > svg{ position:absolute; left:15px; top:50%; width:18px; height:18px; margin-top:-9px; color:#8b98c4; pointer-events:none; transition:color .2s, transform .3s; } .ap-in:focus-within > svg{ color:#2147e6; transform:scale(1.15); }
.ap .apply-form .form-group input:not([type=file]), .ap .apply-form .form-group select, .ap .apply-form .form-group textarea{ width:100%; margin:0; padding:14px 15px; border-radius:15px; border:1.5px solid #dbe3f8; background:#f7f9ff; font-size:15px; color:#0B1F6B; outline:0; transition:border-color .2s, box-shadow .2s, background .2s; }
.ap .apply-form .ap-in input:not([type=file]){ padding-left:44px; }
.ap .apply-form .form-group select{ padding-right:44px; -webkit-appearance:none; appearance:none; cursor:pointer; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B4EE0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 15px center; background-size:18px; }
.ap .apply-form .form-group textarea{ min-height:130px; resize:vertical; }
.ap input::placeholder, .ap textarea::placeholder{ color:#98a2c6; }
.ap .apply-form .form-group input:not([type=file]):focus, .ap .apply-form .form-group select:focus, .ap .apply-form .form-group textarea:focus{ border-color:#4a78ff; background:#fff; box-shadow:0 0 0 4px rgba(74,120,255,.16); }
.ap .apply-form .form-group input:not(:placeholder-shown):valid{ border-color:#9fe0c4; background:#fbfffd; }
.ap .upload-dropzone{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; min-height:168px; margin:0; padding:18px 14px; text-align:center; cursor:pointer; border-radius:20px; border:2px dashed #b9c8f2; background:linear-gradient(180deg,#f9fbff,#f2f5ff); transition:border-color .25s, background .25s, transform .25s; }
.ap .upload-dropzone:hover, .ap .upload-dropzone.is-dragover{ border-color:#4a78ff; background:#eef3ff; transform:translateY(-3px); }
.ap .upload-icon{ width:48px; height:48px; margin:0 0 4px; border-radius:15px; display:grid; place-items:center; color:#fff; background:linear-gradient(140deg,#4a78ff,#2147e6); box-shadow:0 14px 22px -12px #2147e6; } .ap .upload-icon svg{ width:23px; height:23px; } .ap .upload-dropzone:hover .upload-icon svg{ animation:apBounce .7s ease; } @keyframes apBounce{ 40%{ transform:translateY(-5px); } }
.ap .upload-dropzone strong{ font-size:13.5px; color:#0B1F6B; } .ap .upload-dropzone > span{ font-size:12px; color:#6a76a6; }
.ap .upload-dropzone .upload-filename{ max-width:100%; font-size:12.5px; font-weight:700; color:#0a7a4c; overflow-wrap:anywhere; } .ap .upload-filename:empty{ display:none; }
.ap .upload-dropzone.has-file{ border-style:solid; border-color:#3fc98a; background:#effbf5; } .ap .upload-dropzone.has-file .upload-icon{ background:linear-gradient(140deg,#3fe0a8,#0f9a5a); }
.ap .apply-submit{ position:relative; overflow:hidden; display:flex; width:100%; align-items:center; justify-content:center; gap:11px; margin:4px 0 0; padding:17px 26px; border:0; border-radius:999px; cursor:pointer; font-size:16px; font-weight:800; color:#fff; background:linear-gradient(180deg,#4a78ff,#2147e6); box-shadow:0 18px 34px -14px rgba(47,91,255,.95); transition:transform .25s, box-shadow .25s; }
.ap .apply-submit::after{ content:""; position:absolute; inset:0; background:linear-gradient(110deg,transparent 36%,rgba(255,255,255,.32) 50%,transparent 64%); transform:translateX(-130%); animation:apSweep 4.5s ease-in-out infinite; } @keyframes apSweep{ 55%,100%{ transform:translateX(130%); } }
.ap .apply-submit svg{ width:18px; height:18px; transition:transform .3s; } .ap .apply-submit:hover{ transform:translateY(-3px); } .ap .apply-submit:hover svg{ transform:translate(5px,-3px); } .ap .apply-submit:disabled{ opacity:.7; cursor:wait; transform:none; }
.ap .apply-terms{ margin:14px 0 0; text-align:center; font-size:12.5px; color:#6a76a6; } .ap .apply-terms a{ color:#2147e6; font-weight:700; }
.ap .contact-form-msg{ display:none; margin:14px 0 0; padding:13px 16px; border-radius:14px; text-align:center; font-size:14.5px; font-weight:700; color:#0a6b43; background:#e3f8ee; border:1px solid #b7ead3; opacity:1; transform:none; } .ap .contact-form-msg.is-visible{ display:block; } .ap .contact-form-msg.is-error{ color:#9b1c3b; background:#fde8ee; border-color:#f5b9c9; }
.ap .form-group.is-hidden{ display:none; }

@media (max-width:940px){ .ap-wrap{ grid-template-columns:minmax(0,1fr); max-width:720px; } .ap-side{ position:static; text-align:center; } .ap-pill{ margin:0 auto; } .ap-lead{ margin-left:auto; margin-right:auto; } .ap-steps, .ap-help{ display:none; } }
@media (max-width:760px){
  .ap{ padding:18px var(--gx,14px) 34px; } .ap-back{ margin-bottom:14px; padding:7px 13px; font-size:12.5px; } .ap-side h1{ font-size:clamp(26px,8vw,34px); margin:10px 0 9px; } .ap-role{ font-size:13.5px; padding:9px 14px; margin-bottom:10px; } .ap-lead{ font-size:13.2px; margin-bottom:4px; line-height:1.6; }
  .ap-card{ border-radius:22px; padding:16px; box-shadow:0 40px 70px -40px rgba(0,0,0,.85); } .ap-row{ grid-template-columns:minmax(0,1fr); } .ap-set legend{ font-size:15.5px; } .ap-set{ margin-bottom:18px; }
  .ap .apply-form .form-group input:not([type=file]), .ap .apply-form .form-group select, .ap .apply-form .form-group textarea{ font-size:16px; padding-top:12px; padding-bottom:12px; border-radius:13px; } .ap .upload-dropzone{ min-height:130px; } .ap .apply-submit{ font-size:15px; padding:15px 20px; }
}
@media (prefers-reduced-motion: reduce){ .ap *, .ap *::before, .ap *::after{ animation:none !important; } .ap-steps li{ opacity:1; } }
