/* Hamubere Digital Academy — refined application experience */
:root {
  --app-navy-950: #04162c;
  --app-navy-900: #08294f;
  --app-navy-800: #0b315c;
  --app-navy-700: #174b7c;
  --app-orange-600: #e85f17;
  --app-orange-500: #f27632;
  --app-orange-100: #fff1e8;
  --app-ink: #10213a;
  --app-muted: #637189;
  --app-line: #dfe6ef;
  --app-danger: #c93636;
}

.application-page-wrapper {
  position: relative;
  min-height: 100vh;
  padding: 5.9rem 1.5rem 4.5rem;
  overflow: hidden;
  background: radial-gradient(circle at 7% 14%, rgba(242,118,50,.11), transparent 25rem), radial-gradient(circle at 94% 68%, rgba(11,49,92,.1), transparent 30rem), linear-gradient(180deg, #fbfcfe 0%, #f4f7fb 56%, #fbfcfe 100%);
}

.app-bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .38;
  background-image: linear-gradient(rgba(11,49,92,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(11,49,92,.045) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%);
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

.app-bg-glow-1, .app-bg-glow-2 { position: absolute; border-radius: 999px; pointer-events: none; }
.app-bg-glow-1 { top: 15rem; left: -9rem; width: 24rem; height: 24rem; border: 1px solid rgba(242,118,50,.15); }
.app-bg-glow-2 { right: -12rem; bottom: 6rem; width: 32rem; height: 32rem; border: 1px solid rgba(11,49,92,.12); }
.app-container { position: relative; z-index: 1; width: min(100%, 1120px); margin: 0 auto; }

/* Page introduction */
.app-header-block { width: min(100%, 700px); margin: 0 auto 2.35rem; text-align: center; animation: appFadeUp .55s ease both; }
.app-kicker-badge { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: .9rem; padding: .42rem .8rem; border: 1px solid rgba(232,95,23,.2); border-radius: 999px; background: rgba(255,241,232,.8); color: #bd480b; font-size: .69rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.app-kicker-badge > span { width: 7px; height: 7px; border-radius: 50%; background: var(--app-orange-500); box-shadow: 0 0 0 4px rgba(242,118,50,.13); }
.app-main-title { margin: 0; color: var(--app-navy-950); font-family: 'Space Grotesk', sans-serif; font-size: clamp(2.35rem, 5vw, 3.6rem); font-weight: 750; letter-spacing: -.055em; line-height: 1.04; }
.app-main-title span { color: var(--app-orange-600); }
.app-sub-title { max-width: 620px; margin: .9rem auto 0; color: var(--app-muted); font-size: .98rem; line-height: 1.7; }
.app-header-meta { display: flex; justify-content: center; gap: 1.4rem; margin-top: 1.15rem; color: #45556e; font-size: .76rem; font-weight: 650; }
.app-header-meta > span { display: inline-flex; align-items: center; gap: .4rem; }
.app-header-meta svg { width: 15px; height: 15px; color: var(--app-navy-700); }

/* Main card and progress */
.app-card { position: relative; overflow: hidden; border: 1px solid #ced9e5; border-top: 4px solid var(--app-navy-800); border-radius: 0; background: #fff; box-shadow: 0 26px 70px -34px rgba(4,22,44,.42), 0 7px 20px rgba(4,22,44,.06); animation: appFadeUp .62s .08s ease both; }
.app-card, .app-card * { border-radius: 0 !important; }
.app-stepper-wrap { position: relative; padding: .9rem 2.25rem .85rem; border-bottom: 1px solid var(--app-line); background: #f9fbfd; }
.app-progress-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.app-progress-kicker { display: block; margin-bottom: .16rem; color: var(--app-muted); font-size: .65rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.app-progress-heading p { margin: 0; color: var(--app-navy-950); font-family: 'Space Grotesk', sans-serif; font-size: .82rem; font-weight: 700; }
.app-progress-percent { display: inline-flex; align-items: center; gap: .38rem; padding: 0; border: 0; background: transparent; color: var(--app-navy-700); font-size: .64rem; font-weight: 800; }
.app-progress-percent svg { width: 14px; height: 14px; color: var(--app-orange-600); }
.app-stepper { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.app-stepper-line-track { position: absolute; z-index: 0; top: 15px; left: 12.5%; right: 12.5%; height: 1px; overflow: hidden; background: #d1dbe6; pointer-events: none; }
.app-stepper-line-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--app-navy-700), var(--app-orange-500)); transition: width .4s ease; }
.app-step-item, button.app-step-item { position: relative; z-index: 1; display: flex; min-width: 0; flex-direction: column; align-items: center; padding: 0 .35rem; border: 0; border-radius: 0 !important; background: transparent; color: inherit; font: inherit; text-align: center; cursor: pointer; }
.app-step-circle { display: grid; width: 30px; height: 30px; place-items: center; flex: 0 0 auto; border: 1px solid #cbd6e2; background: #fff; color: #718096; box-shadow: 0 0 0 4px #f9fbfd; font-family: 'Space Grotesk', sans-serif; font-size: .7rem; font-weight: 750; transition: border-color .25s, background .25s, color .25s, transform .25s, box-shadow .25s; }
.app-step-copy { display: flex; min-width: 0; flex-direction: column; margin-top: .36rem; }
.app-step-label { color: #596980; font-size: .69rem; font-weight: 750; line-height: 1.2; transition: color .2s; }
.app-step-detail { margin-top: .16rem; color: #98a3b3; font-size: .64rem; line-height: 1.25; }
.app-step-item.active .app-step-circle { border-color: var(--app-orange-500); background: var(--app-orange-500); color: #fff; box-shadow: 0 0 0 4px var(--app-orange-100); transform: none; }
.app-step-item.active .app-step-label { color: var(--app-orange-600); }
.app-step-item.completed .app-step-circle { border-color: var(--app-navy-800); background: var(--app-navy-800); color: #fff; box-shadow: 0 0 0 4px #eaf0f6; }
.app-step-item.completed .app-step-label { color: var(--app-navy-800); }
.app-step-circle svg { width: 14px; height: 14px; stroke-width: 2.8; animation: appCheckPop .28s ease both; }
.app-step-item:focus-visible { outline: 3px solid rgba(242,118,50,.25); outline-offset: 5px; }

/* Content and guidance panel */
.app-card-body { display: grid; grid-template-columns: 278px minmax(0, 1fr); min-height: 535px; }
.app-form-aside { position: relative; display: flex; overflow: hidden; flex-direction: column; justify-content: space-between; padding: 2.35rem 1.8rem 2rem; background: radial-gradient(circle at 15% 15%, rgba(255,255,255,.09), transparent 13rem), linear-gradient(155deg, var(--app-navy-800), var(--app-navy-950)); color: #fff; }
.app-form-aside::after { content: ''; position: absolute; right: -6rem; bottom: -7rem; width: 16rem; height: 16rem; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 38px rgba(255,255,255,.025), 0 0 0 76px rgba(255,255,255,.018); }
.app-form-aside::after, .app-category-card::after { border-radius: 0; }
.app-form-aside > * { position: relative; z-index: 1; }
.app-aside-label { display: inline-block; margin-bottom: .8rem; color: #ffc7a8; font-size: .65rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.app-form-aside h2 { margin: 0; color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 1.72rem; font-weight: 700; letter-spacing: -.035em; line-height: 1.15; }
.app-form-aside > div:first-child p { margin: 1rem 0 0; color: #b8c9da; font-size: .8rem; line-height: 1.65; }
.app-aside-benefits { display: grid; gap: 1.15rem; margin: 2.3rem 0; }
.app-aside-benefit { display: grid; grid-template-columns: 31px 1fr; gap: .75rem; align-items: start; }
.app-aside-benefit > span { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.07); color: #ffab7d; }
.app-aside-benefit svg { width: 15px; height: 15px; }
.app-aside-benefit strong { display: block; color: #f7fbff; font-size: .77rem; }
.app-aside-benefit small { display: block; margin-top: .18rem; color: #9fb2c7; font-size: .67rem; line-height: 1.45; }
.app-aside-help { padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); }
.app-aside-help > span { display: block; color: #9fb2c7; font-size: .66rem; }
.app-aside-help a { display: inline-flex; align-items: center; gap: .35rem; margin-top: .35rem; color: #fff; font-size: .72rem; font-weight: 700; }
.app-aside-help a:hover { color: #ffc7a8; }
#applicationForm { min-width: 0; padding: 2.25rem clamp(2rem, 4vw, 3.35rem) 2.15rem; }
.app-form-wrapper { position: relative; min-height: 410px; }
.app-step-panel { display: none; opacity: 0; transform: translateY(8px); }
.app-step-panel.active { display: block; opacity: 1; transform: translateY(0); animation: appPanelIn .32s ease both; }

/* Step heading */
.app-section-head { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: .85rem; align-items: start; margin-bottom: 1.55rem; padding-bottom: 1.15rem; border-bottom: 1px solid #e4eaf1; }
.app-section-number { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #cdd9e5; border-left: 3px solid var(--app-orange-500); background: #f6f9fc; color: var(--app-navy-800); font-family: 'Space Grotesk', sans-serif; font-size: .7rem; font-weight: 800; }
.app-section-heading { display: block; margin: 0; color: var(--app-navy-950); font-family: 'Space Grotesk', sans-serif; font-size: 1.45rem; font-weight: 720; letter-spacing: -.03em; line-height: 1.15; }
.app-section-heading .step-accent { color: var(--app-orange-600); }
.app-section-description { margin: .34rem 0 0; color: var(--app-muted); font-size: .78rem; line-height: 1.5; }

/* Fields */
.app-fields-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.15rem 1.1rem; }
.app-program-details-grid { margin-bottom: 1.2rem; }
.app-field-span-full { grid-column: 1 / -1; }
.app-fields-grid > .app-form-group { margin-bottom: 0; }
.app-form-group { margin-bottom: 1.25rem; }
.app-form-group.half-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.1rem; }
.app-label { display: block; margin-bottom: .47rem; color: #253750; font-size: .76rem; font-weight: 720; line-height: 1.4; }
.app-label .required { margin-left: 2px; color: var(--app-orange-600); }
.app-input-wrap { position: relative; }
.phone-input-wrap { display: flex; align-items: stretch; }
.phone-dial-code { display: flex; min-width: 58px; align-items: center; justify-content: center; padding: 0 .75rem; border: 1px solid #ced9e4; border-right: 0; background: #f4f7fb; color: #253750; font-size: .82rem; font-weight: 700; }
.phone-input-wrap .app-input { min-width: 0; }
.app-input, .app-select, .app-textarea { width: 100%; border: 1px solid #ced9e4; outline: 0; background: #fff; color: #14263f; font-family: 'Inter', sans-serif; font-size: .82rem; transition: border-color .2s, box-shadow .2s, background .2s; }
.app-input, .app-select { min-height: 46px; padding: .68rem .88rem; }
.app-textarea { min-height: 104px; padding: .8rem .9rem; line-height: 1.55; resize: vertical; }
.app-input::placeholder, .app-textarea::placeholder { color: #9aa6b6; }
.app-input:hover, .app-select:hover, .app-textarea:hover { border-color: #aebdcd; background: #fff; }
.app-input:focus, .app-select:focus, .app-textarea:focus { border-color: var(--app-navy-700); background: #fff; box-shadow: inset 3px 0 0 var(--app-orange-500), 0 0 0 3px rgba(23,75,124,.07); }
.app-input.is-invalid, .app-select.is-invalid, .app-textarea.is-invalid { border-color: var(--app-danger) !important; background: #fffafa !important; box-shadow: 0 0 0 4px rgba(201,54,54,.08) !important; animation: appShake .3s ease; }
.app-select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235d6c80' stroke-width='2' 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 .9rem center; background-size: 15px; cursor: pointer; }
#applicant_type { padding-right: 3rem; background-image: none; }
.app-select-control-icon { position: absolute; top: 23px; right: 14px; display: grid; width: 22px; height: 22px; place-items: center; border-left: 1px solid #d8e1ea; color: var(--app-navy-700); pointer-events: none; transform: translateY(-50%); transition: color .2s ease; }
.app-select-control-icon svg { width: 15px; height: 15px; margin-left: 7px; }
#applicant_type:focus + .app-select-control-icon { color: var(--app-orange-600); }
.app-input-hint { margin-top: .35rem; color: #78869a; font-size: .67rem; }
.app-input-error { display: none; margin-top: .38rem; color: var(--app-danger); font-size: .69rem; font-weight: 600; }
.is-invalid + .app-input-error, .app-input-wrap.has-error .app-input-error { display: block; }

/* Flag images use the country catalogue's code or custom flag path. */
.country-picker [hidden] { display: none !important; }
.country-picker-toggle { display: flex; align-items: center; gap: .7rem; text-align: left; font-weight: 400; }
.country-picker-toggle > span { min-width: 0; overflow-wrap: anywhere; }
.country-picker:not(.has-selection) .country-picker-toggle > span { color: #78869a; }
.country-picker .country-flag { display: inline-block; width: 24px; height: 18px; flex: 0 0 24px; object-fit: contain; border: 1px solid #dce5ef; }
.country-picker.has-error .country-picker-toggle { border-color: var(--app-danger); background-color: #fffafa; }
.country-picker-toggle:focus-visible { outline: 2px solid var(--app-navy-700); outline-offset: 2px; }
.country-picker-panel { position: absolute; z-index: 30; top: calc(100% + 5px); left: 0; right: 0; padding: .5rem; border: 1px solid #b6c7d8; background: #fff; box-shadow: 0 12px 30px rgba(4,22,44,.18); }
.country-picker.opens-up .country-picker-panel { top: auto; bottom: calc(100% + 5px); }
.country-picker-search { width: 100%; min-height: 40px; padding: .55rem .65rem; border: 1px solid #ced9e4; outline: 0; font: inherit; font-size: .8rem; }
.country-picker-search:focus { border-color: var(--app-navy-700); box-shadow: 0 0 0 2px rgba(23,75,124,.1); }
.country-picker-list { position: relative; max-height: 210px; overflow-y: auto; overscroll-behavior: contain; margin: .35rem 0 0; padding: 0; list-style: none; }
.country-picker-option { display: flex; align-items: center; gap: .7rem; min-height: 40px; padding: .55rem .65rem; font-size: .8rem; line-height: 1.4; cursor: pointer; }
.country-picker-option:hover, .country-picker-option.is-highlighted { background: #eef2f7; }
.country-picker-option[aria-selected="true"] { color: var(--app-navy-800); font-weight: 700; box-shadow: inset 3px 0 var(--app-orange-500); }
.country-picker-empty { margin: .75rem .65rem; color: var(--app-muted); font-size: .78rem; }

/* Institution selector with free text entry for organizations not listed yet. */
.institution-picker__input { padding-right: 3rem; }
.institution-picker__toggle { position: absolute; top: 0; right: 0; display: grid; width: 46px; height: 46px; place-items: center; border: 0; border-left: 1px solid #d8e1ea; background: transparent; color: var(--app-navy-700); cursor: pointer; }
.institution-picker__toggle:hover, .institution-picker__toggle[aria-expanded="true"] { color: var(--app-orange-600); }
.institution-picker__toggle:focus-visible { outline: 2px solid var(--app-navy-700); outline-offset: -3px; }
.institution-picker__toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.institution-picker__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.institution-picker__panel { position: absolute; z-index: 35; top: calc(100% + 5px); left: 0; right: 0; max-height: 240px; overflow: auto; border: 1px solid #b6c7d8; background: #fff; box-shadow: 0 12px 30px rgba(4,22,44,.18); }
.institution-picker__panel[hidden], .institution-picker__option[hidden], .institution-picker__empty[hidden] { display: none !important; }
.institution-picker__list { margin: 0; padding: .3rem 0; list-style: none; }
.institution-picker__option { min-height: 40px; padding: .65rem .8rem; color: #253750; font-size: .8rem; line-height: 1.35; cursor: pointer; }
.institution-picker__option:hover, .institution-picker__option.is-highlighted { background: #eef2f7; }
.institution-picker__option[aria-selected="true"] { color: var(--app-navy-800); font-weight: 700; box-shadow: inset 3px 0 var(--app-orange-500); }
.institution-picker__empty { margin: 0; padding: .75rem .8rem; color: var(--app-muted); font-size: .76rem; }

/* Program cards */
.app-category-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .7rem; margin-top: .1rem; }
.app-category-card { position: relative; min-width: 0; padding: .9rem .72rem .8rem; border: 1px solid #d3dde7; background: #fbfcfe; text-align: center; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s, background .2s; }
.app-category-card::after { content: ''; position: absolute; top: .65rem; right: .65rem; width: 7px; height: 7px; border: 1.5px solid #bec9d5; }
.app-category-card:hover { border-color: #9eb0c4; background: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(4,22,44,.07); }
.app-category-card.selected { border-color: var(--app-orange-500); border-bottom-width: 3px; background: #fffaf7; box-shadow: 0 7px 16px rgba(4,22,44,.07); }
.app-category-card.selected::after { border-color: var(--app-orange-500); background: var(--app-orange-500); box-shadow: inset 0 0 0 2px #fff; }
.app-category-card:focus-visible { outline: 2px solid var(--app-navy-700); outline-offset: 2px; }
.app-category-icon { display: grid; width: 38px; height: 38px; margin: 0 auto .65rem; place-items: center; background: #edf2f7; color: var(--app-navy-700); transition: background .2s, color .2s; }
.app-category-card.selected .app-category-icon { background: var(--app-orange-500); color: #fff; }
.app-category-title { overflow: hidden; color: var(--app-navy-950); font-size: .76rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.app-category-desc { margin-top: .18rem; color: #7d899a; font-size: .61rem; line-height: 1.35; }

/* Upload and review */
.app-dropzone { position: relative; padding: 1.35rem 1rem; border: 1.5px dashed #bdc9d7; background: #f8fafc; text-align: center; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.app-dropzone:hover, .app-dropzone.dragover { border-color: var(--app-orange-500); background: #fffaf7; box-shadow: 0 0 0 4px rgba(242,118,50,.08); }
.app-dropzone-input { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.app-dropzone-icon { display: grid; width: 42px; height: 42px; margin: 0 auto .65rem; place-items: center; border: 1px solid #dae3ec; background: #fff; color: var(--app-navy-700); box-shadow: 0 5px 12px rgba(4,22,44,.06); }
.app-dropzone-text { color: #263950; font-size: .76rem; font-weight: 700; }
.app-dropzone-sub { margin-top: .26rem; color: #8390a2; font-size: .65rem; }
.app-file-selected { display: none; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .65rem; padding: .7rem .85rem; border: 1px solid #c9dcee; background: #f3f8fc; }
.app-file-info { display: flex; min-width: 0; align-items: center; gap: .5rem; overflow: hidden; color: var(--app-navy-700); font-size: .7rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.app-file-remove { flex: 0 0 auto; padding: .3rem .4rem; border: 0; border-radius: 0 !important; background: transparent; color: var(--app-danger); font-size: .66rem; font-weight: 700; cursor: pointer; }
.app-review-summary { margin-bottom: 1rem; padding: 1.05rem; border: 1px solid #dfe6ef; background: #fbfcfe; }
.app-review-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; padding-bottom: .72rem; border-bottom: 1px solid #e5ebf2; }
.app-review-title { display: flex; align-items: center; gap: .4rem; color: var(--app-navy-950); font-size: .75rem; font-weight: 750; }
.app-review-title svg { color: var(--app-orange-600); }
.app-review-edit { color: var(--app-navy-700); font-size: .65rem; font-weight: 750; cursor: pointer; }
.app-review-edit:hover { color: var(--app-orange-600); }
.app-review-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem 1rem; }
.app-review-row { display: flex; min-width: 0; flex-direction: column; }
.app-review-label { margin-bottom: .15rem; color: #8995a5; font-size: .62rem; }
.app-review-val { color: #273a52; font-size: .7rem; font-weight: 650; overflow-wrap: anywhere; }
.app-checklist { margin-bottom: 1.1rem; padding: .95rem 1.05rem; border: 1px solid #d6e3ef; background: #f4f8fc; }
.app-checklist-title { display: flex; align-items: center; gap: .4rem; margin-bottom: .35rem; color: var(--app-navy-800); font-size: .72rem; font-weight: 750; }
.app-checkbox-label { display: flex; align-items: flex-start; gap: .55rem; margin-top: .5rem; color: #50627a; font-size: .68rem; line-height: 1.45; cursor: pointer; }
.app-checkbox-label input[type="checkbox"] { width: 16px; height: 16px; margin-top: 1px; flex: 0 0 auto; border-radius: 0 !important; accent-color: var(--app-navy-800); cursor: pointer; }

/* Buttons and validation */
.app-actions-row { display: flex; align-items: center; justify-content: space-between; gap: .85rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid #e9edf3; }
.app-actions-row.single-action { justify-content: flex-end; }
.app-btn, button.app-btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: .48rem; padding: 0 1.25rem; border-radius: 0 !important; font-family: 'Inter', sans-serif; font-size: .72rem; font-weight: 750; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.app-btn-prev { border: 1px solid #d5dee8; background: #fff; color: #45576d; }
.app-btn-prev:hover { background: #f5f7fa; color: var(--app-navy-900); transform: translateY(-1px); }
.app-btn-next { border: 1px solid var(--app-navy-800); background: var(--app-navy-800); color: #fff; box-shadow: 0 8px 18px rgba(11,49,92,.18); }
.app-btn-next:hover { background: var(--app-navy-950); transform: translateY(-1px); box-shadow: 0 11px 22px rgba(11,49,92,.24); }
.app-btn-submit { border: 1px solid var(--app-orange-600); background: var(--app-orange-600); color: #fff; box-shadow: 0 8px 18px rgba(232,95,23,.2); }
.app-btn-submit:hover { background: #c94e0e; transform: translateY(-1px); box-shadow: 0 11px 22px rgba(232,95,23,.26); }
.app-btn svg { width: 15px; height: 15px; transition: transform .2s; }
.app-btn-next:hover svg, .app-btn-submit:hover svg { transform: translateX(2px); }
.app-btn-prev:hover svg { transform: translateX(-2px); }
.app-btn.is-loading { opacity: .78; pointer-events: none; }
.app-error-box { margin-bottom: 1.2rem; padding: .95rem 1.1rem; border: 1px solid #f1c2c2; border-radius: 0; background: #fff7f7; color: #a62c2c; font-size: .76rem; line-height: 1.5; }
.app-error-box ul { margin: .3rem 0 0; padding-left: 1.2rem; }

@keyframes appFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes appPanelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes appCheckPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes appShake { 0%,100% { transform: translateX(0); } 35% { transform: translateX(-4px); } 70% { transform: translateX(4px); } }

@media (max-width: 900px) {
  .app-card-body { grid-template-columns: 230px minmax(0,1fr); }
  .app-form-aside { padding: 2.25rem 1.5rem 2rem; }
  .app-form-aside h2 { font-size: 1.45rem; }
  .app-step-detail { display: none; }
}

@media (max-width: 720px) {
  .application-page-wrapper { padding: 4.9rem 1rem 3.5rem; }
  .app-header-block { margin-bottom: 1.6rem; }
  .app-card { border-radius: 0; }
  .app-stepper-wrap { padding: .8rem 1rem .75rem; }
  .app-card-body { display: block; min-height: 0; }
  .app-form-aside { display: none; }
  #applicationForm { padding: 2rem 1.35rem 1.7rem; }
  .app-form-wrapper { min-height: 0; }
}

@media (max-width: 560px) {
  .application-page-wrapper { padding-right: .75rem; padding-left: .75rem; }
  .app-main-title { font-size: 2.2rem; }
  .app-sub-title { font-size: .86rem; line-height: 1.55; }
  .app-header-meta { gap: .85rem; }
  .app-progress-heading { align-items: center; margin-bottom: .65rem; }
  .app-progress-percent { font-size: .61rem; }
  .app-stepper-line-track { top: 14px; }
  .app-step-circle { width: 28px; height: 28px; box-shadow: 0 0 0 3px #f9fbfd; }
  .app-step-item.active .app-step-circle { box-shadow: 0 0 0 4px var(--app-orange-100); }
  .app-step-item.completed .app-step-circle { box-shadow: 0 0 0 4px #edf3f8; }
  .app-step-label { font-size: .64rem; }
  #applicationForm { padding: 1.65rem 1rem 1.35rem; }
  .app-section-head { grid-template-columns: 38px minmax(0,1fr); gap: .72rem; margin-bottom: 1.45rem; }
  .app-section-number { width: 38px; height: 38px; }
  .app-section-heading { font-size: 1.25rem; }
  .app-fields-grid, .app-form-group.half-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .app-field-span-full { grid-column: auto; }
  .app-category-grid { grid-template-columns: 1fr; }
  .app-category-card { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: .1rem .7rem; align-items: center; padding: .75rem 2rem .75rem .75rem; text-align: left; }
  .app-category-icon { grid-row: 1 / 3; margin: 0; }
  .app-category-desc { margin-top: 0; }
  .app-actions-row { gap: .65rem; }
  .app-btn { flex: 1; padding: 0 .8rem; }
  .app-review-grid { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .app-step-label { font-size: .62rem; }
  .app-header-meta { flex-direction: column; align-items: center; gap: .35rem; }
  .app-progress-percent { display: none; }
  .app-actions-row { flex-direction: column-reverse; }
  .app-btn, .app-actions-row.single-action .app-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .app-header-block, .app-card, .app-step-panel.active, .app-step-circle svg { animation: none; }
  .app-stepper-line-fill, .app-step-circle, .app-btn, .app-category-card { transition: none; }
}
