/* ============================================================
   Fliyon — application / document-hub / admin form styles
   Loaded after styles.css. Uses the same design tokens.
   ============================================================ */
.appwrap { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 980px) { .appwrap { grid-template-columns: 1.7fr .9fr; align-items: start; } }

.formcard {
  background: #fff; border: 1px solid rgba(20,28,52,.09); border-radius: 22px;
  padding: clamp(24px, 4vw, 44px); box-shadow: 0 24px 60px rgba(20,28,52,.07);
}
.form-progress { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.form-progress__bar { flex: 1; height: 8px; border-radius: 8px; background: #eef1f7; overflow: hidden; }
.form-progress__fill { height: 100%; width: 20%; background: linear-gradient(90deg, var(--blue), var(--gold)); transition: width .3s ease; }
.form-progress__label { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }

.fstep { display: none; }
.fstep.is-active { display: block; animation: fstepIn .25s ease; }
@keyframes fstepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fstep__title { font-family: 'Sora'; font-weight: 700; font-size: 20px; color: var(--navy); margin: 6px 0 4px; }
.fstep__hint { color: var(--muted); font-size: 14.5px; margin: 0 0 22px; }

.field { margin-bottom: 18px; }
.field > label { display: block; font-weight: 600; font-size: 14.5px; color: var(--navy); margin-bottom: 7px; }
.field .req { color: #d6457b; }
.field .opt { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.field input[type=text], .field input[type=email], .field input[type=tel],
.field select, .field textarea {
  width: 100%; padding: 13px 15px; font: inherit; color: var(--navy);
  background: #fbfcfe; border: 1px solid #d9deea; border-radius: 12px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,110,229,.14); background: #fff;
}
.field .note { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 18px; }
@media (min-width: 620px) { .grid2 { grid-template-columns: 1fr 1fr; } }

/* file upload */
.upload { position: relative; border: 1.5px dashed #c4cbdd; border-radius: 14px; padding: 16px; background: #fbfcfe; display: flex; align-items: center; gap: 14px; transition: border-color .15s, background .15s; }
.upload:hover { border-color: var(--blue); background: #f5f9ff; }
.upload input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload__icon { width: 40px; height: 40px; border-radius: 10px; background: #EAF2FE; color: var(--blue); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.upload__text { font-size: 14px; color: var(--muted); }
.upload__text strong { color: var(--navy); }
.upload__name { font-size: 13px; color: var(--blue); font-weight: 600; margin-top: 4px; }

.consent { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 14px; font-size: 14.5px; color: #46506a; line-height: 1.55; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }

.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.form-nav .spacer { flex: 1; }

.privacy-note { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-top: 14px; }

/* sticky sidebar */
.sidebar { position: sticky; top: 90px; }
.sidebar__card { background: var(--navy); border-radius: 20px; padding: 26px 24px; color: #fff; box-shadow: 0 24px 50px rgba(16,24,46,.28); position: relative; overflow: hidden; }
.sidebar__card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 100% 0%, rgba(0,110,229,.35), transparent 60%); }
.sidebar__card > * { position: relative; z-index: 1; }
.sidebar h3 { font-family: 'Sora'; font-weight: 700; font-size: 18px; margin: 0 0 16px; }
.sidebar__item { display: flex; gap: 11px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar__item:first-of-type { border-top: 0; }
.sidebar__item .ic { color: var(--gold); font-weight: 800; flex-shrink: 0; }
.sidebar__item h4 { margin: 0 0 3px; font-size: 14.5px; font-weight: 700; color: #fff; }
.sidebar__item p { margin: 0; font-size: 13px; color: #c9d2e6; line-height: 1.5; }
.sidebar__hub { background: #fff; border-radius: 16px; padding: 20px; margin-top: 16px; box-shadow: 0 14px 34px rgba(20,28,52,.08); }
.sidebar__hub h4 { margin: 0 0 6px; color: var(--navy); font-size: 15px; }
.sidebar__hub p { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.55; }

.alert { padding: 13px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 14.5px; }
.alert--error { background: #fdecec; border: 1px solid #f4c2c2; color: #a1252c; }
.alert--ok { background: #e7f7ee; border: 1px solid #bfe6cd; color: #1c7a45; }
