/* Formulários de preferências existentes: padrão visual dos cadastros,
   restrito aos IDs destas duas páginas; sem alterações nos salvamentos. */
#page-content:has(#product-preferences-form) > .card,
#page-content:has(#contact-pref-form) > .card {
  border:1px solid #c0d1e6; border-radius:8px; overflow:hidden; background:#fff;
}
#page-content:has(#product-preferences-form) > .card > .card-body,
#page-content:has(#contact-pref-form) > .card > .card-body {padding:18px}
#product-preferences-form,
#contact-pref-form {
  box-sizing:border-box; max-width:1040px!important; min-width:0;
  margin:0; padding:17px 18px;
  border:1px solid #b3c9e6; border-radius:8px; background:#f0f6fd;
}
#product-preferences-form .form-grid{
  box-sizing:border-box;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px 16px;min-width:0;margin:0;
}
#product-preferences-form .form-group.col-6{
  grid-column:auto;min-width:0;margin:0;
}
#product-preferences-form .form-label{
  margin:0 0 7px;display:block;color:#183b6a;font-size:12px;
  font-weight:700;line-height:1.4;
}
#product-preferences-form .form-control{
  box-sizing:border-box;width:100%;max-width:100%;min-width:0;
  min-height:42px;height:42px;padding:9px 12px;
  border-radius:6px;border:1px solid #b8cbe3;
  color:#1a3b67;background:white;font-size:14px;
}
#product-preferences-form > p{
  font-size:12px!important;line-height:1.55;
  padding:10px 12px;margin:12px 0 0!important;
  border:1px solid #d1dfee;border-radius:6px;background:#f7fbff;
}
#product-preferences-form > p:nth-last-of-type(1){
  color:#89520e!important;background:#fffaf0;border-color:#f1dab3;
}
#contact-pref-form{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 14px;align-items:stretch;
}
#contact-pref-form > label{
  box-sizing:border-box;min-width:0;margin:0!important;
  padding:12px!important;display:flex!important;gap:10px!important;
  align-items:center;border:1px solid #c0d2e8!important;
  border-radius:7px;background:#fff;line-height:1.45;font-size:13px!important;
  color:#213e66;
}
#contact-pref-form > label input{accent-color:#2863d9;flex:0 0 auto}
#contact-pref-form > p{
  grid-column:1/-1;margin:2px 0!important;
  font-size:12px!important;line-height:1.55;
  border:1px solid #cddded;border-radius:6px;
  background:#f7fbff;padding:10px 12px;
}
#contact-pref-form > p:nth-last-of-type(1){
  color:#89520e!important;background:#fffaf0;border-color:#f1dab3;
}
#product-preferences-form > div:last-child,
#contact-pref-form > div:last-child{
  grid-column:1/-1;display:flex!important;
  justify-content:flex-end;align-items:center;gap:10px!important;
  flex-wrap:wrap;margin:15px 0 0!important;
  border-top:1px solid #cbd8eb;padding-top:15px;
}
#product-preferences-form > div:last-child .btn,
#contact-pref-form > div:last-child .btn{min-height:40px}
@media(max-width:720px){
  #page-content:has(#product-preferences-form) > .card > .card-body,
  #page-content:has(#contact-pref-form) > .card > .card-body{padding:11px}
  #product-preferences-form,#contact-pref-form{padding:12px}
  #product-preferences-form .form-grid,#contact-pref-form{
    grid-template-columns:minmax(0,1fr);
  }
  #product-preferences-form > div:last-child .btn,
  #contact-pref-form > div:last-child .btn{flex:1 1 145px}
}
