/* Our enquiry form and pop-up, replacing IndiaMart's. Kept close to the old site's look. */
.snf-form { display: grid; gap: 8px; max-width: 420px; margin: 0 auto; font: 13px/1.4 Arial, sans-serif; color: #333; text-align: left; }
.snf-form label { display: grid; gap: 3px; font-weight: bold; color: #5079ba; }
.snf-form input, .snf-form textarea { font: 14px Arial, sans-serif; padding: 7px 8px; border: 1px solid #c6c6c6; border-radius: 3px; width: 100%; box-sizing: border-box; color: #333; }
.snf-form textarea { resize: vertical; }
.snf-form button { justify-self: start; font: bold 14px Arial, sans-serif; color: #fff; background: #5079ba; border: 0; border-radius: 3px; padding: 9px 22px; cursor: pointer; }
.snf-form button:disabled { opacity: .6; cursor: default; }
.snf-status { margin: 0; min-height: 1em; }
.snf-status.is-ok { color: #1d7a2e; font-weight: bold; }
.snf-status.is-error { color: #c0262d; font-weight: bold; }
.snf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.snf-form--side { max-width: 200px; }
.snf-enquiry-intro { font: 13px/1.5 Arial, sans-serif; margin: 0 0 12px; color: #333; }

.snf-dialog { border: 0; border-radius: 6px; padding: 18px 20px 20px; width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-sizing: border-box; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.snf-dialog[open] { margin: auto; position: fixed; inset: 0; z-index: 2147483647; overflow: auto; }
.snf-dialog [hidden] { display: none !important; }
.snf-dialog label, .snf-form label { text-align: left; font-size: 13px; }
.snf-dialog::backdrop { background: rgba(0,0,0,.55); }
.snf-dialog-title { margin: 0 32px 14px 0; font: bold 17px Arial, sans-serif; color: #8067b0; }
.snf-dialog-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: start; }
.snf-dialog-img { border: 1px solid #eee; padding: 8px; text-align: center; }
.snf-dialog-img img { max-width: 100%; height: auto; }
.snf-dialog .snf-form { max-width: none; }
/* Phones and small tablets: the old fixed 1003px table layout, unstacked into one column. */
@media (max-width: 820px) {
  html, body { overflow-x: hidden; }
  body { -webkit-text-size-adjust: 100%; }
  .main, .main1, .ad1, .wi, .wi1, .wi2, .wi4, .bd { width: auto !important; }
  table, tbody, tr, td, th { display: block; width: auto !important; height: auto !important; box-sizing: border-box; }
  table { max-width: 100%; }
  td[background], table[background] { background-size: cover; }
  img { max-width: 100%; height: auto; }
  iframe, video, embed, object { max-width: 100%; }
  div { max-width: 100%; box-sizing: border-box; }
  [style*="width"] { max-width: 100% !important; }
  table[align], img[align] { float: none !important; }
  /* 1px spacer GIFs: with height:auto they grow as tall as they are wide. */
  img[src*="zero.gif"] { display: none !important; }
  td[align="CENTER" i] > table, td[align="center" i] > table, div[align="CENTER" i] > table { margin-left: auto; margin-right: auto; }
  /* Content first, then the category list, then the bottom links and footer. */
  .main { display: flex; flex-direction: column; }
  .main > *:has(#lft-table) { order: 1; margin-top: 16px; }
  .main > div[style*="clear"], .main > .footer, .main > br { order: 2; }
  /* Menu rows: wrap the links instead of one per line; drop the divider images. */
  tr:has(> td.top-link), td[background*="bg-link"] tr { display: flex; flex-wrap: wrap; justify-content: center; }
  td.top-link, td[background*="bg-link"] td { display: inline-block; padding: 7px 9px; }
  td.top-link:not(:has(a)), td[background*="bg-link"] td:not(:has(a)) { display: none; }
  td[background*="bg-link"] { background-size: auto 100%; }
}

.snf-close { position: absolute; top: 8px; right: 10px; font: 26px/1 Arial, sans-serif; background: none; border: 0; color: #666; cursor: pointer; }
