/* v611U — Hard nationality extra information fields */
.hard-nationality-section-v611U.hidden,
.conditional-field-v611U.hidden{
  display:none !important;
}
.hard-nationality-section-v611U{
  border:1px solid #fde68a !important;
  background:linear-gradient(180deg,#fffbeb,#ffffff) !important;
  border-radius:24px !important;
  padding:20px !important;
  box-shadow:0 18px 46px rgba(146,64,14,.08) !important;
}
.hard-nationality-section-v611U h3{
  margin-top:0 !important;
  color:#92400e !important;
}
.hard-subsection-v611U{
  margin-top:18px !important;
  padding-top:16px !important;
  border-top:1px solid rgba(251,191,36,.55) !important;
}
.hard-subsection-v611U h4{
  margin:0 0 12px !important;
  color:#0f172a !important;
}
.yesno-field-v611U{
  border:1px solid #e2e8f0 !important;
  border-radius:18px !important;
  padding:13px 14px !important;
  background:#fff !important;
}
.yesno-field-v611U legend{
  padding:0 5px !important;
  font-weight:850 !important;
  color:#0f172a !important;
}
.yesno-field-v611U label{
  display:inline-flex !important;
  align-items:center !important;
  gap:7px !important;
  margin-right:16px !important;
  margin-top:8px !important;
  cursor:pointer !important;
}
.yesno-field-v611U input[type="radio"]{
  width:auto !important;
  min-height:auto !important;
}
.hard-reuse-note-v611U{
  margin-top:16px !important;
  padding:14px 16px !important;
  border-radius:16px !important;
  background:#fff7ed !important;
  border:1px solid #fed7aa !important;
  color:#9a3412 !important;
}
@media(max-width:720px){
  .hard-nationality-section-v611U{
    padding:16px !important;
    border-radius:18px !important;
  }
  .yesno-field-v611U label{
    display:flex !important;
    margin-right:0 !important;
  }
}

/* v676A — keep special-handling section compact after applicant uploads */
body:has(#orderForm) .hard-nationality-section-v611U{
  margin-top:18px !important;
  margin-bottom:18px !important;
  padding:18px 20px !important;
}
body:has(#orderForm) .hard-nationality-section-v611U h3{
  font-size:22px !important;
  line-height:1.25 !important;
  margin-bottom:6px !important;
}
body:has(#orderForm) .hard-nationality-section-v611U .compact-note{
  margin:0 0 14px !important;
  font-size:14px !important;
  line-height:1.55 !important;
}
body:has(#orderForm) .hard-nationality-grid-v611U{
  align-items:start !important;
}
body:has(#orderForm) .hard-nationality-grid-v611U > label,
body:has(#orderForm) .hard-nationality-grid-v611U > fieldset{
  min-width:0 !important;
}
body:has(#orderForm) .yesno-field-v611U{
  min-height:0 !important;
  padding:14px 16px !important;
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:10px 18px !important;
}
body:has(#orderForm) .yesno-field-v611U legend{
  width:100% !important;
  float:none !important;
  padding:0 !important;
  margin:0 0 8px !important;
  font-size:15px !important;
  line-height:1.35 !important;
  white-space:normal !important;
}
body:has(#orderForm) .yesno-field-v611U label{
  width:auto !important;
  min-width:auto !important;
  max-width:none !important;
  display:inline-flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:8px !important;
  margin:0 !important;
  padding:6px 10px !important;
  border:1px solid rgba(148,163,184,.35) !important;
  border-radius:999px !important;
  background:#fff !important;
  color:#0f172a !important;
  font-size:15px !important;
  line-height:1.2 !important;
  font-weight:750 !important;
  letter-spacing:0 !important;
  white-space:nowrap !important;
}
body:has(#orderForm) .yesno-field-v611U input[type="radio"]{
  width:18px !important;
  min-width:18px !important;
  max-width:18px !important;
  height:18px !important;
  min-height:18px !important;
  max-height:18px !important;
  padding:0 !important;
  margin:0 !important;
  flex:0 0 18px !important;
}
body:has(#orderForm) .hard-subsection-v611U{
  margin-top:16px !important;
  padding-top:14px !important;
}
body:has(#orderForm) .hard-subsection-v611U h4{
  font-size:18px !important;
  line-height:1.3 !important;
}
@media(max-width:720px){
  body:has(#orderForm) .yesno-field-v611U{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  body:has(#orderForm) .yesno-field-v611U legend,
  body:has(#orderForm) .yesno-field-v611U .field-error{
    grid-column:1/-1 !important;
  }
  body:has(#orderForm) .yesno-field-v611U label{
    justify-content:center !important;
  }
}

/* v680A — align special-handling layout cleanly and stack Yes/No questions vertically */
body:has(#orderForm) .hard-nationality-grid-v611U > label{
  display:flex !important;
  flex-direction:column !important;
}
body:has(#orderForm) .hard-nationality-grid-v611U > label > .field-label-title{
  display:block !important;
  min-height:44px !important;
  margin-bottom:8px !important;
}
body:has(#orderForm) .hard-nationality-grid-v611U > label > input,
body:has(#orderForm) .hard-nationality-grid-v611U > label > textarea{
  margin-top:0 !important;
}
body:has(#orderForm) .hard-yesno-stack-v680A{
  padding:12px 14px !important;
  gap:8px !important;
  align-items:flex-start !important;
}
body:has(#orderForm) .hard-yesno-stack-v680A legend{
  margin:0 !important;
  font-size:15px !important;
  line-height:1.4 !important;
}
body:has(#orderForm) .hard-yesno-stack-v680A .yesno-options-v680A{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
  width:100% !important;
}
body:has(#orderForm) .hard-yesno-stack-v680A .yesno-options-v680A label{
  min-width:120px !important;
  margin:0 !important;
  padding:8px 14px !important;
  border-radius:999px !important;
  border:1px solid #cfd8e3 !important;
  background:#fff !important;
  box-shadow:none !important;
}
body:has(#orderForm) .hard-yesno-stack-v680A .yesno-options-v680A label:has(input:checked){
  border-color:#2563eb !important;
  background:#eff6ff !important;
}
body:has(#orderForm) .hard-yesno-stack-v680A .field-error{
  width:100% !important;
  margin-top:2px !important;
}
body:has(#orderForm) .hard-detail-row-v680A > .field-label-title{
  min-height:0 !important;
}
body:has(#orderForm) .hard-subsection-v611U .hard-nationality-grid-v611U{
  gap:14px 24px !important;
}
@media(max-width:720px){
  body:has(#orderForm) .hard-nationality-grid-v611U > label > .field-label-title{
    min-height:0 !important;
  }
  body:has(#orderForm) .hard-yesno-stack-v680A .yesno-options-v680A{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  body:has(#orderForm) .hard-yesno-stack-v680A .yesno-options-v680A label{
    min-width:0 !important;
    justify-content:center !important;
  }
}

/* v681A — entry/exit ports are only required for Group 3 special-handling nationalities */
body:has(#orderForm) [data-hard-nationality-port-field].hidden{
  display:none !important;
}


/* v682A — remove misaligned white Yes/No fieldset boxes and use clean rows */
body:has(#orderForm) .hard-yesno-stack-v680A{
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  border-radius:0 !important;
  padding:6px 0 10px !important;
  margin:2px 0 0 !important;
  display:block !important;
  min-height:0 !important;
}
body:has(#orderForm) .hard-yesno-stack-v680A legend{
  display:block !important;
  float:none !important;
  width:100% !important;
  max-width:100% !important;
  padding:0 !important;
  margin:0 0 10px !important;
  font-size:17px !important;
  line-height:1.35 !important;
  font-weight:850 !important;
  color:#0f172a !important;
}
body:has(#orderForm) .hard-yesno-stack-v680A .yesno-options-v680A{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:10px 12px !important;
  width:100% !important;
  padding:0 !important;
  margin:0 !important;
}
body:has(#orderForm) .hard-yesno-stack-v680A .yesno-options-v680A label{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  width:auto !important;
  min-width:112px !important;
  min-height:42px !important;
  padding:8px 16px !important;
  margin:0 !important;
  border:1px solid #cbd5e1 !important;
  border-radius:999px !important;
  background:#fff !important;
  color:#0f172a !important;
  font-size:16px !important;
  font-weight:800 !important;
  line-height:1 !important;
  box-shadow:0 4px 10px rgba(15,23,42,.04) !important;
  cursor:pointer !important;
}
body:has(#orderForm) .hard-yesno-stack-v680A .yesno-options-v680A label:has(input:checked){
  border-color:#2563eb !important;
  background:#eff6ff !important;
  box-shadow:0 0 0 3px rgba(37,99,235,.10) !important;
}
body:has(#orderForm) .hard-yesno-stack-v680A .yesno-options-v680A input[type="radio"]{
  width:18px !important;
  min-width:18px !important;
  max-width:18px !important;
  height:18px !important;
  min-height:18px !important;
  max-height:18px !important;
  margin:0 !important;
  padding:0 !important;
  flex:0 0 18px !important;
}
body:has(#orderForm) .hard-yesno-stack-v680A .field-error{
  display:block !important;
  width:100% !important;
  margin-top:6px !important;
}
@media(max-width:720px){
  body:has(#orderForm) .hard-yesno-stack-v680A{
    display:block !important;
  }
  body:has(#orderForm) .hard-yesno-stack-v680A .yesno-options-v680A{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  body:has(#orderForm) .hard-yesno-stack-v680A .yesno-options-v680A label{
    min-width:0 !important;
    width:100% !important;
  }
}
