/* Allchem brochure request popup — scoped with .acb- prefix so it never
   clashes with the website's own CSS (Bootstrap / Canvas theme). */
.acb-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(13, 20, 56, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; transition: opacity .2s ease;
  font-family: Inter, "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
.acb-overlay.acb-open { opacity: 1; }
.acb-dialog {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(17, 27, 86, .3);
  transform: translateY(14px) scale(.98); opacity: 0; transition: transform .25s cubic-bezier(.2,.7,.2,1), opacity .25s;
  color: #202938; text-align: left; font-size: 15px; line-height: 1.5;
}
.acb-open .acb-dialog { transform: none; opacity: 1; }
.acb-dialog *, .acb-dialog *::before, .acb-dialog *::after { box-sizing: border-box; }
.acb-head { padding: 26px 28px 18px; background: linear-gradient(135deg, #111B56 0%, #1C2F91 100%); color: #fff; border-radius: 18px 18px 0 0; position: relative; }
.acb-head h2 { margin: 10px 0 6px; font-size: 23px; font-weight: 700; color: #fff; line-height: 1.25; }
.acb-head p { margin: 0; color: #C9D0EE; font-size: 14.5px; }
.acb-badge { display: inline-block; background: #ED1C24; color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; letter-spacing: .02em; }
.acb-close { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.acb-close:hover { background: rgba(255,255,255,.22); }
.acb-body { padding: 22px 28px 26px; }
.acb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.acb-field { display: flex; flex-direction: column; gap: 6px; margin: 0; font-weight: 400; }
.acb-field > span { font-size: 13.5px; font-weight: 600; color: #2A3242; }
.acb-field i { color: #ED1C24; font-style: normal; }
.acb-wide { grid-column: 1 / -1; }
.acb-field input, .acb-field select, .acb-field textarea {
  width: 100%; height: 44px; padding: 0 13px; margin: 0;
  border: 1px solid #E4E8F0; border-radius: 10px; background: #fff;
  font: inherit; font-size: 14.5px; color: #202938; box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}
.acb-field textarea { height: auto; padding: 10px 13px; resize: vertical; }
.acb-field input:focus, .acb-field select:focus, .acb-field textarea:focus { outline: none; border-color: #2857B8; box-shadow: 0 0 0 3px rgba(40,87,184,.18); }
.acb-field.acb-invalid input, .acb-field.acb-invalid select, .acb-field.acb-invalid textarea { border-color: #ED1C24; }
.acb-err { color: #C8121A; font-size: 12.5px; }
.acb-consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; font-size: 13px; color: #4B5363; font-weight: 400; cursor: pointer; }
.acb-consent input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: #ED1C24; flex-shrink: 0; }
.acb-consent.acb-invalid span { color: #C8121A; }
.acb-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.acb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border: 0; border-radius: 11px;
  background: linear-gradient(135deg, #EE2A31 0%, #C9151C 100%); color: #fff !important;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none !important; cursor: pointer;
  box-shadow: 0 8px 18px rgba(237, 28, 36, .28); transition: transform .1s, box-shadow .15s;
}
.acb-btn:hover { box-shadow: 0 10px 24px rgba(237, 28, 36, .36); }
.acb-btn:active { transform: translateY(1px); }
.acb-btn-outline { background: #fff; color: #111B56 !important; border: 1px solid #E4E8F0; box-shadow: none; }
.acb-btn-outline:hover { border-color: #C9D1E0; box-shadow: none; }
.acb-submit { width: 100%; margin-top: 18px; }
.acb-btn[disabled] { opacity: .7; pointer-events: none; }
.acb-btn .acb-spin { width: 16px; height: 16px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: acb-spin .7s linear infinite; }
@keyframes acb-spin { to { transform: rotate(360deg); } }
.acb-alert { background: #FDECEE; color: #A3121A; border-radius: 10px; padding: 11px 13px; font-size: 14px; margin-bottom: 14px; }
.acb-success { text-align: center; padding: 8px 0 4px; }
.acb-check { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; background: #E7F6EC; color: #16A34A; font-size: 30px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.acb-success p { margin: 0 0 18px; color: #4B5363; }
.acb-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.acb-actions .acb-btn { flex: 1 1 180px; }
.acb-loading { padding: 50px; text-align: center; color: #6B7280; }
@media (max-width: 560px) {
  .acb-overlay { padding: 0; align-items: flex-end; }
  .acb-dialog { border-radius: 20px 20px 0 0; max-height: 94vh; }
  .acb-head { border-radius: 20px 20px 0 0; padding: 22px 20px 16px; }
  .acb-head h2 { font-size: 20px; }
  .acb-body { padding: 18px 20px 22px; }
  .acb-grid { grid-template-columns: 1fr; }
}
.acb-field > span.acb-err { color: #C8121A; font-weight: 500; font-size: 12.5px; }
.acb-field select {
  appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
