.brochure {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
  background: #fff;
}

.brochure__title {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.2;
}

.brochure__content > :first-child {
  margin-top: 0;
}

.brochure__content > :last-child {
  margin-bottom: 0;
}

.brochure-fab {
  position: fixed;
  z-index: 9999;
  left: 16px;
}

.brochure-fab--center {
  left: 50%;
  transform: translateX(-50%);
}

.brochure-fab--right {
  left: auto;
  right: 16px;
}

.brochure-fab__card {
  display: flex;
  align-items: stretch;
  gap: 12px;
  min-width: 220px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 12px 12px 14px;
  border-radius: 14px;
  background: #d81920;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.brochure-fab__card:hover,
.brochure-fab__card:focus-visible {
  filter: brightness(1.03);
  text-decoration: none;
}

.brochure-fab__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.brochure-fab__label {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
}

.brochure-fab__cta {
  font-size: 13px;
  opacity: 0.92;
}

.brochure-fab__thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
  flex: 0 0 auto;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.brochure-fab__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Modal Overlay */
.brochure-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  z-index: 10000;
  display: none;
  pointer-events: none;
}

/* Modal Window */
.brochure-modal {
  background: #fff;
  border-radius: 8px;
  width: calc(100% - 32px);
  max-width: 650px;
  position: absolute;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  pointer-events: auto;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.brochure-modal.is-open {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
  /* Full Width Bottom Button */
  .brochure-fab {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    transform: none !important;
  }
  .brochure-fab__card {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    justify-content: center;
    padding: 16px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
  }
  .brochure-fab__thumb,
  .brochure-fab__cta {
    display: none; /* Hide image and subtext for a clean text button */
  }
  .brochure-fab__left {
    align-items: center;
    text-align: center;
  }

  /* Full Screen Modal */
  .brochure-modal-overlay {
    pointer-events: auto; /* Catch clicks on mobile so background doesn't scroll easily */
  }
  .brochure-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none;
    border-radius: 0;
    transform: translateY(100%) !important;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1) !important;
    overflow-y: auto;
    background: #fff;
  }
  .brochure-modal.is-open {
    transform: translateY(0) !important;
  }
  .brochure-modal-content {
    flex-direction: column-reverse; /* Form on bottom, image on top */
    min-height: 100%;
  }
  .brochure-modal-right {
    width: 100%;
    padding: 10px;
    background: #f4f4f4;
    border-left: none;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .brochure-modal-right img {
    max-height: 100px;
    margin: 0 auto;
  }
  .brochure-modal-left {
    padding: 15px;
    width: 100%;
  }
  .brochure-modal-left h2 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .brochure-modal-form {
    gap: 8px;
  }
  .brochure-form-row--2col {
    flex-direction: row; /* Keep side-by-side to save space */
    gap: 8px;
  }
  .brochure-form-row input,
  .brochure-form-row select {
    padding: 8px 10px;
    font-size: 13px;
  }
  .brochure-phone-row select {
    width: 60px;
  }
  .brochure-checkbox-row label {
    font-size: 11px;
    gap: 6px;
  }
  .brochure-btn-red {
    padding: 10px;
    font-size: 14px;
  }
  .brochure-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    font-size: 20px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 100;
  }
}

@media (min-width: 768px) {
  .brochure-modal {
    flex-direction: row;
  }
}

.brochure-modal * {
  box-sizing: border-box;
}

/* Close Button */
.brochure-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #555;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  margin: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.brochure-modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #000;
}

/* Modal Content Layout */
.brochure-modal-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

@media (min-width: 768px) {
  .brochure-modal-content {
    flex-direction: row;
  }
}

/* Left Side (Form) */
.brochure-modal-left {
  flex: 1;
  padding: 30px 40px;
  background: #fff;
}

.brochure-modal-left h2 {
  margin: 0 0 20px 0;
  font-size: 28px;
  color: #333;
  font-weight: 700;
  font-family: inherit;
}

.brochure-modal-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.brochure-form-row {
  display: flex;
  width: 100%;
}

.brochure-form-row--2col {
  gap: 15px;
}

.brochure-form-row input,
.brochure-form-row select {
  width: 100%;
  padding: 12px 15px;
  border: none;
  background: #eff2f5;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  font-family: inherit;
  outline: none;
  transition: box-shadow 0.2s;
  box-sizing: border-box;
}

.brochure-form-row input:focus,
.brochure-form-row select:focus {
  box-shadow: 0 0 0 2px #d81920;
}

.brochure-phone-row {
  display: flex;
  gap: 10px;
}

.brochure-phone-row select {
  width: 80px;
  flex-shrink: 0;
}

.brochure-checkbox-row {
  margin-top: 5px;
}

.brochure-checkbox-row label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  line-height: 1.4;
}

.brochure-checkbox-row input[type="checkbox"] {
  margin-top: 2px;
}

.brochure-checkbox-row a {
  color: #d81920;
  text-decoration: none;
}

.brochure-checkbox-row a:hover {
  text-decoration: underline;
}

.brochure-form-submit {
  margin-top: 10px;
}

.brochure-btn-red {
  background: #d81920;
  color: #fff;
  border: none;
  padding: 14px 20px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}

.brochure-btn-red:hover {
  background: #b5151b;
}

/* Right Side (Image) */
.brochure-modal-right {
  width: 100%;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border-left: 1px solid #eaeaea;
}

@media (min-width: 768px) {
  .brochure-modal-right {
    width: 280px;
    flex-shrink: 0;
  }
}

.brochure-modal-right img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  background: #fff;
  display: block;
}

.brochure-modal-placeholder-image {
  width: 100%;
  aspect-ratio: 1 / 1.4;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-weight: bold;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  font-size: 14px;
}

