
/* =========================================================
   CHINA VISA APPLICATION — CLEAN FINAL POLISH
   Target: current apply.php classes only
   Backend/PHP/Promo logic untouched
   ========================================================= */

/* ---------- Desktop / base refinements ---------- */

.apply-shell{
  padding-top:24px;
  padding-bottom:64px;
}

.apply-head{
  margin-bottom:12px;
  align-items:flex-end;
}

.apply-head h1{
  margin-top:6px;
  margin-bottom:3px;
  font-size:34px;
  line-height:1.08;
  letter-spacing:-1.3px;
}

.apply-head p{
  margin:0;
  font-size:11px;
}

.save-note{
  font-size:10px;
  margin-bottom:2px;
}

.wizard{
  margin-top:0;
  border-radius:22px;
  box-shadow:0 18px 46px rgba(17,27,67,.055);
}

.wizard-progress{
  padding:18px 28px;
}

.wizard-step{
  font-size:9px;
  gap:7px;
}

.wizard-step i{
  width:25px;
  height:25px;
}

.wizard-line{
  margin:0 11px;
}

.form-pane{
  padding:30px 34px 10px;
  min-height:0;
}

.pane-title{
  margin-bottom:20px;
}

.pane-title>span{
  font-size:9px;
}

.pane-title h2{
  font-size:24px;
  line-height:1.2;
  letter-spacing:-.6px;
  margin:6px 0;
}

.pane-title p{
  font-size:10.5px;
  line-height:1.55;
}

.entry-cards{
  gap:10px;
  margin-bottom:14px;
}

.entry-card{
  border-radius:15px;
  padding:15px 16px;
}

.entry-card .entry-name{
  font-size:11px;
}

.entry-card strong{
  font-size:19px;
  margin:8px 0 5px;
}

.entry-card small{
  font-size:9px;
}

.entry-check{
  right:12px;
  top:12px;
  width:18px;
  height:18px;
}

.eligibility-panel{
  grid-template-columns:1fr 200px;
  gap:18px;
  border-radius:15px;
  padding:13px 15px;
  margin-bottom:16px;
}

.eligibility-panel strong{
  font-size:11px;
  margin:4px 0;
}

.eligibility-panel p{
  font-size:9px;
}

.compact-field span,
.field>span{
  font-size:9px;
  margin-bottom:6px;
}

.field-grid{
  gap:12px 14px;
}

.field input,
.field select,
.compact-field input,
.promo-input input{
  border-radius:10px;
  padding:11px 12px;
  font-size:11px;
  min-height:46px;
}

.info-card{
  border-radius:13px;
  padding:13px;
  margin-top:15px;
}

.info-card i{
  width:22px;
  height:22px;
  font-size:10px;
}

.info-card strong{
  font-size:10px;
}

.info-card p{
  font-size:9px;
}

.upload-grid{
  gap:11px;
}

.upload-card{
  border-radius:15px;
  padding:18px;
}

.upload-icon{
  width:34px;
  height:34px;
  border-radius:11px;
  margin-bottom:10px;
}

.upload-card strong{
  font-size:11px;
}

.upload-card small{
  font-size:9px;
  margin:3px 0 12px;
}

.upload-card em{
  font-size:8.5px;
  padding:6px 10px;
}

.file-name{
  font-size:8.5px;
}

.office-card{
  border-radius:15px;
  padding:15px 17px;
  margin-top:13px;
}

.office-card h3{
  font-size:12px;
}

.office-card p{
  font-size:9px;
}

.review-layout{
  grid-template-columns:1fr 290px;
  gap:14px;
}

.review-main{
  gap:11px;
}

.review-card,
.promo-card,
.price-card{
  border-radius:15px;
  padding:16px;
}

.review-card h3,
.promo-card h3,
.price-card h3{
  font-size:12px;
  margin:3px 0 12px;
}

.summary-grid{
  gap:10px;
}

.summary-grid span{
  font-size:8px;
}

.summary-grid b{
  font-size:10px;
}

.promo-card{
  gap:12px;
}

.promo-message{
  font-size:9px;
}

.consent-card{
  border-radius:14px;
  padding:13px;
}

.consent-card b{
  font-size:10px;
}

.consent-card small{
  font-size:8.5px;
}

.price-line{
  font-size:9px;
  padding:6px 0;
}

.price-total span{
  font-size:9px;
}

.price-total strong{
  font-size:21px;
}

.price-card>p{
  font-size:8.5px;
}

.wizard-actions{
  position:sticky;
  bottom:0;
  z-index:15;
  padding:13px 28px;
  background:rgba(251,252,254,.96);
  backdrop-filter:blur(10px);
}

.wizard-actions .btn{
  min-width:118px;
  min-height:46px;
  padding:12px 20px;
  font-size:13px;
  font-weight:700;
}

.step-counter{
  font-size:9px;
}

/* ---------- Wider desktop ---------- */

@media (min-width:1200px){
  .apply-shell .container{
    width:min(88vw,1540px);
  }
}

/* ---------- Tablet ---------- */

@media (max-width:900px){
  .apply-head{
    align-items:flex-start;
  }

  .review-layout{
    grid-template-columns:1fr;
  }

  .eligibility-panel{
    grid-template-columns:1fr;
  }
}

/* ---------- Mobile ---------- */

@media (max-width:650px){

  .apply-shell{
    padding-top:16px;
    padding-bottom:44px;
  }

  .apply-head{
    margin-bottom:10px;
  }

  .apply-head h1{
    font-size:34px;
    line-height:1.05;
    letter-spacing:-1.3px;
  }

  .apply-head p{
    font-size:11px;
  }

  .save-note{
    margin-top:8px;
  }

  .wizard{
    border-radius:20px;
  }

  .wizard-progress{
    padding:13px 15px;
  }

  .wizard-step span{
    display:none;
  }

  .wizard-step i{
    width:25px;
    height:25px;
  }

  .wizard-line{
    min-width:24px;
    margin:0 8px;
  }

  .form-pane{
    padding:22px 15px 8px;
  }

  .pane-title{
    margin-bottom:18px;
  }

  .pane-title h2{
    font-size:25px;
    line-height:1.15;
    margin-bottom:8px;
  }

  .pane-title p{
    font-size:11px;
    line-height:1.5;
  }

  .entry-cards{
    grid-template-columns:1fr !important;
    gap:10px !important;
  }

  .entry-card{
    position:relative !important;
    min-height:0 !important;
    height:auto !important;
    padding:15px 16px !important;
    border-radius:15px !important;
    display:grid !important;
    grid-template-columns:1fr auto !important;
    grid-template-rows:auto auto auto !important;
    row-gap:4px !important;
    align-items:center !important;
    margin:0 !important;
  }

  .entry-card .entry-name{
    grid-column:1 !important;
    margin:0 !important;
    font-size:15px !important;
    line-height:1.25 !important;
  }

  .entry-card strong{
    grid-column:1 !important;
    margin:3px 0 !important;
    font-size:22px !important;
    line-height:1.15 !important;
  }

  .entry-card small{
    grid-column:1 !important;
    margin:0 !important;
    font-size:11px !important;
    line-height:1.3 !important;
  }

  .entry-card .entry-check{
    position:absolute !important;
    top:15px !important;
    right:15px !important;
  }

  .eligibility-panel{
    padding:14px;
    gap:12px;
  }

  .field-grid{
    grid-template-columns:1fr;
    gap:11px;
  }

  .field.span-2{
    grid-column:auto;
  }

  .field input,
  .field select,
  .compact-field input,
  .promo-input input{
    min-height:48px;
    font-size:16px !important;
    border-radius:11px;
  }

  .upload-grid{
    grid-template-columns:1fr;
  }

  .upload-card{
    padding:16px;
  }

  .office-card{
    align-items:flex-start;
  }

  .summary-grid{
    grid-template-columns:1fr;
  }

  .promo-card{
    grid-template-columns:1fr;
  }

  .price-card{
    order:-1;
  }

  .wizard-actions{
    padding:11px 15px;
    gap:8px;
  }

  .wizard-actions .btn{
    min-width:0;
    min-height:48px;
    padding:11px 14px;
    font-size:12px;
  }

  .wizard-actions #backBtn{
    flex:0 0 auto;
  }

  .wizard-actions #nextBtn,
  .wizard-actions #submitBtn{
    flex:1 1 auto;
  }
}
