:root{
  /* Palette from logo */
  --blue:#0a2cff;
  --blue2:#1b6bff;
  --red:#e31b23;
  --yellow:#ffd200;
  --green:#1fa15a;

  --bg1:#070a1a;
  --bg2:#0b1130;

  --card: rgba(255,255,255,.82);
  --card2: rgba(255,255,255,.72);
  --stroke: rgba(255,255,255,.18);
  --text:#0b1220;
  --muted:#51627a;
}

/* Animated gradient background */
body{
  min-height:100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  overflow-x:hidden;

  background:
    radial-gradient(900px 900px at 10% 10%, rgba(10,44,255,.25), transparent 60%),
    radial-gradient(800px 800px at 90% 30%, rgba(227,27,35,.18), transparent 60%),
    radial-gradient(900px 900px at 50% 90%, rgba(255,210,0,.14), transparent 60%),
    linear-gradient(120deg, var(--bg1), var(--bg2));
}

/* moving shimmer layer */
body::before{
  content:"";
  position:fixed;
  inset:-20%;
  background:
    linear-gradient(120deg,
      rgba(10,44,255,.10),
      rgba(227,27,35,.08),
      rgba(255,210,0,.08),
      rgba(31,161,90,.08),
      rgba(10,44,255,.10)
    );
  filter: blur(30px);
  opacity:.85;
  animation: floatBg 14s ease-in-out infinite;
  z-index:-1;
}
@keyframes floatBg{
  0%{ transform: translate3d(-2%, -2%, 0) rotate(0deg); }
  50%{ transform: translate3d(2%, 2%, 0) rotate(6deg); }
  100%{ transform: translate3d(-2%, -2%, 0) rotate(0deg); }
}

/* Header glass */
.header-fixed{
  position: sticky;
  top:0;
  z-index:1030;
  background: rgba(10,17,48,.55);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
}
.header-wrap{
  padding: 10px 0;
}
.brand-logo{
  width:56px;
  height:56px;
  object-fit:contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.35));
}
.header-title{
  color:#fff;
  line-height:1.12;
  text-align:center;
}
.header-title .h1{
  font-weight: 900;
  letter-spacing: .6px;
  margin:0;
  font-size: 1.18rem;
}
.header-title .h2{
  margin:4px 0 0 0;
  font-size:.92rem;
  opacity:.9;
}
.header-chip{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  color:#fff;
  font-weight: 800;
  margin-top: 8px;
}
.header-chip i{ color: var(--yellow); }

/* Main card - modern glass */
.card-shell{
  margin-top: 18px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow:
    0 24px 60px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.30);
  overflow:hidden;
}
.card-shell::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(135deg, rgba(10,44,255,.10), rgba(227,27,35,.06), rgba(255,210,0,.08));
  opacity:.8;
}
.card-inner{
  position:relative;
  padding: 18px;
}
@media (min-width: 768px){
  .card-inner{ padding: 26px; }
}

/* Section title */
.section-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 4px 0 14px 0;
}
.section-title .left{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 900;
}
.section-title .dot{
  width:10px;
  height:10px;
  border-radius:99px;
  background: linear-gradient(135deg, var(--red), var(--yellow));
  box-shadow: 0 0 0 6px rgba(227,27,35,.10);
}
.section-title small{
  color: var(--muted);
  font-weight: 700;
}

/* Modern inputs */
.form-label{
  font-weight: 800;
  color:#1a2a3a;
}
.form-control, .form-select{
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  padding: .72rem .85rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
  background: rgba(255,255,255,.92);
}
.form-control:focus, .form-select:focus{
  border-color: rgba(10,44,255,.45);
  box-shadow: 0 0 0 .22rem rgba(10,44,255,.14), 0 16px 32px rgba(0,0,0,.10);
  transform: translateY(-1px);
}
.form-text{ color: rgba(81,98,122,.9); font-weight:600; }

/* Input icon group */
.input-icon{
  position:relative;
}
.input-icon i{
  position:absolute;
  left:12px;
  top:50%;
  transform: translateY(-50%);
  color: rgba(10,44,255,.85);
}
.input-icon .form-control,
.input-icon .form-select{
  padding-left: 2.25rem;
}

/* Dividers */
.hr-soft{
  border-top: 1px solid rgba(15,23,42,.10);
  margin: 18px 0;
}

/* Parent blocks */
.block-wrap{
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
.block-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.badge-opt{
  font-size: .78rem;
  padding: .35rem .55rem;
  border-radius: 999px;
  background: rgba(10,44,255,.08);
  color: var(--blue);
  border: 1px solid rgba(10,44,255,.15);
  font-weight:800;
}

/* Buttons */
.btn{
  border-radius: 14px;
  font-weight: 900;
  letter-spacing: .2px;
  padding: .75rem 1.05rem;
  box-shadow: 0 14px 30px rgba(0,0,0,.14);
}
.btn-brand{
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  border: none;
  color:#fff;
}
.btn-brand:hover{ filter: brightness(.98); transform: translateY(-1px); }
.btn-accent{
  background: linear-gradient(135deg, var(--red), #ff4a4a);
  border:none;
  color:#fff;
}
.btn-accent:hover{ filter: brightness(.98); transform: translateY(-1px); }

/* Dropzone */
.dropzone{
  border:2px dashed rgba(10,44,255,.35);
  border-radius: 18px;
  padding: 16px;
  background: rgba(10,44,255,.05);
  text-align:center;
  cursor:pointer;
  transition: .15s ease;
}
.dropzone:hover{ background: rgba(10,44,255,.08); }
.dropzone strong{ color: rgba(10,44,255,.95); }

/* Footer */
.footer{
  margin: 18px 0 26px 0;
  padding: 14px 0;
  text-align:center;
  color: rgba(255,255,255,.82);
}
.footer .line{
  height:1px;
  background: rgba(255,255,255,.18);
  margin-bottom: 12px;
}

/* Animations */
.fade-up{
  opacity:0;
  transform: translateY(10px);
  animation: fadeUp .55s ease forwards;
}
.fade-up.delay-1{ animation-delay: .05s; }
.fade-up.delay-2{ animation-delay: .12s; }
.fade-up.delay-3{ animation-delay: .18s; }
@keyframes fadeUp{
  to{ opacity:1; transform: translateY(0); }
}

/* Signatory dropzones */
.sig-drop{
  border:2px dashed rgba(10,44,255,.35);
  border-radius: 18px;
  padding: 14px;
  background: rgba(10,44,255,.05);
  cursor:pointer;
  transition: .15s ease;
  text-align:center;
}
.sig-drop:hover{ background: rgba(10,44,255,.08); }
.sig-drop .hint{ color: rgba(81,98,122,.95); font-weight: 800; }
.sig-drop .sub{ color: rgba(81,98,122,.85); font-weight: 700; font-size: .92rem; }
.sig-preview{
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.85);
  padding: 8px;
}
.sig-preview img{
  max-height: 90px;
  max-width: 240px;
  display:block;
  margin: 0 auto;
}

