/* ============================================================
   INPS Portale — Caricamento Documenti
   Colori e classi estratti dal CSS originale inps.it
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@400;600;700&display=swap');

:root {
  /* Colori estratti dal CSS originale INPS */
  --inps-primary:     #2f6dd5;   /* btn-primary, link */
  --inps-primary-dk:  #00368f;   /* footer-feedback bg */
  --inps-dark-navy:   #00173d;   /* header-topbar, footer bg */
  --inps-navy:        #002460;   /* footer-go-up */
  --inps-text:        #454d56;
  --inps-text-dark:   #17191c;
  --inps-link:        #2f6dd5;
  --inps-cyan:        #18cee7;   /* footer links, btn-outline-light */
  --inps-red:         #aa224f;   /* accento secondario */
  --inps-border:      #d9e4f7;
  --inps-light-bg:    #f2f6fc;
  --inps-gray-bg:     #e3e5e8;
  --inps-success:     #008069;
  --inps-error:       #cb4d1e;
  --inps-white:       #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Titillium Web', Arial, sans-serif;
  font-size: 16px;
  color: var(--inps-text);
  background: #fff;
  line-height: 1.5;
}

a { color: var(--inps-link); text-decoration: none; }
a:hover { color: #0056b3; text-decoration: underline; }

/* ============================================================
   TOPBAR — riga superiore bianca con link istituzionali
   ============================================================ */
.border-bottom-topbar {
  border-bottom: 1px solid var(--inps-border);
  background: #fff;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  max-width: 1400px;
  margin: 0 auto;
}
.nav-topbar {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
}
.nav-topbar > li:not(:last-child) { margin-right: 8px !important; }
.nav-topbar a {
  font-size: 1rem;
  font-weight: 400;
  color: var(--inps-text);
  padding: 4px 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-topbar a:hover { text-decoration: underline; color: var(--inps-text); }

/* Selettore lingua */
.lang-btn {
  background: transparent;
  border: none;
  font-family: 'Titillium Web', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--inps-text);
  cursor: pointer;
  padding: 4px 8px;
}

/* Bottone Accedi */
.box-user {
  background: var(--inps-light-bg);
  border: 1px solid var(--inps-light-bg);
  border-radius: 0;
  padding: 7px 24px !important;
  position: relative;
  text-decoration: underline;
  color: var(--inps-text);
  font-size: 14px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: 'Titillium Web', Arial, sans-serif;
}
.box-user:hover { background: var(--inps-gray-bg); text-decoration: underline; color: var(--inps-text); }

/* ============================================================
   HEADER TOPBAR (barra blu scura con logo + search + navbar)
   .header-topbar = background:#00173d
   ============================================================ */
.header {
  background-color: #fff;
}
.header-topbar {
  background: var(--inps-dark-navy);
  position: relative;
}
.header-topbar-inner {
  display: flex;
  align-items: stretch;
  padding: 0 24px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 20px;
  min-height: 72px;
}

/* Logo */
.boxlogo {
  display: flex;
  align-items: center;
  padding-right: 32px;
  flex-shrink: 0;
}
.boxlogo a { display: flex; align-items: center; }
.logo { height: 52px; width: auto; }
.logo-sticky { display: none; }
.logo-mobile { display: none; }

/* Search */
.header-search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 10px 0;
}
.search-wrapper-ai {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
  position: relative;
}
.input-search-ai {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-family: 'Titillium Web', Arial, sans-serif;
  font-size: 15px;
  color: var(--inps-text-dark);
  background: #fff;
}
.btn-search {
  background: var(--inps-primary);
  border: none;
  color: #fff;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 15px;
  font-family: 'Titillium Web', Arial, sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.btn-search:hover { background: #1a5ab8; }

/* Icone utente header (mobile) */
.header-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.btn-icon {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Titillium Web', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.btn-icon:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }

/* ============================================================
   NAVBAR principale (dentro header-topbar)
   ============================================================ */
.navbar-wrap {
  background: var(--inps-dark-navy);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
.navbar-nav {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  gap: 0;
}
.navbar-nav li { position: relative; }
.navbar-nav li a {
  color: rgba(255,255,255,0.9);
  display: block;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.1px;
}
.navbar-nav li a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   HERO / BREADCRUMB — dalla section-hero
   ============================================================ */
.section-hero {
  margin: 32px 0 24px;
}
.section-hero.border-bottom {
  border-bottom: 1px solid var(--inps-border) !important;
}
.section-hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 24px;
}

.breadcrumb {
  background-color: transparent;
  color: var(--inps-text);
  display: block;
  font-size: .875rem;
  margin: 0 0 4px;
  padding: .75rem 0 .25rem;
  list-style: none;
}
.breadcrumb-item {
  display: inline;
  overflow: hidden;
  padding: 0 2px;
  letter-spacing: 0;
  line-height: 1.5rem;
}
.breadcrumb-item a { color: var(--inps-link); }
.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  margin: 0 6px;
  color: var(--inps-text);
}
.breadcrumb-item.active { color: var(--inps-text); }

.hero-h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--inps-text-dark);
  line-height: 3rem;
  margin-bottom: 8px;
}
.hero-subtitle {
  font-size: 1rem;
  color: var(--inps-text);
  max-width: 640px;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  max-width: 860px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: 14px 18px;
  border-radius: 4px;
  margin-bottom: 24px;
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-success { background: #e3f5ef; border-left: 4px solid var(--inps-success); color: #005733; }
.alert-error   { background: #fdecea; border-left: 4px solid var(--inps-error); color: var(--inps-error); }
.alert-info    { background: var(--inps-light-bg); border-left: 4px solid var(--inps-primary); color: #00347A; }

/* ============================================================
   CARD
   ============================================================ */
.card {
  background: #fff;
  border: 1px solid var(--inps-border);
  border-radius: 4px;
  margin-bottom: 24px;
}
.card-header {
  background: var(--inps-light-bg);
  border-bottom: 1px solid var(--inps-border);
  padding: 14px 20px;
}
.card-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--inps-primary-dk);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.card-body { padding: 24px 20px; }

/* ============================================================
   FORM
   ============================================================ */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }

label {
  font-size: 14px;
  font-weight: 700;
  color: var(--inps-text-dark);
}
.required { color: var(--inps-error); margin-left: 2px; }

.form-control {
  border: 1px solid #8e98a4;
  border-radius: 4px;
  padding: 10px 12px;
  font-family: 'Titillium Web', Arial, sans-serif;
  font-size: 15px;
  color: var(--inps-text-dark);
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fff;
}
.form-control:focus {
  outline: none;
  border-color: var(--inps-primary);
  box-shadow: 0 0 3px rgba(0,125,179,.7);
}
.form-control.error { border-color: var(--inps-error); }

.field-hint  { font-size: 12px; color: #5b6571; }
.field-error { font-size: 12px; color: var(--inps-error); font-weight: 700; display: flex; align-items: center; gap: 4px; }

/* ============================================================
   UPLOAD
   ============================================================ */
.upload-item {
  border: 1px solid var(--inps-border);
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
  transition: border-color 0.15s;
}
.upload-item:last-child { margin-bottom: 0; }
.upload-item.has-error { border-color: var(--inps-error); }
.upload-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--inps-primary-dk);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.upload-desc { font-size: 13px; color: #5b6571; margin-bottom: 10px; }

input[type="file"] {
  display: block;
  width: 100%;
  font-family: 'Titillium Web', Arial, sans-serif;
  font-size: 14px;
  color: var(--inps-text-dark);
  border: 2px dashed #8e98a4;
  border-radius: 4px;
  padding: 10px 12px;
  background: var(--inps-light-bg);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
input[type="file"]:hover { border-color: var(--inps-primary); background: #e8f0fb; }

/* ============================================================
   BUTTONS — estratti dal CSS originale
   ============================================================ */
.btn-primary {
  background-color: var(--inps-primary);
  border: 1px solid var(--inps-primary);
  color: #fff;
  padding: 11px 28px;
  font-family: 'Titillium Web', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-primary:hover { background-color: #1a5ab8; border-color: #1a5ab8; color: #fff; text-decoration: none; }

.btn-outline-primary {
  border: 1px solid var(--inps-primary);
  color: var(--inps-primary);
  background: transparent;
  padding: 9px 24px;
  font-family: 'Titillium Web', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-outline-primary:hover { background: var(--inps-primary); color: #fff; text-decoration: none; }

.btn-outline-light {
  border: 1px solid var(--inps-cyan);
  color: var(--inps-cyan);
  background: transparent;
  padding: 10px 20px;
  font-family: 'Titillium Web', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-decoration: none;
}
.btn-outline-light:hover { background: rgba(24,206,231,0.12); }
.btn-outline-light.reverse { background: var(--inps-white); color: var(--inps-dark-navy); border-color: var(--inps-white); }
.btn-outline-light.reverse:hover { background: #e0e0e0; }

.btn-sm { padding: 6px 14px; font-size: 13px; }

.form-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.required-note { font-size: 13px; color: #5b6571; }

/* ============================================================
   PRIVACY
   ============================================================ */
.privacy-box {
  background: var(--inps-light-bg);
  border: 1px solid var(--inps-border);
  border-radius: 4px;
  padding: 14px 18px;
  font-size: 13px;
  color: #5b6571;
  margin-top: 20px;
  line-height: 1.6;
}

/* ============================================================
   FOOTER — colori estratti dal CSS originale
   footer.footer { background-color:#00173d }
   .footer-feedback { background:#00368f }
   .footer-go-up { background-color:#002460 }
   footer.footer a { color:#18cee7 }
   ============================================================ */
footer.footer {
  background-color: var(--inps-dark-navy);
  color: #fff;
  margin-top: 60px;
}
footer.footer h1, footer.footer h2, footer.footer h3, footer.footer h4 { color: #fff; }
footer.footer a { color: var(--inps-cyan); text-decoration: none; }
footer.footer a:hover { color: #8ce7f3; }
footer.footer hr { border-color: #ddd; }

.footer-feedback {
  background: var(--inps-primary-dk);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}
.footer-go-up {
  background-color: var(--inps-navy);
  border-bottom: 1px solid var(--inps-primary-dk);
  margin-bottom: 16px;
  padding: 6px 0;
  text-align: center;
}
.footer-go-up .btn-top {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.85);
  padding: 6px 20px;
  font-family: 'Titillium Web', Arial, sans-serif;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
}
.footer-go-up .btn-top:hover { background: rgba(255,255,255,0.1); }

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px 24px 16px;
  max-width: 1400px;
  margin: 0 auto;
}
.footer-col h3 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--inps-cyan); font-size: 14px; }
.footer-col ul li a:hover { color: #8ce7f3; text-decoration: underline; }

.footer-social {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}
.footer-logo img { height: 42px; width: auto; }
.footer-address { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.7; }
.social-list { list-style: none; display: flex; gap: 8px; padding: 0; }
.social-list li a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  transition: all 0.15s;
  text-decoration: none;
}
.social-list li a:hover { background: rgba(255,255,255,0.12); color: #fff; }

.footer-copyright {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   COOKIE BANNER — .modalcookiebar dal CSS originale
   ============================================================ */
.cookie-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1039;
  display: none;
}
.cookie-overlay.show { display: block; }

.modalcookiebar {
  background-color: var(--inps-dark-navy);
  display: none;
  overflow: unset;
  padding: 0;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1040;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}
.modalcookiebar.show { display: block; }

.cookie-modal-content {
  max-width: 620px;
  margin: 0 auto;
  color: #fff;
}
.cookie-modal-header {
  display: flex;
  justify-content: flex-end;
  padding: 12px 20px 0;
}
.cookie-close-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
}
.cookie-close-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.cookie-modal-body {
  padding: 4px 20px 12px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
}
.cookie-modal-body a { color: var(--inps-cyan); }
.cookie-modal-footer {
  padding: 8px 16px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

/* ============================================================
   ADMIN TABLE
   ============================================================ */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
thead th {
  background: var(--inps-dark-navy);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
}
tbody tr { border-bottom: 1px solid var(--inps-border); }
tbody tr:hover { background: var(--inps-light-bg); }
tbody td { padding: 12px 16px; }

.pratica-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pratica-field label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: #5b6571; font-weight: 700; display: block; margin-bottom: 4px; }
.pratica-field p { font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--inps-border); padding-bottom: 8px; margin: 0; }

.file-list { list-style: none; padding: 0; }
.file-list li { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--inps-border); gap: 12px; }
.file-list li:last-child { border-bottom: none; }
.file-info { display: flex; align-items: center; gap: 10px; }
.file-icon { font-size: 22px; color: var(--inps-primary-dk); }
.file-name { font-weight: 700; font-size: 14px; }
.file-meta { font-size: 12px; color: #5b6571; }

/* Badge */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.badge-success { background: #e3f5ef; color: var(--inps-success); }

/* Login */
.login-wrapper { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--inps-light-bg); }
.login-card { background: #fff; border: 1px solid var(--inps-border); border-radius: 4px; padding: 40px 36px; width: 100%; max-width: 420px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.login-card h1 { font-size: 22px; font-weight: 700; color: var(--inps-primary-dk); margin-bottom: 6px; }
.login-subtitle { font-size: 14px; color: #5b6571; margin-bottom: 28px; display: block; }

/* ============================================================
   MOBILE
   ============================================================ */
.open-menu-mobile { display: none; }

@media (max-width: 991px) {
  .topbar-inner .nav-topbar { display: none; }
  .topbar-inner .lang-btn { display: none; }
  .header-search-wrap { display: none; }
  .boxlogo { padding-right: 0; }
  .logo { display: none; }
  .logo-mobile { display: block; height: 38px; }
  .navbar-wrap { display: none; }
  .open-menu-mobile { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-links-grid { grid-template-columns: 1fr; gap: 12px; }
  .pratica-grid { grid-template-columns: 1fr; }
  .cookie-modal-footer { grid-template-columns: 1fr; }
  .hero-h1 { font-size: 1.5rem; line-height: 2rem; }
  .footer-social { flex-direction: column; }
}

/* ============================================================
   PANEL (contenitore di ogni step)
   ============================================================ */
.step-panel {
  background: #fff;
  border: 1px solid #d9e4f7;
  border-radius: 4px;
  padding: 28px 28px 20px;
  margin-top: 24px;
}

.step-panel-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid #d9e4f7;
  margin-bottom: 28px;
}
.step-num {
  width: 36px;
  height: 36px;
  background: #2f6dd5;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-panel-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #00368f;
  margin: 0 0 4px;
}
.step-panel-sub {
  font-size: .875rem;
  color: #5b6571;
  margin: 0;
}

/* ============================================================
   CAMPI INPUT — stesso stile barra di ricerca INPS
   .form-control dal CSS originale:
   border-color:#454d56; height:3pc; padding:1pc; font-size:1rem
   :hover border-color:#00368f
   :focus border-color:#2f6dd5; outline:1px solid #2f6dd5
   ============================================================ */
.inps-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 4px;
}
.inps-field { display: flex; flex-direction: column; gap: 6px; }

.inps-label {
  color: #454d56;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1rem;
  display: block;
  margin-bottom: 6px;
}
.inps-label:hover { color: #00368f; }
.req { color: #aa224f; margin-left: 2px; }

.inps-input-wrap {
  position: relative;
}

/* ← STILE IDENTICO alla barra di ricerca INPS */
.inps-input {
  border: 1px solid #454d56;
  border-radius: 4px;
  color: #454d56;
  font-family: 'Titillium Web', Arial, sans-serif;
  font-size: 1rem;
  height: 48px;           /* 3pc = 48px */
  line-height: 1rem;
  padding: 0 16px;        /* 1pc = 16px */
  width: 100%;
  background: #fff;
  transition: border-color 0.15s;
  outline: none;
}
.inps-input:hover { border-color: #00368f; color: #00368f; }
.inps-input:focus {
  border-color: #2f6dd5 !important;
  box-shadow: none;
  color: #454d56;
  outline: 1px solid #2f6dd5 !important;
  outline-offset: 2px;
}
.inps-input.filled { border-color: #454d56; color: #454d56; }
.inps-input-wrap.has-error .inps-input { border-color: #aa224f; }

.inps-hint  { font-size: .75rem; color: #5b6571; margin-top: 2px; }
.inps-error {
  font-size: .75rem;
  font-weight: 400;
  color: #aa224f;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

/* ============================================================
   UPLOAD BLOCK
   ============================================================ */
.inps-upload-info {
  background: #f2f6fc;
  border: 1px solid #d9e4f7;
  border-radius: 4px;
  padding: 12px 16px;
  font-size: .875rem;
  color: #454d56;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.inps-upload-info i { color: #2f6dd5; flex-shrink: 0; }

.inps-upload-block {
  border: 1px solid #d9e4f7;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 16px;
  background: #fff;
  transition: border-color 0.15s;
}
.inps-upload-block:last-of-type { margin-bottom: 0; }
.inps-upload-block.has-error { border-color: #aa224f; }

.inps-upload-label {
  font-size: 1rem;
  font-weight: 600;
  color: #00368f;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.inps-upload-desc {
  font-size: .875rem;
  color: #5b6571;
  margin-bottom: 14px;
}

/* Bottone "Scegli file" — stile INPS btn-outline-primary */
.inps-file-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #2f6dd5;
  color: #2f6dd5;
  background: transparent;
  padding: 9px 20px;
  font-family: 'Titillium Web', Arial, sans-serif;
  font-size: .9375rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 10px;
}
.inps-file-label:hover { background: #2f6dd5; color: #fff; }
.inps-file-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.inps-file-name {
  display: block;
  font-size: .875rem;
  color: #5b6571;
  margin-top: 4px;
  word-break: break-all;
}

/* ============================================================
   AZIONI STEP
   ============================================================ */
.step-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #d9e4f7;
  flex-wrap: wrap;
}
.req-note { font-size: .8125rem; color: #5b6571; margin-right: auto; }

/* ============================================================
   RIEPILOGO (step 4)
   ============================================================ */
.riepilogo-box {
  background: #f2f6fc;
  border: 1px solid #d9e4f7;
  border-radius: 4px;
  padding: 20px;
  margin: 24px 0;
}
.riepilogo-title {
  font-size: 1rem;
  font-weight: 700;
  color: #00368f;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.riepilogo-grid { display: flex; flex-direction: column; gap: 0; }
.riepilogo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #d9e4f7;
  font-size: .9375rem;
  gap: 12px;
}
.riepilogo-row:last-child { border-bottom: none; }
.riepilogo-row span:first-child { color: #5b6571; font-size: .875rem; flex-shrink: 0; }

/* ============================================================
   PRIVACY
   ============================================================ */
.inps-privacy-box {
  background: #f2f6fc;
  border: 1px solid #d9e4f7;
  border-radius: 4px;
  padding: 14px 16px;
  font-size: .8125rem;
  color: #5b6571;
  margin-top: 20px;
  line-height: 1.6;
}

/* ============================================================
   SUCCESSO
   ============================================================ */
.success-box {
  text-align: center;
  padding: 48px 24px;
  background: #fff;
  border: 1px solid #d9e4f7;
  border-radius: 4px;
  margin-top: 32px;
}
.success-icon {
  font-size: 64px;
  color: #008069;
  margin-bottom: 20px;
  line-height: 1;
}
.success-box h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00368f;
  margin-bottom: 12px;
}
.success-box > p {
  font-size: 1rem;
  color: #454d56;
  max-width: 520px;
  margin: 0 auto 28px;
}
.success-detail {
  background: #f2f6fc;
  border: 1px solid #d9e4f7;
  border-radius: 4px;
  padding: 20px;
  max-width: 480px;
  margin: 0 auto 20px;
  text-align: left;
}
.success-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #d9e4f7;
  font-size: .9375rem;
  gap: 12px;
}
.success-row:last-child { border-bottom: none; }
.success-row span { color: #5b6571; font-size: .875rem; }
.success-note {
  font-size: .8125rem;
  color: #5b6571;
  max-width: 480px;
  margin: 0 auto !important;
}
.success-note i { color: #2f6dd5; margin-right: 4px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .inps-form-grid { grid-template-columns: 1fr; gap: 16px; }
  .step-panel { padding: 20px 16px; }
  .step-panel-header { flex-direction: column; gap: 10px; }
  .step-actions { flex-direction: column-reverse; align-items: stretch; }
  .step-actions button { width: 100%; justify-content: center; }
  .req-note { order: 3; margin-right: 0; text-align: center; }
  .riepilogo-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .success-row { flex-direction: column; gap: 2px; }
}

/* ============================================================
   STEP COMPONENT — identico al CSS originale INPS
   Layout: ORIZZONTALE, flex, cerchi centrati, linea laterale
   ============================================================ */

/* Reset counter */
.step { counter-reset: css-counter 0; }

/* Contenitore: flex orizzontale */
.step {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 0;
  list-style: none;
  margin-top: 30px;
  padding: 0;
}

/* Ogni item occupa spazio uguale, testo centrato */
.step .item {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  color: #454d56;
  counter-increment: css-counter 1;
  font-weight: 400;
  line-height: 1.875rem;
  text-align: center;
}

/* ── Cerchio (::before) e linea (::after) ── */

/* DEFAULT: cerchio blu con numero */
.step .item span[role=step]:before {
  background: #2f6dd5;
  border-radius: 32px;          /* 1pc = 16px → 2pc = 32px */
  color: #fff;
  content: counter(css-counter);
  counter-increment: none;
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  height: 32px;                 /* 2pc */
  line-height: 32px;
  margin: auto;
  text-align: center;
  width: 32px;                  /* 2pc */
}

/* DEFAULT: linea grigia a destra del cerchio */
.step .item span[role=step]:after {
  background: #e3e5e8;
  content: "";
  display: block;
  height: 1px;
  left: calc(50% + 16px);      /* 1pc = 16px */
  position: relative;
  top: -74%;
  width: calc(100% - 32px);    /* 100% - 2pc */
}

/* Ultimo item: niente linea */
.step .item:last-of-type span[role=step]:after {
  display: none;
}

/* DISABLED: cerchio grigio */
.step .item.disabled span[role=step]:before {
  background: #e3e5e8;
  color: #454d56;
}
.step .item.disabled span[role=step]:after {
  background: #e3e5e8;
}

/* COMPLETED: cerchio verde con check */
.step .item.completed span[role=step]:before {
  background: #008069;
  color: #fff;
  content: "\f00c";             /* fa-check */
  font-family: "Font Awesome 5 Free";
  font-size: 1rem;
  font-weight: 900;
}
.step .item.completed span[role=step]:after {
  background: #008069;
}

/* Label testo sotto il cerchio */
.title-step {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: #454d56;
  margin-top: 6px;
}
.step .item.disabled .title-step { color: #8e98a4; font-weight: 400; }
.step .item.completed .title-step { color: #008069; }


/* Select INPS — stesso stile degli input */
.inps-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23454d56' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px !important;
  cursor: pointer;
}
.inps-select:hover { border-color: #00368f; color: #00368f; }

/* ============================================================
   ANALISI IMMAGINE — anteprima e feedback Canvas
   ============================================================ */

/* Anteprima foto caricata */
.inps-preview-wrap {
  margin: 12px 0 8px;
  display: inline-block;
  border: 2px solid var(--inps-border);
  border-radius: 4px;
  overflow: hidden;
  background: #f2f6fc;
  position: relative;
}
.inps-upload-block.has-error .inps-preview-wrap {
  border-color: #aa224f;
}
.inps-preview-img {
  display: block;
  max-width: 260px;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Badge OK verde */
.inps-check-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #008069;
  font-size: .875rem;
  font-weight: 700;
  margin-top: 8px;
  padding: 8px 12px;
  background: #e3f5ef;
  border: 1px solid #b3dfd0;
  border-radius: 4px;
}
.inps-check-wrap i { font-size: 1rem; flex-shrink: 0; }

/* Errori multipli impilati */
.inps-upload-block .inps-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 6px;
  padding: 8px 12px;
  background: #fdecea;
  border: 1px solid #f5c2c0;
  border-radius: 4px;
  font-size: .8125rem;
  line-height: 1.4;
}
.inps-upload-block .inps-error i { flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   MINI-STEPPER DOCUMENTI
   ============================================================ */
.mini-stepper {
  display: flex;
  align-items: center;
  margin: 0 0 28px;
  padding: 16px 20px;
  background: var(--inps-light-bg);
  border-radius: 4px;
  border: 1px solid var(--inps-border);
}
.mini-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex: 1;
  text-align: center;
}
.mini-step span {
  font-size: .75rem;
  font-weight: 600;
  color: #8e98a4;
}
.mini-step.active span  { color: #2f6dd5; }
.mini-step.completed span { color: #008069; }

.mini-step-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #e3e5e8;
  color: #454d56;
  font-size: .875rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.mini-step.active .mini-step-circle    { background: #2f6dd5; color: #fff; }
.mini-step.completed .mini-step-circle { background: #008069; color: #fff; font-size: 0; }
.mini-step.completed .mini-step-circle::after { content: '\f00c'; font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: .75rem; }

.mini-step-line { flex: 1; height: 2px; background: #e3e5e8; margin: 0 4px; margin-bottom: 20px; }

.mini-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--inps-border);
}

/* ============================================================
   DOC HEADER
   ============================================================ */
.doc-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.doc-icon {
  width: 44px; height: 44px;
  background: var(--inps-light-bg);
  border: 1px solid var(--inps-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: #2f6dd5;
  flex-shrink: 0;
}
.doc-title { font-size: 1.125rem; font-weight: 700; color: #00368f; margin: 0 0 4px; }
.doc-sub   { font-size: .875rem; color: #5b6571; margin: 0; }

.upload-info-bar {
  background: #f2f6fc;
  border: 1px solid #d9e4f7;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: .8125rem;
  color: #454d56;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.upload-info-bar i { color: #2f6dd5; flex-shrink: 0; }

/* ============================================================
   DUAL UPLOAD (fronte + retro affiancati)
   ============================================================ */
.dual-upload {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 4px;
}
.single-upload { margin-bottom: 4px; }
.upload-side { display: flex; flex-direction: column; gap: 10px; }
.upload-side.wide { width: 100%; max-width: 400px; margin: 0 auto; }

.upload-side-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #5b6571;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Area di upload grande e cliccabile */
.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px dashed #8e98a4;
  border-radius: 8px;
  padding: 28px 16px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafcff;
  min-height: 140px;
  text-align: center;
  position: relative;
}
.upload-area:hover {
  border-color: #2f6dd5;
  background: #f0f5ff;
}
.upload-area-icon { font-size: 28px; color: #8e98a4; transition: color 0.2s; }
.upload-area:hover .upload-area-icon { color: #2f6dd5; }
.upload-area-text { font-size: .875rem; color: #5b6571; line-height: 1.4; }
.upload-area-text small { color: #8e98a4; font-size: .75rem; }

/* Upload OK/ERR state */
.upload-side.upload-ok .upload-area { border-color: #008069; background: #f0fbf6; }
.upload-side.upload-ok .upload-area-icon { color: #008069; }
.upload-side.upload-err .upload-area { border-color: #aa224f; background: #fff8f8; }
.upload-side.upload-err .upload-area-icon { color: #aa224f; }

/* Preview immagine */
.upload-preview-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--inps-border);
  background: #f2f6fc;
}
.upload-preview-img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
}
.single-upload .upload-preview-img { height: 220px; }

/* Overlay status sulla preview */
.preview-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  transition: all 0.2s;
}
.preview-overlay.ok  { background: rgba(0,128,105,0.18); color: #008069; }
.preview-overlay.err { background: rgba(170,34,79,0.18); color: #aa224f; }

/* Status messages */
.status-ok {
  display: flex; align-items: flex-start; gap: 6px;
  color: #008069; font-size: .8125rem; font-weight: 700;
  padding: 8px 10px; background: #e3f5ef;
  border: 1px solid #b3dfd0; border-radius: 4px;
}
.status-error {
  display: flex; align-items: flex-start; gap: 6px;
  color: #aa224f; font-size: .8125rem;
  padding: 8px 10px; background: #fdecea;
  border: 1px solid #f5c2c0; border-radius: 4px;
  margin-top: 4px;
}

/* ============================================================
   TOGGLE PATENTE
   ============================================================ */
.doc-toggle-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  background: var(--inps-light-bg);
  padding: 12px;
  border-radius: 4px;
  border: 1px solid var(--inps-border);
}
.doc-toggle-btn {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #d9e4f7;
  border-radius: 4px;
  background: #fff;
  color: #5b6571;
  font-family: 'Titillium Web', Arial, sans-serif;
  font-size: .9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.doc-toggle-btn:hover { border-color: #2f6dd5; color: #2f6dd5; }
.doc-toggle-btn.active { border-color: #2f6dd5; background: #2f6dd5; color: #fff; }

.no-patente-box {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff8e6; border: 1px solid #f0c27f;
  border-radius: 4px; padding: 14px 16px; margin-bottom: 16px;
  font-size: .875rem; color: #5b3c00;
}
.no-patente-box i { color: #d68400; font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.no-patente-box p { margin: 4px 0 0; color: #5b6571; }

/* ============================================================
   SELFIE LIVE
   ============================================================ */
.selfie-instructions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 24px;
}
.selfie-tip {
  flex: 1; min-width: 200px;
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--inps-light-bg);
  border: 1px solid var(--inps-border);
  border-radius: 4px;
  padding: 14px 16px;
  font-size: .875rem;
  color: #454d56;
  line-height: 1.4;
}
.selfie-tip i { color: #2f6dd5; font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.selfie-tip div strong { display: block; margin-bottom: 2px; color: #00368f; font-size: .9375rem; }

.selfie-wrap { text-align: center; }

.btn-selfie-start {
  background: #2f6dd5;
  color: #fff;
  border: none;
  padding: 16px 36px;
  font-family: 'Titillium Web', Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background 0.15s;
}
.btn-selfie-start:hover { background: #00368f; }

.selfie-camera-wrap {
  position: relative;
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
  max-width: 300px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
#selfieVideo {
  display: block;
  width: 300px;
  height: 400px;
  object-fit: cover;
  background: #000;
}
.selfie-oval-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.selfie-oval-overlay svg { width: 100%; height: 100%; }
.selfie-hint-text {
  position: absolute;
  bottom: 14px; left: 0; right: 0;
  text-align: center;
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.selfie-countdown {
  position: absolute;
  inset: 0;
  background: rgba(0,23,61,0.55);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 5rem;
  font-weight: 700;
}

.selfie-result-wrap {
  position: relative;
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
  max-width: 300px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.selfie-result-img {
  display: block;
  width: 300px;
  height: 400px;
  object-fit: cover;
}
.selfie-oval-overlay-static {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.selfie-oval-overlay-static svg { width: 100%; height: 100%; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .dual-upload { grid-template-columns: 1fr; }
  .doc-toggle-bar { flex-direction: column; }
  .selfie-instructions { flex-direction: column; }
  .mini-step span { display: none; }
}

/* ── STEPPER MOBILE FIX ─────────────────────────────────── */
@media (max-width: 768px) {
  /* Stepper principale: solo cerchi, niente testo */
  .step { margin-top: 16px; }
  .step .item { flex: 1; min-width: 0; }
  .title-step {
    font-size: .65rem;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60px;
    margin-left: auto;
    margin-right: auto;
  }
  /* Linea connettore più corta su mobile */
  .step .item span[role=step]:after {
    left: calc(50% + 14px);
    width: calc(100% - 28px);
  }
  /* Cerchi leggermente più piccoli */
  .step .item span[role=step]:before {
    width: 28px;
    height: 28px;
    line-height: 28px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  /* Su schermi molto piccoli nascondi le label */
  .title-step { display: none; }
  .step { margin-top: 12px; }
}

/* ── UPLOAD AREA: nascondi dopo caricamento ─────────────── */
.upload-side.upload-ok .upload-area,
.upload-side.upload-err .upload-area {
  /* Non nascondere completamente - solo riduci */
}

/* Quando ok: nascondi area upload e mostra solo preview */
.upload-side.file-loaded .upload-area {
  display: none;
}
.upload-side.file-loaded .upload-preview-wrap {
  display: block !important;
}

/* Bottone cambia file — stile INPS link */
.btn-change-file {
  display: none;
  align-items: center;
  gap: 6px;
  color: var(--inps-primary);
  font-size: .875rem;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  font-family: 'Titillium Web', Arial, sans-serif;
  text-decoration: underline;
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.btn-change-file:hover { color: #00368f; }
.upload-side.file-loaded .btn-change-file { display: flex; }

/* Preview più grande e bella quando file caricato */
.upload-side.file-loaded .upload-preview-img {
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
}
.upload-side.file-loaded .upload-preview-wrap {
  border: 2px solid #008069;
  border-radius: 8px;
}

/* ── SELFIE FALLBACK HTTP ───────────────────────────────── */
.selfie-https-warning {
  background: #fff8e6;
  border: 1px solid #f0c27f;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .875rem;
  color: #5b3c00;
}
.selfie-https-warning i { color: #d68400; font-size: 20px; flex-shrink: 0; margin-top: 2px; }

.selfie-fallback-upload {
  border: 2px dashed #8e98a4;
  border-radius: 8px;
  padding: 32px 20px;
  text-align: center;
  background: #fafcff;
  cursor: pointer;
  transition: all 0.2s;
}
.selfie-fallback-upload:hover { border-color: #2f6dd5; background: #f0f5ff; }
.selfie-fallback-upload i { font-size: 36px; color: #8e98a4; margin-bottom: 12px; display: block; }
.selfie-fallback-upload p { font-size: .9375rem; color: #454d56; margin: 0; font-weight: 600; }
.selfie-fallback-upload small { color: #5b6571; font-size: .8125rem; }

.selfie-fallback-preview {
  border-radius: 12px;
  overflow: hidden;
  max-width: 260px;
  margin: 0 auto;
  border: 3px solid #008069;
}
.selfie-fallback-preview img {
  display: block;
  width: 100%;
  height: auto;
}
/* ============================================================
   UPLOAD PROGRESS BAR (AJAX)
   ============================================================ */
.upload-progress {
  margin-top: 8px;
  padding: 10px 12px;
  background: #f2f6fc;
  border: 1px solid #d9e4f7;
  border-radius: 4px;
}
.upload-progress-bar {
  height: 6px;
  background: #2f6dd5;
  border-radius: 20px;
  width: 0%;
  transition: width 0.2s ease;
  margin-bottom: 6px;
}
.upload-progress-label {
  font-size: .75rem;
  color: #5b6571;
  font-weight: 600;
}

/* ============================================================
   BOTTONE CAMBIA FILE
   ============================================================ */
.btn-change-file {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--inps-primary);
  font-size: .875rem;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  font-family: 'Titillium Web', Arial, sans-serif;
  text-decoration: underline;
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}
.btn-change-file:hover { color: #00368f; }

/* ============================================================
   UPLOAD STATE OK / ERR
   ============================================================ */
.upload-side.upload-ok .upload-area { border-color: #008069; background: #f0fbf6; }
.upload-side.upload-ok .upload-area .upload-area-icon { color: #008069; }
.upload-side.upload-err .upload-area { border-color: #aa224f; background: #fff8f8; }
.upload-side.upload-err .upload-area .upload-area-icon { color: #aa224f; }

/* ============================================================
   STEPPER MOBILE FIX
   ============================================================ */
@media (max-width: 768px) {
  .step { margin-top: 16px; }
  .title-step {
    font-size: .65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 58px;
    margin: 4px auto 0;
  }
  .step .item span[role=step]:before {
    width: 28px;
    height: 28px;
    line-height: 28px;
    font-size: .9rem;
  }
  .step .item span[role=step]:after {
    left: calc(50% + 14px);
    width: calc(100% - 28px);
  }
}
@media (max-width: 420px) {
  .title-step { display: none; }
}

/* ============================================================
   SELFIE FALLBACK UPLOAD
   ============================================================ */
.selfie-fallback-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px dashed #8e98a4;
  border-radius: 8px;
  padding: 32px 20px;
  text-align: center;
  background: #fafcff;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0 auto;
  max-width: 320px;
}
.selfie-fallback-upload:hover { border-color: #2f6dd5; background: #f0f5ff; }
.selfie-fallback-upload i { font-size: 36px; color: #8e98a4; }
.selfie-fallback-upload p { font-size: .9375rem; color: #454d56; margin: 0; font-weight: 600; }
.selfie-fallback-upload small { color: #5b6571; font-size: .8125rem; }

/* ============================================================
   SELFIE HTTPS WARNING
   ============================================================ */
.selfie-https-warning {
  background: #fff8e6;
  border: 1px solid #f0c27f;
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .875rem;
  color: #5b3c00;
}
.selfie-https-warning i { color: #d68400; font-size: 18px; flex-shrink: 0; margin-top: 2px; }
