/* KOZMOTIP FORM / RESULT — celestial glass over responsive motion background */
.content-video-screen{
  position:relative;
  isolation:isolate;
  min-height:100svh;
  overflow:hidden;
  background:#030814;
}
.content-bg-video{
  position:fixed;
  inset:0;
  z-index:-3;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  background:#030814;
  pointer-events:none;
}
.content-bg-shade{
  position:fixed;
  inset:0;
  z-index:-2;
  background:
    linear-gradient(180deg,rgba(2,7,18,.30),rgba(2,7,18,.58)),
    radial-gradient(circle at 50% 20%,rgba(34,78,128,.10),transparent 48%);
  pointer-events:none;
}
.content-bg-shade-result{
  background:
    linear-gradient(180deg,rgba(2,7,18,.30),rgba(2,7,18,.56)),
    linear-gradient(90deg,rgba(0,0,0,.10),transparent 16%,transparent 84%,rgba(0,0,0,.10));
}
.form-screen{
  padding:42px 18px;
}
.form-screen .form-card,
.result-screen .result-wrap{
  position:relative;
  z-index:1;
}
.form-screen .form-card{
  width:min(760px,94vw);
  padding:clamp(28px,4vw,46px);
  border:1px solid rgba(242,190,111,.48);
  border-radius:28px;
  background:linear-gradient(180deg,rgba(5,15,31,.78),rgba(2,8,18,.86));
  box-shadow:
    inset 0 0 0 1px rgba(255,229,188,.06),
    0 20px 60px rgba(0,0,0,.44),
    0 0 26px rgba(229,160,65,.10);
  backdrop-filter:blur(13px) saturate(1.08);
  -webkit-backdrop-filter:blur(13px) saturate(1.08);
}
.form-screen .eyebrow{
  margin:0;
  color:#e7b86f;
  font-family:"Bodoni MT","Didot","Times New Roman",serif;
  font-size:13px;
  letter-spacing:.25em;
}
.form-screen .form-card h2{
  margin:0 0 8px;
  font-family:"Bodoni MT","Didot","Times New Roman",serif;
  font-size:clamp(34px,4vw,50px);
  font-weight:400;
  letter-spacing:.02em;
  color:#fff2da;
  text-shadow:0 0 12px rgba(236,176,88,.20);
}
.form-screen .form-card label:not(.check){
  color:#f1ddbb;
  font-weight:600;
  gap:9px;
}
.form-screen .form-card input:not([type="checkbox"]),
.form-screen .form-card select{
  min-height:54px;
  border:1.5px solid rgba(239,188,108,.72);
  border-radius:16px;
  padding:14px 16px;
  background:linear-gradient(180deg,rgba(12,30,53,.96),rgba(4,11,23,.98));
  color:#fff5e5;
  box-shadow:
    inset 0 0 0 1px rgba(255,232,194,.06),
    inset 0 -8px 18px rgba(0,0,0,.22),
    0 0 0 1px rgba(255,170,67,.06),
    0 5px 14px rgba(0,0,0,.20);
  transition:border-color .18s ease,box-shadow .18s ease,filter .18s ease;
}
.form-screen .form-card input:not([type="checkbox"]):focus,
.form-screen .form-card select:focus{
  border-color:#ffd696;
  box-shadow:
    inset 0 0 0 1px rgba(255,237,205,.10),
    0 0 0 3px rgba(239,178,85,.12),
    0 0 18px rgba(230,158,61,.18);
  filter:brightness(1.04);
}
.form-screen .form-card input::placeholder{color:rgba(235,218,191,.48)}
.form-screen .check{
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  column-gap:12px;
  row-gap:0;
  align-items:start;
  color:#e9dfcf;
  font-weight:500;
  line-height:1.55;
}
.form-screen .check span{
  display:block;
  min-width:0;
  padding-top:0;
}
.form-screen .check input{
  appearance:none;
  -webkit-appearance:none;
  width:20px;
  height:20px;
  margin:2px 0 0 0;
  justify-self:start;
  border:1px solid rgba(239,188,108,.76);
  border-radius:6px;
  background:rgba(7,18,34,.92);
  box-shadow:inset 0 0 0 1px rgba(255,228,181,.05);
  cursor:pointer;
}
.form-screen .check input:checked{
  background:radial-gradient(circle at 50% 45%,#ffe6b4 0 26%,#d8943d 30% 58%,#6a3f16 62% 100%);
  box-shadow:0 0 9px rgba(230,157,60,.30);
}
.form-screen .primary,
.result-screen .primary{
  position:relative;
  min-height:60px;
  margin-top:4px;
  border:1.5px solid rgba(255,207,133,.96);
  border-radius:999px;
  padding:0 38px;
  background:radial-gradient(circle at 50% 0%,rgba(34,59,94,.95),rgba(10,24,44,.98) 40%,rgba(3,8,18,.995) 100%);
  color:#fff0d4;
  font-family:"Bodoni MT","Didot","Times New Roman",serif;
  font-size:clamp(16px,1.35vw,20px);
  font-weight:400;
  letter-spacing:.12em;
  text-indent:.12em;
  box-shadow:
    inset 0 0 0 2px rgba(111,61,20,.58),
    inset 0 1px 0 rgba(255,244,220,.24),
    0 0 0 1px rgba(255,180,76,.20),
    0 0 12px rgba(255,174,63,.30),
    0 8px 22px rgba(0,0,0,.34);
  text-shadow:0 1px 0 rgba(0,0,0,.9),0 0 7px rgba(255,205,143,.35);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,filter .18s ease;
}
.form-screen .primary:hover:not(:disabled),
.result-screen .primary:hover:not(:disabled){
  transform:translateY(-1px);
  border-color:#ffe0aa;
  filter:brightness(1.07);
  box-shadow:
    inset 0 0 0 2px rgba(124,67,20,.66),
    inset 0 1px 0 rgba(255,249,236,.30),
    0 0 0 1px rgba(255,193,101,.28),
    0 0 18px rgba(255,184,74,.40),
    0 10px 24px rgba(0,0,0,.38);
}
.form-screen .primary:disabled{opacity:.56;filter:saturate(.7);cursor:not-allowed}
.form-screen .error{color:#ffb0a7;font-weight:600}

.result-screen{
  padding-top:26px;
  padding-bottom:72px;
}
.result-screen .result-wrap{
  width:min(920px,100%);
}
.result-screen .avatar-wrap{
  position:sticky;
  top:18px;
  z-index:8;
  isolation:isolate;
  width:188px;
  height:188px;
  aspect-ratio:1/1;
  margin:0 auto 34px;
  padding:6px;
  border-radius:24px;
  background:linear-gradient(145deg,rgba(255,235,194,.98),rgba(192,116,33,.94) 34%,rgba(74,160,226,.82) 66%,rgba(255,203,111,.98));
  box-shadow:
    0 0 0 1px rgba(255,229,183,.46),
    0 0 18px rgba(255,189,86,.80),
    0 0 38px rgba(255,147,34,.34),
    0 16px 42px rgba(0,0,0,.58);
  overflow:visible;
  animation:avatarFramePulse 3.4s ease-in-out infinite;
}
.result-screen .avatar-wrap::before{
  content:"";
  position:absolute;
  inset:-7px;
  z-index:-1;
  border-radius:30px;
  background:conic-gradient(from 0deg,
    rgba(255,213,132,0) 0deg,
    rgba(255,232,179,.92) 38deg,
    rgba(94,180,255,.78) 92deg,
    rgba(255,177,63,.98) 146deg,
    rgba(255,213,132,0) 205deg,
    rgba(112,191,255,.70) 264deg,
    rgba(255,220,153,.96) 322deg,
    rgba(255,213,132,0) 360deg);
  filter:blur(7px);
  opacity:.66;
  animation:avatarAuraSpin 7s linear infinite;
}
.result-screen .avatar-wrap::after{
  content:"";
  position:absolute;
  inset:4px;
  pointer-events:none;
  border-radius:19px;
  border:1px solid rgba(255,246,224,.40);
  box-shadow:inset 0 0 22px rgba(255,213,147,.14);
}
.result-screen .avatar-wrap img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  border-radius:18px;
  box-shadow:none;
  pointer-events:none;
}
.result-screen .avatar-wrap.sprite-avatar{
  background-size:600% 400%;
  border-radius:24px;
}
.result-screen .avatar-fallback{
  width:100%;
  height:100%;
  min-height:0;
  border-radius:18px;
  padding:10px;
  font-size:14px;
  line-height:1.25;
  border:0;
  box-shadow:none;
}
@keyframes avatarFramePulse{
  0%,100%{box-shadow:0 0 0 1px rgba(255,229,183,.42),0 0 14px rgba(255,189,86,.62),0 0 30px rgba(255,147,34,.24),0 14px 38px rgba(0,0,0,.50)}
  50%{box-shadow:0 0 0 1px rgba(255,239,205,.66),0 0 26px rgba(255,205,121,.94),0 0 54px rgba(77,170,255,.30),0 18px 44px rgba(0,0,0,.56)}
}
@keyframes avatarAuraSpin{to{transform:rotate(360deg)}}

.result-screen .result-text{
  position:relative;
  z-index:1;
  background:transparent;
  border:0;
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  padding:12px 8px 28px;
}
.result-screen .result-text h1,
.result-screen .result-text h2,
.result-screen .result-text p{
  text-shadow:0 2px 5px rgba(0,0,0,.95),0 0 10px rgba(0,0,0,.72);
}
.result-screen .result-text h1,
.result-screen .result-text h2{
  color:#fff4df;
}
.result-screen .result-text p{
  color:#f3f5fb;
}
.result-screen .feedback-card{
  background:linear-gradient(180deg,rgba(3,10,22,.76),rgba(2,7,16,.84));
  border-color:rgba(239,188,108,.28);
  backdrop-filter:blur(12px) saturate(1.06);
  -webkit-backdrop-filter:blur(12px) saturate(1.06);
}

@media(max-width:767px){
  .content-bg-video{object-position:center center}
}
@media(min-width:768px){
  .content-bg-video{object-position:center 48%}
}
@media(max-width:640px){
  .form-screen{padding:74px 12px 28px}
  .form-screen .form-card{width:100%;padding:24px 17px;border-radius:22px;gap:15px}
  .form-screen .form-card h2{font-size:34px}
  .form-screen .form-card input:not([type="checkbox"]),
  .form-screen .form-card select{min-height:52px;font-size:16px}
  .form-screen .check{grid-template-columns:26px minmax(0,1fr);column-gap:10px}
  .form-screen .primary,
  .result-screen .primary{min-height:56px;padding:0 22px;font-size:15px;letter-spacing:.08em;text-indent:.08em}
  .result-screen{padding-top:18px;padding-left:12px;padding-right:12px}
  .result-screen .avatar-wrap{top:12px;width:136px;height:136px;margin-bottom:26px;padding:5px;border-radius:19px}
  .result-screen .avatar-wrap::before{inset:-5px;border-radius:24px;filter:blur(6px)}
  .result-screen .avatar-wrap::after{border-radius:14px}
  .result-screen .avatar-wrap img,.result-screen .avatar-fallback{border-radius:14px}
  .result-screen .result-text{padding:8px 4px 24px}
  .content-bg-shade-result{background:linear-gradient(180deg,rgba(2,7,18,.34),rgba(2,7,18,.60))}
}
@media(max-width:380px){
  .result-screen .avatar-wrap{width:122px;height:122px;margin-bottom:22px}
}
@media(prefers-reduced-motion:reduce){
  .result-screen .avatar-wrap,
  .result-screen .avatar-wrap::before{animation:none}
}
