

:root{
  --imile-blue: #1B2CC1;
  --imile-blue-dark: #0F1A80;
  --imile-blue-light: #3A4DDB;
  --imile-yellow: #FFD400;
  --imile-cyan: #00E0FF;
  --gray-50: #F5F7FB;
  --gray-100: #E8EDF5;
  --gray-300: #C3CCDD;
  --gray-600: #5C6A85;
  --gray-900: #1A2333;
  --green: #12B76A;
  --red: #F04438;
  --radius: 14px;
  --shadow-md: 0 6px 20px rgba(15,26,128,.10);
  --shadow-lg: 0 20px 50px rgba(15,26,128,.18);
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

[hidden]{ display: none !important; }

html{
  font-size: 16px;
}

body{
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

.bg-hero{
  position: fixed;
  inset: 0;
  background-image: url('van.jpg');
  background-size: cover;
  background-position: center 60%;
  z-index: -2;
}
.bg-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(27,44,193,.92) 0%,
    rgba(27,44,193,.75) 30%,
    rgba(27,44,193,.55) 55%,
    rgba(15,26,128,.85) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 1px 6px rgba(15,26,128,.05);
  min-height: 52px;
}

.brand-logo{
  height: 32px;
  width: auto;
  max-width: 90px;
  display: block;
  object-fit: contain;
  border-radius: 4px;
}

.topbar-tag{
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--imile-blue);
  background: var(--gray-50);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--gray-100);
}

.wrap{
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 16px 60px;
  position: relative;
  z-index: 1;
}

.hero-card{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 22px 18px;
  margin-bottom: 14px;
  color: #fff;
  text-align: center;
}
.hero-card h1{
  font-size: 23px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
  margin-bottom: 8px;
  color: #fff;
}
.hero-card h1 span{ color: var(--imile-yellow); display: inline-block; }
.hero-card p{
  font-size: 13.5px;
  color: rgba(255,255,255,.9);
  margin-bottom: 14px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.hero-badges{ display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  color: #fff;
}

.progresso-geral{
  background: rgba(255,255,255,.96);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--imile-yellow);
}
.progresso-info{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.progresso-label{
  font-size: 13px;
  font-weight: 800;
  color: var(--imile-blue-dark);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.progresso-contador{ font-size: 13px; color: var(--gray-600); font-weight: 600; }
.progresso-contador strong{ color: var(--imile-blue); font-weight: 900; font-size: 15px; }
.progresso-barra{
  height: 8px;
  background: var(--gray-100);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}
.progresso-preenchida{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--imile-yellow), var(--imile-cyan));
  border-radius: 999px;
  transition: width .35s ease;
}
.progresso-texto{ font-size: 12px; color: var(--gray-600); font-weight: 500; }
.progresso-texto.completo{ color: var(--green); font-weight: 800; }

.card{
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,.6);
  order: unset;
  position: relative;
}

.card-head{
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--gray-100);
}
.card-num{
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--imile-blue), var(--imile-blue-light));
  box-shadow: 0 4px 10px rgba(27,44,193,.28);
}
.card-head h2{
  font-size: 16.5px;
  font-weight: 800;
  color: var(--imile-blue-dark);
  line-height: 1.2;
}
.card-head p{ font-size: 12.5px; color: var(--gray-600); margin-top: 2px; }

.field{ margin-bottom: 16px; position: relative; }
.field:last-child{ margin-bottom: 0; }
.field label:not(.upload){
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.req{ color: var(--red); margin-left: 2px; }

.field input[type="email"],
.field input[type="tel"],
.field input[type="text"]{
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--gray-100);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--gray-50);
  transition: all .2s;
  display: block;
  appearance: none;
  -webkit-appearance: none;
}
.field input:focus{
  outline: none;
  border-color: var(--imile-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(27,44,193,.10);
}
.field input.preenchido:not(:focus){
  border-color: #A6F4C5;
  background: #F6FEF9;
}

.upload{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 2px dashed var(--gray-300);
  border-radius: 12px;
  background: var(--gray-50);
  cursor: pointer;
  transition: all .2s;
  color: var(--imile-blue);
  font-weight: 600;
  font-size: 14px;
  position: relative;
}
.upload:hover{ border-color: var(--imile-blue); background: #EEF1FF; }
.upload input[type="file"]{
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload svg{ flex-shrink: 0; }
.upload-text{ flex-shrink: 0; }
.upload-file{
  margin-left: auto;
  font-size: 12px;
  color: var(--gray-600);
  font-weight: 500;
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload.has-file{
  border-style: solid;
  border-color: var(--green);
  background: #ECFDF3;
  color: var(--green);
  padding: 10px 14px;
}
.upload.has-file .upload-text{ display: none; }
.upload.has-file .upload-file{ display: none; }

.upload-preview{ display: none; align-items: center; gap: 12px; width: 100%; }
.upload.has-file .upload-preview{ display: flex; }
.upload-preview-icon{
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid #A6F4C5;
  font-size: 20px;
}
.upload-preview-info{ flex: 1; min-width: 0; }
.upload-preview-name{
  font-size: 13px;
  font-weight: 700;
  color: #05603A;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-preview-size{
  font-size: 11px;
  color: #027A48;
  opacity: .8;
  margin-top: 1px;
}
.upload-preview-remove{
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #05603A;
  cursor: pointer;
  font-size: 16px;
  display: grid;
  place-items: center;
  transition: background .15s;
}
.upload-preview-remove:hover{ background: rgba(5,96,58,.1); }

.hint{
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 8px;
  line-height: 1.55;
}
.hint a{
  color: var(--imile-blue);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed var(--imile-blue);
}
.hint a:hover{ color: var(--imile-blue-dark); }

.testemunha-bloco{
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
.testemunha-bloco:last-child{ margin-bottom: 0; }
.testemunha-titulo{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--imile-blue-dark);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-100);
}
.testemunha-num{
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--imile-blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}

.card-final{
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FF 100%);
  margin-top: 20px;
  margin-bottom: 0;
  padding-top: 26px;
  order: 9999;
}
.card-final .card-head{ margin-bottom: 20px; }

.checkline{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 8px;
  margin-bottom: 14px;
  padding: 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  transition: all .2s;
}
.checkline input[type="checkbox"]{
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--imile-blue);
  flex-shrink: 0;
  cursor: pointer;
}
.checkline label{
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
  cursor: pointer;
}

.btn-submit{
  width: 100%;
  padding: 17px 22px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--imile-blue) 0%, var(--imile-blue-light) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(27,44,193,.35);
  transition: all .2s;
  margin-top: 6px;
}
.btn-submit:hover:not(:disabled){
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(27,44,193,.45);
}
.btn-submit:disabled{ opacity: .65; cursor: not-allowed; transform: none; }

.progress{
  height: 4px;
  background: var(--gray-100);
  border-radius: 999px;
  margin-top: 14px;
  overflow: hidden;
  opacity: 0;
  transition: opacity .3s;
}
.progress.active{ opacity: 1; }
.progress-fill{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--imile-yellow), var(--imile-cyan));
  border-radius: 999px;
  transition: width .35s ease;
}

.foot{ text-align: center; margin-top: 30px; color: rgba(255,255,255,.85); font-size: 12px; }
.foot-logo{ height: 26px; margin-bottom: 10px; opacity: .9; filter: brightness(0) invert(1); }
.foot p{ color: rgba(255,255,255,.7); }

.toast{
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 120%);
  padding: 14px 22px;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  max-width: 90vw;
  text-align: center;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}
.toast.show{ transform: translate(-50%, 0); }
.toast.success{ background: var(--green); }
.toast.error{ background: var(--red); }
.toast.info{ background: var(--imile-blue); }

.tela-sucesso{ animation: fadeInUp .5s ease; }
@keyframes fadeInUp{
  from{ opacity: 0; transform: translateY(20px); }
  to{ opacity: 1; transform: translateY(0); }
}
.sucesso-card{
  background: #fff;
  border-radius: var(--radius);
  padding: 38px 26px 30px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border-top: 5px solid var(--green);
}
.sucesso-icon{
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D1FADF, #A6F4C5);
  display: grid;
  place-items: center;
  color: var(--green);
  animation: pulseCheck .6s ease;
  box-shadow: 0 8px 24px rgba(18,183,106,.25);
}
@keyframes pulseCheck{
  0%{ transform: scale(0); opacity: 0; }
  60%{ transform: scale(1.1); }
  100%{ transform: scale(1); opacity: 1; }
}
.sucesso-card h2{
  font-size: 24px;
  font-weight: 900;
  color: var(--imile-blue-dark);
  margin-bottom: 10px;
  letter-spacing: -.02em;
}
.sucesso-card p{
  font-size: 14.5px;
  color: var(--gray-600);
  margin-bottom: 26px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.sucesso-info{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  padding: 18px;
  background: var(--gray-50);
  border-radius: 12px;
  border: 1px solid var(--gray-100);
}
.sucesso-info-item{
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-900);
  padding: 6px 0;
}
.sucesso-info-icon{ font-size: 16px; width: 24px; text-align: center; }

.btn-novo-cadastro{
  width: 100%;
  padding: 16px 22px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--imile-blue) 0%, var(--imile-blue-light) 100%);
  color: #fff;
  font-size: 15.5px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(27,44,193,.35);
  transition: all .2s;
}
.btn-novo-cadastro:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(27,44,193,.45);
}

.field-erro{ display: none; }
.field.tem-erro .field-erro,
.checkline.tem-erro + .field-erro{
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  animation: fadeInErro .25s ease;
}
.field.tem-erro .field-erro::before,
.checkline.tem-erro + .field-erro::before{
  content: "⚠";
  font-size: 14px;
  flex-shrink: 0;
}
@keyframes fadeInErro{
  from{ opacity: 0; transform: translateY(-4px); }
  to{ opacity: 1; transform: translateY(0); }
}
.field.tem-erro input[type="text"],
.field.tem-erro input[type="email"],
.field.tem-erro input[type="tel"]{
  border-color: var(--red) !important;
  background: #FEF3F2 !important;
  box-shadow: 0 0 0 4px rgba(240,68,56,.10) !important;
}
.field.tem-erro .upload{
  border-color: var(--red) !important;
  background: #FEF3F2 !important;
  color: var(--red) !important;
  animation: shake .35s ease;
}
.field.tem-erro > label:not(.upload){ color: var(--red); }
.checkline.tem-erro{
  border-color: var(--red) !important;
  background: #FEF3F2 !important;
  animation: shake .35s ease;
}
.checkline.tem-erro label{ color: var(--red); font-weight: 700; }
@keyframes shake{
  0%,100%{ transform: translateX(0); }
  20%{ transform: translateX(-6px); }
  40%{ transform: translateX(6px); }
  60%{ transform: translateX(-4px); }
  80%{ transform: translateX(4px); }
}
.card-final .field-erro{
  margin: -8px 0 14px 0 !important;
  display: none;
}
.card-final .checkline.tem-erro + .field-erro{ display: flex; }
.field-erro:empty{ display: none !important; }

.termo-bloco{
  background: linear-gradient(135deg, #FFF9E6 0%, #FFF4D0 100%);
  border: 2px solid #FFD400;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 22px;
}
.termo-head{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #E5B800;
}
.termo-icon{
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
  border: 1px solid #FFD400;
}
.termo-head h3{
  font-size: 15px;
  font-weight: 800;
  color: #7A4E00;
  line-height: 1.2;
  margin: 0;
}
.termo-head p{ font-size: 12px; color: #92640F; margin-top: 2px; }

.termo-resumo{
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid #FFE9A8;
}
.termo-linha{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  gap: 12px;
}
.termo-linha + .termo-linha{ border-top: 1px solid #FFF4D0; }
.termo-lbl{ color: #7A4E00; font-weight: 600; }
.termo-val{ color: #1A2333; font-weight: 800; text-align: right; }

.btn-abrir-termo{
  width: 100%;
  padding: 14px 20px;
  border: 2px solid var(--imile-blue);
  border-radius: 10px;
  background: var(--imile-blue);
  color: #fff;
  font-size: 14.5px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s;
}
.btn-abrir-termo:hover:not(:disabled){
  background: var(--imile-blue-dark);
  border-color: var(--imile-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(27,44,193,.28);
}
.btn-abrir-termo:disabled{
  background: var(--gray-300);
  border-color: var(--gray-300);
  cursor: not-allowed;
  opacity: .7;
  transform: none;
  box-shadow: none;
}
.btn-abrir-termo:disabled:hover{
  background: var(--gray-300);
  border-color: var(--gray-300);
  transform: none;
  box-shadow: none;
}
.btn-abrir-termo.liberado{
  animation: pulseBtn 1.5s ease infinite;
}
@keyframes pulseBtn{
  0%, 100%{ box-shadow: 0 0 0 0 rgba(27,44,193,.5); }
  50%{ box-shadow: 0 0 0 10px rgba(27,44,193,0); }
}

.status-termo{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #EEF3FF;
  border: 1px solid #C7D5FF;
  border-radius: 10px;
  animation: fadeIn .3s ease;
}
.status-termo-icon{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--imile-blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}
.status-termo-txt{ flex: 1; display: flex; flex-direction: column; }
.status-termo-txt strong{ font-size: 13.5px; color: var(--imile-blue-dark); font-weight: 800; }
.status-termo-txt span{ font-size: 12px; color: #43578A; margin-top: 3px; }

.btn-rever-termo{
  padding: 6px 12px;
  border: 1px solid #C7D5FF;
  background: #fff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--imile-blue-dark);
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.btn-rever-termo:hover{
  background: var(--imile-blue);
  color: #fff;
  border-color: var(--imile-blue);
}

.modal-pendentes{
  position: fixed;
  inset: 0;
  background: rgba(15,26,128,.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 10000;
  animation: fadeIn .25s ease;
}
.modal-pendentes[hidden]{ display: none !important; }

.modal-pendentes-content{
  background: #fff;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px 24px 24px;
  box-shadow: 0 25px 70px rgba(0,0,0,.35);
  animation: popIn .3s cubic-bezier(.34,1.56,.64,1);
}
.modal-pendentes-header{
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gray-100);
}
.modal-pendentes-icon{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FEF3F2;
  border: 2px solid #FECDCA;
  display: grid;
  place-items: center;
  font-size: 26px;
  margin: 0 auto 14px;
}
.modal-pendentes-header h2{
  font-size: 19px;
  font-weight: 900;
  color: var(--imile-blue-dark);
  margin-bottom: 6px;
}
.modal-pendentes-header p{
  font-size: 13.5px;
  color: var(--gray-600);
  line-height: 1.5;
}
.modal-pendentes-list{
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-pendentes-list li{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #FEF3F2;
  border: 1px solid #FECDCA;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #912018;
  cursor: pointer;
  transition: all .15s;
}
.modal-pendentes-list li:hover{
  background: #FEE4E2;
  border-color: #FDA29B;
  transform: translateX(2px);
}
.modal-pendentes-list li:focus-visible{ outline: 3px solid var(--imile-blue); outline-offset: 2px; }
.modal-pendentes-list li .pendente-icone{
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
  border: 1px solid #FECDCA;
}
.modal-pendentes-list li .pendente-txt{ flex: 1; }

.btn-fechar-pendentes{
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--imile-blue) 0%, var(--imile-blue-light) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(27,44,193,.35);
  transition: all .2s;
}
.btn-fechar-pendentes:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(27,44,193,.45);
}

.modal-termo{
  position: fixed;
  inset: 0;
  background: rgba(15,26,128,.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 9999;
  animation: fadeIn .25s ease;
}
.modal-termo[hidden]{ display: none !important; }

.modal-termo-content{
  background: #fff;
  border-radius: 16px;
  max-width: 620px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 70px rgba(0,0,0,.35);
  overflow: hidden;
  animation: popIn .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes popIn{
  from{ transform: scale(.94); opacity: 0; }
  to{ transform: scale(1); opacity: 1; }
}
@keyframes fadeIn{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

.modal-termo-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--gray-100);
  background: linear-gradient(135deg, var(--imile-blue) 0%, var(--imile-blue-light) 100%);
  color: #fff;
}
.modal-termo-header h2{
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.modal-termo-close{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s;
  line-height: 1;
}
.modal-termo-close:hover{ background: rgba(255,255,255,.3); }

.modal-termo-body{
  padding: 26px 24px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  line-height: 1.7;
  color: var(--gray-900);
}
.modal-termo-body h1{
  font-size: 19px;
  font-weight: 900;
  color: var(--imile-blue-dark);
  margin-bottom: 18px;
  line-height: 1.3;
}
.termo-intro{ font-size: 14px; margin-bottom: 16px; }
.termo-lista{
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}
.termo-lista li{
  padding: 12px 14px;
  background: var(--gray-50);
  border-left: 4px solid var(--imile-blue);
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 13.5px;
  line-height: 1.55;
}
.termo-lista li strong{ color: var(--imile-blue-dark); }

.termo-pergunta{
  background: #FFF9E6;
  border: 1px solid #FFD400;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 14px;
}
.termo-pergunta strong{ color: #7A4E00; }
.termo-declaracao{
  font-size: 13.5px;
  color: var(--gray-600);
  margin-bottom: 24px;
  font-style: italic;
}

.termo-assinatura{
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px dashed var(--gray-100);
}
.termo-assinatura-linha{
  height: 1px;
  background: var(--gray-300);
  margin-bottom: 10px;
}
.termo-assinatura-info{ text-align: center; }
.termo-assinatura-lbl{
  font-size: 11px;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
}
.termo-assinatura-nome{
  font-size: 15px;
  font-weight: 800;
  color: var(--imile-blue-dark);
  margin-top: 4px;
  word-break: break-word;
}
.termo-assinatura-tel{
  font-size: 13px;
  color: var(--gray-600);
  margin-top: 3px;
  font-weight: 600;
}
.termo-assinatura-data{
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 2px;
}

.modal-termo-footer{
  padding: 16px 22px 20px;
  border-top: 1px solid var(--gray-100);
  background: #F7F9FF;
}
.modal-termo-check{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1.5px solid var(--gray-100);
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 14px;
  transition: all .15s;
  position: relative;
}
.modal-termo-check:hover{ border-color: var(--imile-blue); }
.modal-termo-check input[type="checkbox"]{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.modal-termo-check-mark{
  width: 22px;
  height: 22px;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 1px;
  display: grid;
  place-items: center;
  transition: all .15s;
  background: #fff;
  position: relative;
}
.modal-termo-check-mark::after{
  content: "";
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .15s;
  margin-top: -2px;
}
.modal-termo-check input:checked + .modal-termo-check-mark{
  background: var(--green);
  border-color: var(--green);
}
.modal-termo-check input:checked + .modal-termo-check-mark::after{
  transform: rotate(45deg) scale(1);
}
.modal-termo-check-txt{ display: flex; flex-direction: column; gap: 3px; }
.modal-termo-check-txt strong{
  font-size: 13.5px;
  color: var(--gray-900);
  font-weight: 700;
}
.modal-termo-check-txt small{
  font-size: 11.5px;
  color: var(--gray-600);
  font-weight: 500;
}

.btn-aceitar-termo{
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green) 0%, #0E9B5F 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(18,183,106,.35);
  transition: all .2s;
}
.btn-aceitar-termo:hover:not(:disabled){
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(18,183,106,.45);
}
.btn-aceitar-termo:disabled{
  background: var(--gray-300);
  box-shadow: none;
  cursor: not-allowed;
  opacity: .7;
}

@media (max-width: 420px){
  .topbar{ padding: 6px 12px; min-height: 46px; }
  .brand-logo{ height: 28px; max-width: 80px; }
  .topbar-tag{ font-size: 9.5px; padding: 4px 8px; }
  .hero-card{ padding: 18px 14px; }
  .hero-card h1{ font-size: 20px; }
  .hero-card p{ font-size: 13px; }
  .card{ padding: 20px 16px; }
  .card-head h2{ font-size: 15px; }
  .card-num{ width: 34px; height: 34px; font-size: 14px; }
  .wrap{ padding: 12px 12px 50px; }
  .sucesso-card{ padding: 30px 20px 26px; }
  .sucesso-icon{ width: 76px; height: 76px; }
  .sucesso-card h2{ font-size: 20px; }
  .sucesso-card p{ font-size: 13.5px; }
  .field.tem-erro .field-erro,
  .checkline.tem-erro + .field-erro{ font-size: 11.5px; }

  .modal-termo{
    padding: 0;
    align-items: flex-end;
  }
  .modal-termo-content{
    max-height: 95vh;
    border-radius: 20px 20px 0 0;
  }
  .modal-termo-body{ padding: 20px 18px; }
  .modal-termo-body h1{ font-size: 17px; }
  .termo-lista li{ font-size: 13px; padding: 10px 12px; }

  .modal-pendentes-content{ padding: 22px 18px 18px; }
  .modal-pendentes-header h2{ font-size: 17px; }
  .modal-pendentes-list li{ font-size: 12.5px; padding: 10px 12px; }
}

.wrap{ max-width: 760px; padding-top: 24px; }
.topbar{ padding-inline: max(20px, calc((100vw - 720px) / 2)); }
.hero-card{
  padding: 30px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(15,26,128,.78), rgba(27,44,193,.42));
  box-shadow: 0 18px 50px rgba(5,12,65,.18);
}
.hero-card h1{ font-size: clamp(25px, 4vw, 34px); }
.hero-card p{ font-size: 15px; line-height: 1.65; }
.progresso-geral,.card{ border-radius: 18px; }
.card{ padding: 26px; transition: box-shadow .2s ease, transform .2s ease; }
.card:hover{ box-shadow: 0 14px 34px rgba(15,26,128,.13); }
.card-head{ gap: 14px; }
.card-head h2{ font-size: 18px; }
.card-head p{ margin-top: 3px; }
.field label:not(.upload){ font-size: 13px; margin-bottom: 7px; }
.field input[type="email"],.field input[type="tel"],.field input[type="text"]{
  min-height: 48px; border-radius: 11px; padding-inline: 14px; font-size: 14px;
}
.upload{ min-height: 58px; border-radius: 12px; }
.btn-submit,.btn-abrir-termo{ min-height: 54px; border-radius: 12px; }
button:focus-visible,a:focus-visible,input:focus-visible,.upload:focus-within{
  outline: 3px solid rgba(255,212,0,.8); outline-offset: 3px;
}

@media (min-width: 680px){
  #formEntregador > .card:first-child,
  #formEntregador > .card:nth-child(3){
    display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 18px;
  }
  #formEntregador > .card:first-child > .card-head,
  #formEntregador > .card:nth-child(3) > .card-head{ grid-column: 1 / -1; }
  #formEntregador > .card:nth-child(3) > .testemunha-bloco{ grid-column: 1 / -1; }
  .testemunha-bloco{ display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; }
  .testemunha-titulo{ grid-column: 1 / -1; }
  #formEntregador > .card:nth-child(2){
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 18px;
  }
  #formEntregador > .card:nth-child(2) > .card-head{ grid-column: 1 / -1; }
}

@media (max-width: 600px){
  .wrap{ padding-top: 14px; }
  .topbar{ padding-inline: 12px; }
  .hero-card{ padding: 22px 16px; }
  .card{ padding: 20px 17px; }
}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
