/* =========================================
   BROCHURE POPUP MODAL — styles
   Loaded from footer.php, available site-wide
   ========================================= */

.brochure-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.brochure-modal-overlay.active {
  display: flex;
}
.brochure-modal-box {
  background: var(--white, #fff);
  border-radius: 24px;
  padding: 45px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  text-align: center;
  animation: brochureModalIn .25s ease;
}
@keyframes brochureModalIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.brochure-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-light, #777);
  cursor: pointer;
  line-height: 1;
}
.brochure-modal-close:hover { color: var(--primary, #c62828); }

.brochure-modal-box h2 {
  font-family: 'Poppins', sans-serif;
  color: var(--primary, #c62828);
  margin-bottom: 12px;
}
.brochure-modal-box > p {
  color: var(--text-light, #777);
  margin-bottom: 25px;
  line-height: 1.6;
}

.bm-form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; text-align: left; }
.bm-form-group label { font-weight: 600; color: var(--text, #333); font-size: 0.9rem; }
.bm-form-group input {
  padding: 14px 15px;
  border: 1px solid var(--border, #ddd);
  border-radius: 12px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  background: var(--light, #f7f7f7);
  transition: all .2s ease;
  width: 100%;
  box-sizing: border-box;
}
.bm-form-group input:focus {
  outline: none;
  border-color: var(--secondary, #f9a825);
  background: var(--white, #fff);
}
.bm-form-group input.bm-invalid {
  border-color: var(--primary, #c62828);
  background: #FFF2F2;
}
.bm-field-error {
  color: var(--primary, #c62828);
  font-size: 0.8rem;
  font-weight: 600;
  display: none;
}
.bm-field-error.active { display: block; }

.bm-submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--primary, #c62828);
  color: var(--white, #fff);
  border: none;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all .2s ease;
  margin-top: 8px;
}
.bm-submit-btn:hover { background: var(--primary-dark, #8e1c1c); transform: translateY(-2px); }
.bm-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.bm-download-btn {
  display: inline-block;
  padding: 18px 40px;
  background: var(--green, #2e7d32);
  color: var(--white, #fff);
  text-decoration: none;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all .2s ease;
  box-shadow: 0 10px 20px rgba(46, 125, 50, 0.2);
  margin-top: 15px;
}
.bm-download-btn:hover { background: #1b5e20; transform: translateY(-3px); }

.bm-alert-error {
  padding: 13px 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  background: #FFF2F2;
  color: var(--primary, #c62828);
  border: 1px solid rgba(198, 40, 40, 0.2);
  text-align: left;
  display: none;
}
.bm-alert-error.active { display: block; }