/* Guided identity submission. Motion runs only when the user changes a step. */
.kyc-journey-card {padding:30px;}
.kyc-journey-card .card-heading {align-items:flex-start;gap:12px;}
.kyc-journey-card>.soft-note {font-size:12px;line-height:1.8;border-left:3px solid var(--brand);}
.kyc-wizard {scroll-margin-top:100px;}
.kyc-wizard-progress {gap:10px;margin-bottom:18px;}
.kyc-wizard-progress li {font-weight:600;line-height:1.4;}
.kyc-wizard-progress li>span {width:32px;height:32px;border-radius:11px;flex-shrink:0;transition:background .18s,color .18s;}
.kyc-wizard-progress .complete>span {font-size:0;}
.kyc-wizard-progress .complete>span::after {content:'✓';font-size:17px;}
.kyc-progress-caption {display:flex;justify-content:space-between;gap:12px;font-size:10px;color:var(--muted);margin-bottom:10px;}
.kyc-progress-caption>span:first-child {color:var(--text-2);font-weight:600;}
.kyc-progress-track {height:5px;border-radius:10px;background:var(--surface-3);overflow:hidden;margin-bottom:32px;}
.kyc-progress-track>span {display:block;width:100%;height:100%;background:linear-gradient(90deg,var(--brand),#5781f4);transform-origin:left;transform:scaleX(.333333);transition:transform .22s ease-out;}
.kyc-wizard[data-step="1"] .kyc-progress-track>span {transform:scaleX(.666667);}
.kyc-wizard[data-step="2"] .kyc-progress-track>span {transform:scaleX(1);}
.kyc-wizard legend {font:700 21px/1.4 var(--font-display);letter-spacing:-.4px;margin-bottom:8px;}
.kyc-step-description {margin:0 0 24px;color:var(--text-2);font-size:13px;line-height:1.8;}
.kyc-wizard fieldset:focus {outline:none;}
.kyc-step-enter {animation:kyc-step-enter .2s ease-out;}
@keyframes kyc-step-enter {from {opacity:.4;transform:translateY(9px);} to {opacity:1;transform:translateY(0);}}
.kyc-fields {gap:20px 16px;}
.kyc-fields label,.kyc-field>label {font-size:12px;font-weight:600;}
.kyc-field {min-width:0;}
.kyc-field>label {display:block;margin-bottom:8px;}
.kyc-fields input,.kyc-fields textarea {min-height:48px;margin-top:8px;font-weight:400;}
.kyc-fields textarea {resize:vertical;max-height:180px;}
.kyc-input-hint {display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:7px;}
.kyc-field-error {display:block;color:var(--red);font-size:11px;font-weight:400;line-height:1.6;margin-top:7px;}
.kyc-field-error:empty {display:none;}
.kyc-wizard [aria-invalid="true"] {border-color:var(--red);}
.kyc-wizard .kyc-field-valid:not(:focus) {border-color:rgba(52,168,132,.6);}
.kyc-date-input {position:relative;}
.kyc-date-input input {margin-top:0;padding-right:48px;}
.kyc-date-input>button {position:absolute;right:4px;top:4px;width:40px;height:40px;display:grid;place-items:center;color:var(--brand);border-radius:9px;}
.kyc-date-input>button:hover {background:var(--brand-soft);}
.kyc-date-input svg {width:20px;height:20px;}
.kyc-photo-tips {list-style:none;display:grid;gap:10px;margin:18px 0;padding:16px;border-radius:12px;background:var(--surface-2);font-size:12px;}
.kyc-photo-tips li {position:relative;padding-left:21px;line-height:1.6;}
.kyc-photo-tips li::before {content:'✓';position:absolute;left:0;color:var(--brand);}
.kyc-journey-card .dropzone {padding:28px 18px;border-radius:16px;transition:border-color .18s,background .18s;}
.kyc-journey-card .dropzone:hover {border-color:var(--brand);background:var(--brand-soft);}
.kyc-journey-card .drop-icon svg {width:24px;height:24px;}
.kyc-review-values>div {background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:13px;}
.kyc-review-values dt {font-size:10px;}
.kyc-review-values dd {font-size:13px;line-height:1.7;}
.kyc-wizard-actions {border-top:1px solid var(--line);padding-top:22px;margin-top:26px;}
.kyc-wizard-actions .button {min-height:46px;}
#kyc-date-dialog {width:390px;max-width:calc(100vw - 24px);}
#kyc-date-dialog .modal-head {display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
#kyc-date-dialog .modal-head .eyebrow {font-size:10px;margin-bottom:6px;}
#kyc-date-dialog .modal-head .eyebrow::before {display:none;}
#kyc-date-dialog .dialog-close {flex-shrink:0;}
.kyc-calendar-navigation {display:grid;grid-template-columns:34px minmax(0,1.25fr) minmax(0,1fr) 34px;gap:7px;align-items:center;margin-bottom:20px;}
.kyc-calendar-navigation select {margin:0;min-width:0;padding:10px 22px 10px 10px;font-size:12px;}
.kyc-calendar-navigation .icon-button {width:34px;height:38px;font-size:24px;}
.kyc-calendar-weekdays,.kyc-calendar-grid>[role=row] {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;}
.kyc-calendar-weekdays {text-align:center;color:var(--muted);font-size:10px;margin-bottom:8px;}
.kyc-calendar-grid>[role=row] {margin-bottom:3px;}
.kyc-calendar-grid [role=gridcell] {display:grid;place-items:center;aspect-ratio:1;min-width:0;border-radius:9px;font-size:12px;font-weight:500;}
.kyc-calendar-grid button:hover:not(:disabled) {background:var(--brand-soft);color:var(--brand);}
.kyc-calendar-grid [aria-selected=true] {background:var(--brand);color:white;}
.kyc-calendar-grid button:disabled {opacity:.25;cursor:default;}
.kyc-calendar-grid button:focus-visible {outline:2px solid var(--brand);outline-offset:1px;}
#kyc-date-dialog>.modal-body>.micro {font-size:10px;margin:16px 0 0;}
#kyc-date-dialog .sr-only {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
@media(min-width:1100px) {
  [data-view=kyc]>.two-columns {grid-template-columns:minmax(0,1.5fr) minmax(260px,.8fr);align-items:start;}
}
@media(max-width:560px) {
  .kyc-journey-card {padding:22px 18px;}
  .kyc-journey-card .card-heading {flex-wrap:wrap;}
  .kyc-wizard-progress {gap:5px;}
  .kyc-wizard-progress li {font-size:10px;gap:6px;}
  .kyc-wizard-progress li>span {width:27px;height:27px;border-radius:9px;}
  .kyc-progress-caption {font-size:9px;gap:6px;}
  .kyc-wizard legend {font-size:19px;}
  .kyc-fields {gap:17px;}
  #kyc-date-dialog .modal-body {padding:20px 16px;}
  .kyc-review-values {grid-template-columns:1fr;gap:10px;}
  .kyc-review-values>div:nth-child(4) {grid-column:auto;}
}
@media(prefers-reduced-motion:reduce) {
  .kyc-step-enter {animation:none;}
  .kyc-progress-track>span,.kyc-wizard-progress li>span,.kyc-journey-card .dropzone {transition:none;}
}
