:root{
  --page-bg: #ffffff;
  --page-accent: #f5f8fb;
  --page-accent-2: #eef3f8;

  --card: #ffffff;
  --card-soft: #f9fbfd;

  --text: #14212f;
  --muted: #637487;
  --muted-2: #8a98a8;

  --border: rgba(20, 33, 47, 0.10);
  --border-strong: rgba(20, 33, 47, 0.16);

  --shadow: 0 18px 48px rgba(18, 31, 45, 0.08);
  --shadow-soft: 0 10px 24px rgba(18, 31, 45, 0.06);
  --shadow-hover: 0 16px 36px rgba(18, 31, 45, 0.10);

  --primary: #2f4558;
  --primary-2: #536877;
  --primary-soft: rgba(47, 69, 88, 0.10);
  --primary-soft-2: rgba(47, 69, 88, 0.16);

  --success: #157a5c;
  --success-soft: rgba(21, 122, 92, 0.12);

  --danger: #c81e1e;
  --danger-soft: rgba(200, 30, 30, 0.12);

  --ring: rgba(47, 69, 88, 0.18);

  --radius: 22px;
  --radius-2: 16px;
  --radius-3: 12px;
  --maxw: 980px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(83,104,119,.08), rgba(83,104,119,0) 55%),
    radial-gradient(800px 360px at 100% 0%, rgba(47,69,88,.06), rgba(47,69,88,0) 48%),
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.page{
  width:100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 16px 40px;
}

.hero{
  color: var(--text);
  padding: 4px 4px 18px;
}

.hero__inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.brand{
  display:flex;
  gap: 16px;
  align-items:center;
}

.brand__logo{
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
}

.brand__title{
  margin: 0;
  font-size: 22px;
  letter-spacing: .1px;
  color: var(--primary);
}

.brand__subtitle{
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  max-width: 560px;
}

.badge{
  align-self:flex-start;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(47,69,88,.10);
  background: rgba(255,255,255,.9);
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.formShell{
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(20,33,47,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.form{
  padding: 20px 16px 18px;
}

.topBar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.stepper{
  flex: 1;
  min-width: 240px;
}

.stepper__progress{
  height: 8px;
  border-radius: 999px;
  background: #edf3f7;
  border: 1px solid rgba(47,69,88,.08);
  overflow:hidden;
  margin-bottom: 12px;
}

.stepper__progressFill{
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #6a7f8f);
  transition: width 220ms ease;
}

.stepper__list{
  display:flex;
  list-style:none;
  padding:0;
  margin:0;
  gap: 10px;
  justify-content:flex-start;
}

.stepper__step{
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(20,33,47,.12);
  background: #ffffff;
  color: rgba(20,33,47,.68);
  font-weight: 800;
  font-size: 12px;
  position: relative;
  box-shadow: 0 4px 10px rgba(18,31,45,.04);
}

.stepper__step.is-active{
  border-color: rgba(47,69,88,.26);
  background: rgba(47,69,88,.08);
  color: var(--primary);
}

.stepper__step.is-done{
  border-color: rgba(21,122,92,.22);
  background: rgba(21,122,92,.10);
  color: var(--success);
}

.stepMeta{
  text-align:right;
}

.stepMeta__label{
  font-size: 12px;
  color: var(--muted);
}

.stepMeta__value{
  font-weight: 900;
  font-size: 14px;
  color: var(--primary);
}

.formErrors{
  margin: 6px 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--danger-soft);
  border: 1px solid rgba(200,30,30,.16);
  color: var(--danger);
  font-weight: 700;
}

.step{
  border-radius: var(--radius-2);
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border: 1px solid rgba(20,33,47,.07);
  padding: 18px 14px;
  box-shadow: 0 6px 18px rgba(18,31,45,.03);
}

.sectionHeader__title{
  margin: 0 0 6px;
  font-size: 19px;
  letter-spacing: .15px;
  color: var(--primary);
}

.sectionHeader__subtitle{
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.field{
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.field--full{
  grid-column: 1 / -1;
}

.field--date{
  cursor: pointer;
}

label{
  font-size: 13px;
  font-weight: 800;
  color: rgba(20,33,47,.92);
  letter-spacing: .1px;
}

input, select, textarea{
  width:100%;
  border-radius: 14px;
  border: 1px solid rgba(20,33,47,.12);
  background: #ffffff;
  padding: 13px 14px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition:
    box-shadow 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

textarea{
  resize: vertical;
  min-height: 110px;
}

input::placeholder,
textarea::placeholder{
  color: #9aa7b5;
}

input:focus, select:focus, textarea:focus{
  border-color: rgba(47,69,88,.28);
  box-shadow: 0 0 0 4px var(--ring);
  background: #ffffff;
}

input.invalid, select.invalid, textarea.invalid{
  border-color: rgba(200,30,30,.40);
  box-shadow: 0 0 0 4px rgba(200,30,30,.10);
}

.field-hint{
  margin-top: -2px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.field-error{
  min-height: 16px;
  font-size: 12px;
  color: var(--danger);
  font-weight: 700;
}

.req{
  color: var(--primary);
  font-weight: 900;
}

.hint{
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  margin-left: 6px;
}

.consent{
  margin-top: 14px;
}

.check{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(20,33,47,.08);
  background: #f9fbfd;
}

.check input{
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.check label{
  font-size: 13px;
  font-weight: 600;
  color: rgba(20,33,47,.86);
  line-height: 1.4;
  cursor: pointer;
}

.radioRow{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

.radioGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.radio{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(20,33,47,.10);
  background: #ffffff;
  cursor:pointer;
  user-select: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background-color 160ms ease;
}

.radio:hover{
  border-color: rgba(47,69,88,.18);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.radio:has(input:checked){
  border-color: rgba(47,69,88,.34);
  background: rgba(47,69,88,.06);
  box-shadow: 0 10px 20px rgba(18,31,45,.06);
}

.radio input{
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--primary);
}

.radio__label{
  font-size: 13px;
  font-weight: 800;
  color: rgba(20,33,47,.90);
  cursor: pointer;
}

.note{
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(47,69,88,.10);
  background: rgba(47,69,88,.05);
  color: rgba(20,33,47,.82);
  font-weight: 650;
  font-size: 13px;
  line-height: 1.45;
}

.dropzone{
  margin-top: 8px;
  border-radius: 18px;
  border: 1.5px dashed rgba(47,69,88,.22);
  background: linear-gradient(180deg, #fbfdff, #f5f9fc);
  padding: 16px 14px;
  display:flex;
  gap: 14px;
  align-items:center;
  justify-content:space-between;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dropzone:hover{
  border-color: rgba(47,69,88,.34);
  box-shadow: var(--shadow-soft);
}

.dropzone:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
}

.dropzone__icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(47,69,88,.12);
  background: rgba(47,69,88,.08);
  position: relative;
}

.dropzone__icon:after{
  content:"";
  position:absolute;
  left: 13px;
  top: 14px;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--primary);
  clip-path: polygon(50% 0%, 100% 40%, 80% 100%, 20% 100%, 0% 40%);
}

.dropzone__text{
  flex: 1;
  min-width: 180px;
}

.dropzone__title{
  font-size: 15px;
  font-weight: 900;
  color: var(--primary);
}

.dropzone__sub{
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
}

.linkBtn{
  border:none;
  background: rgba(47,69,88,.08);
  color: var(--primary);
  font-weight: 900;
  padding: 10px 14px;
  border-radius: 999px;
  cursor:pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.linkBtn:hover{
  background: rgba(47,69,88,.14);
}

.linkBtn:focus-visible{
  outline:none;
  box-shadow: 0 0 0 4px var(--ring);
}

.srOnly{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

.previews{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.previewCard{
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(20,33,47,.10);
  background: #ffffff;
  overflow:hidden;
  box-shadow: var(--shadow-soft);
}

.previewCard img{
  width: 100%;
  height: 110px;
  object-fit: cover;
  display:block;
  background: rgba(0,0,0,.04);
}

.previewCard__meta{
  padding: 10px 10px;
}

.previewCard__name{
  font-size: 12px;
  font-weight: 800;
  color: rgba(20,33,47,.88);
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.previewCard__sub{
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 650;
}

.previewCard__remove{
  position:absolute;
  top: 8px;
  right: 8px;
  border:none;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(20,33,47,.70);
  color: white;
  font-weight: 900;
  cursor:pointer;
}

.previewCard__remove:focus-visible{
  outline:none;
  box-shadow: 0 0 0 4px rgba(255,255,255,.35);
}

.uploadActions{
  margin-top: 12px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.uploadHint{
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
}

.form-nav{
  margin-top: 18px;
  display:flex;
  gap: 10px;
  justify-content:space-between;
  align-items:center;
  padding-top: 8px;
}

.primaryBtn{
  flex: 1;
  border: none;
  border-radius: 16px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .1px;
  cursor: pointer;
  color: white;
  background: linear-gradient(180deg, var(--primary), #223547);
  box-shadow: 0 10px 22px rgba(47,69,88,.18);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.primaryBtn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(47,69,88,.22);
}

.primaryBtn:focus-visible{
  outline:none;
  box-shadow: 0 0 0 4px var(--ring), 0 14px 26px rgba(47,69,88,.22);
}

.primaryBtn:disabled{
  cursor:not-allowed;
  opacity: .55;
}

.ghostBtn{
  flex: 1;
  border-radius: 16px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 800;
  background: #ffffff;
  border: 1px solid rgba(20,33,47,.12);
  cursor:pointer;
  color: rgba(20,33,47,.88);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ghostBtn:hover{
  border-color: rgba(47,69,88,.20);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.ghostBtn:disabled{
  cursor:not-allowed;
  opacity: .55;
}

.finePrint{
  margin: 12px 2px 2px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.45;
}

.successPanel{
  padding: 20px 16px 20px;
}

.successPanel__card{
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border: 1px solid rgba(21,122,92,.16);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
}

.successPanel__titleRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.successPanel__title{
  margin:0;
  font-size: 19px;
  color: var(--primary);
}

.successPanel__check{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(21,122,92,.10);
  border: 1px solid rgba(21,122,92,.20);
  position:relative;
}

.successPanel__check:after{
  content:"";
  position:absolute;
  left: 12px;
  top: 14px;
  width: 16px;
  height: 10px;
  border-left: 4px solid rgba(21,122,92,1);
  border-bottom: 4px solid rgba(21,122,92,1);
  transform: rotate(-45deg);
}

.successPanel__subtitle{
  margin: 10px 0 10px;
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
  line-height: 1.45;
}

.payload{
  background: rgba(47,69,88,.05);
  border: 1px solid rgba(47,69,88,.12);
  padding: 12px 12px;
  border-radius: 14px;
  overflow:auto;
  max-height: 220px;
  font-size: 12px;
  line-height: 1.5;
}

.successPanel__actions{
  margin-top: 12px;
}

.footer{
  padding: 12px 6px 0;
  color: var(--muted-2);
  font-size: 12px;
}

.footer__inner{
  display:flex;
  justify-content:center;
  text-align:center;
}

.footer__muted{
  margin: 0 2px;
}

@media (min-width: 720px){
  .page{ padding: 34px 20px 48px; }
  .form{ padding: 22px 20px 20px; }
  .grid{ grid-template-columns: 1fr 1fr; }
  .radioGrid{ grid-template-columns: 1fr 1fr 1fr; }
  .previews{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}