/* ============================================
   Brochure / E-Book Popup styles
   ============================================ */

.sbu-brochure-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(20, 24, 20, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.sbu-brochure-overlay.smooth_show {
  opacity: 1;
  visibility: visible;
}

.sbu-brochure-layer-close {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.sbu-brochure-modal {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow: hidden;
  border-radius: 6px;
  background: #f4ecdf;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  font-family: "Montserrat", sans-serif;

  transform: scale(0.92);
  transition: transform 0.4s ease;
}

.sbu-brochure-overlay.smooth_show .sbu-brochure-modal {
  transform: scale(1);
}

.sbu-brochure-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(var(--white), 0.9);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: rgba(var(--primary), 1);
}

.sbu-brochure-close:hover {
  background: rgba(var(--white), 1);
}

.sbu-brochure-left {
  flex: 1 1 40%;
  padding: 28px 32px;
  overflow-y: auto;
}

.sbu-brochure-heading {
  font-size: 24px;
  line-height: 1.15;
  font-style: italic;
  text-align: center;
  color: rgba(var(--primary), 1);
  margin-bottom: 3px;
}

.sbu-brochure-desc {
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(var(--gray), 1);
  margin-bottom: 16px;
}

.sbu-field {
  margin-bottom: 8px;
}

.sbu-field label {
  display: block;
  font-size: 12px;
  color: rgba(var(--primary), 1);
  margin-bottom: 3px;
}

.sbu-required {
  color: rgba(var(--secondary), 1);
}

.sbu-field input[type="text"],
.sbu-field input[type="email"],
.sbu-field input[type="tel"]{
  width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(var(--input-border), 1);
  border-radius: 3px;
  background: rgba(var(--background), 1);
  color: rgba(var(--primary), 1);
  font-size: 13px;
  font-family: inherit;
}

.sbu-field input::placeholder {
  color: rgba(var(--gray), 0.7);
}

.sbu-checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.sbu-checkbox-field label {
  margin: 0;
  font-size: 12px;
  color: rgba(var(--primary), 1);
}

.sbu-brochure-submit {
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: 3px;
  background: rgba(var(--primary), 1);
  color: rgba(var(--white), 1);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.sbu-brochure-submit:hover {
  background: rgba(var(--primary), 0.85);
}

.sbu-brochure-consent {
  font-size: 10px;
  line-height: 1.35;
  color: rgba(var(--gray), 1);
  margin-top: 8px;
}

.sbu-brochure-right {
  flex: 1 1 45%;
  background-color: rgba(var(--primary), 0.85);
  align-self: stretch;
  display: flex;
  padding: 20px;
}

.sbu-brochure-right img {
  width: 100%;
  display: block;
}

@media (max-width: 700px) {
  .sbu-brochure-modal {
    flex-direction: column;
    max-height: 95vh;
  }

  .sbu-brochure-right {
    display: none;
  }

  .sbu-brochure-left {
    padding: 22px 18px;
  }
}

body.no-reload {
  overflow: hidden;
}

.sbu-field p {
  margin: 0;
}

.sbu-field br {
  display: none;
}

.sbu-brochure-form-wrap .wpcf7-response-output {
  margin: 0 0 16px !important;
  padding: 12px 14px;
  border: none;
  border-radius: 3px;
  font-size: 13px;
  line-height: 1.4;
  font-family: "Montserrat", sans-serif;
}

/* Success state */
.sbu-brochure-form-wrap form.sent .wpcf7-response-output {
  background: rgba(var(--primary), 0.08);
  color: rgba(var(--primary), 1);
  border-left: 3px solid rgba(var(--primary), 1);
}

/* Error / validation failed state */
.sbu-brochure-form-wrap form.invalid .wpcf7-response-output,
.sbu-brochure-form-wrap form.unaccepted .wpcf7-response-output,
.sbu-brochure-form-wrap form.payment-required .wpcf7-response-output {
  background: rgba(178, 34, 34, 0.08);
  color: #b22222;
  border-left: 3px solid #b22222;
}

/* Spam/failed submission state */
.sbu-brochure-form-wrap form.failed .wpcf7-response-output,
.sbu-brochure-form-wrap form.aborted .wpcf7-response-output,
.sbu-brochure-form-wrap form.spam .wpcf7-response-output {
  background: rgba(178, 34, 34, 0.08);
  color: #b22222;
  border-left: 3px solid #b22222;
}