/* ==========================================================================
   Land Search — Maricopa County interactive map + listings table
   Scoped under .land-search-section to avoid colliding with existing page CSS.
   ========================================================================== */

:root {
  --bqb-navy: #1B2A35;
  --bqb-teal: #2E6B6A;
  --bqb-teal-deep: #1F4F4E;
  --bqb-rust: #B5541B;
  --bqb-sand: #F5F0E8;
  --bqb-sand-dim: #EBE5D8;
  --bqb-warm-white: #FDFCFA;
  --bqb-line: rgba(27, 42, 53, 0.12);
  --bqb-line-strong: rgba(27, 42, 53, 0.22);
  --bqb-ink-soft: #5A6670;
  --ls-shadow-sm: 0 1px 2px rgba(27,42,53,0.06), 0 1px 3px rgba(27,42,53,0.04);
  --ls-shadow-md: 0 6px 18px rgba(27,42,53,0.10);
  --ls-shadow-lg: 0 18px 40px rgba(27,42,53,0.14);
  --ls-radius: 8px;
}

/* ---------- Section wrapper ---------- */
.land-search-section {
  background: var(--bqb-sand);
  padding: 80px 0;
  position: relative;
}
.land-search-section .container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .land-search-section { padding: 40px 0; }
  .land-search-section .container { padding: 0 20px; }
}

/* ---------- Section header ---------- */
.land-search-section .search-header {
  max-width: 760px;
  margin-bottom: 28px;
}
.land-search-section .search-header .eyebrow {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bqb-teal);
  margin-bottom: 14px;
}
.land-search-section .search-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--bqb-navy);
  margin: 0 0 14px;
}
.land-search-section .search-lede {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--bqb-ink-soft);
  margin: 0;
}

/* ---------- Filter bar ---------- */
.land-search-section .filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bqb-warm-white);
  border: 1px solid var(--bqb-line);
  border-radius: var(--ls-radius);
  padding: 14px 16px;
  margin-bottom: 18px;
  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: var(--ls-shadow-sm);
}
.land-search-section .filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.land-search-section .filter-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bqb-ink-soft);
}
.land-search-section .filter-control {
  display: flex;
  align-items: center;
  gap: 6px;
}
.land-search-section .filter-input,
.land-search-section .filter-select {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--bqb-navy);
  background: var(--bqb-warm-white);
  border: 1px solid var(--bqb-line);
  border-radius: 4px;
  padding: 8px 10px;
  min-width: 80px;
  transition: border-color 0.18s;
}
.land-search-section .filter-input:focus,
.land-search-section .filter-select:focus {
  outline: none;
  border-color: var(--bqb-teal);
}
.land-search-section .filter-input.is-active,
.land-search-section .filter-select.is-active {
  border-color: var(--bqb-teal);
  background: rgba(46, 107, 106, 0.04);
}
.land-search-section .filter-sep {
  align-self: center;
  color: var(--bqb-ink-soft);
  font-size: 13px;
  padding: 0 2px;
}

/* City multi-select dropdown */
.land-search-section .city-dropdown {
  position: relative;
}
.land-search-section .city-trigger {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  background: var(--bqb-warm-white);
  border: 1px solid var(--bqb-line);
  border-radius: 4px;
  padding: 8px 30px 8px 10px;
  cursor: pointer;
  color: var(--bqb-navy);
  min-width: 160px;
  text-align: left;
  position: relative;
  transition: border-color 0.18s;
}
.land-search-section .city-trigger.is-active {
  border-color: var(--bqb-teal);
  background: rgba(46, 107, 106, 0.04);
}
.land-search-section .city-trigger::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--bqb-ink-soft);
  border-bottom: 1.5px solid var(--bqb-ink-soft);
  transform: translateY(-70%) rotate(45deg);
}
.land-search-section .city-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--bqb-warm-white);
  border: 1px solid var(--bqb-line);
  border-radius: 6px;
  box-shadow: var(--ls-shadow-md);
  padding: 8px 0;
  display: none;
  z-index: 10;
}
.land-search-section .city-menu.is-open { display: block; }
.land-search-section .city-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  font-size: 14px;
  color: var(--bqb-navy);
  cursor: pointer;
  user-select: none;
}
.land-search-section .city-option:hover { background: var(--bqb-sand); }
.land-search-section .city-option input[type=checkbox] {
  accent-color: var(--bqb-teal);
}
.land-search-section .city-option .city-count {
  margin-left: auto;
  color: var(--bqb-ink-soft);
  font-size: 12px;
}

/* Toggle */
.land-search-section .filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--bqb-navy);
  cursor: pointer;
  user-select: none;
}
.land-search-section .filter-toggle input { accent-color: var(--bqb-rust); }

.land-search-section .filter-reset {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--bqb-rust);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.land-search-section .filter-reset:hover { color: var(--bqb-rust); opacity: 0.8; }

@media (max-width: 720px) {
  .land-search-section .filter-bar { position: static; }
  .land-search-section .filter-reset { margin-left: 0; }
}

/* ---------- Map container ---------- */
.land-search-section .map-container {
  width: 100%;
  height: 600px;
  border-radius: var(--ls-radius);
  overflow: hidden;
  background: var(--bqb-sand-dim);
  position: relative;
  box-shadow: var(--ls-shadow-sm);
}
@media (max-width: 720px) {
  .land-search-section .map-container { height: 400px; }
}
.land-search-section .map-loading,
.land-search-section .map-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--bqb-ink-soft);
  background: var(--bqb-sand-dim);
  text-align: center;
  padding: 20px;
}
.land-search-section .map-error strong {
  color: var(--bqb-navy);
  font-weight: 600;
}
.land-search-section .map-retry {
  background: var(--bqb-navy);
  color: var(--bqb-warm-white);
  border: none;
  padding: 10px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
}
.land-search-section .map-retry:hover { background: var(--bqb-teal); }

/* Non-destructive error banner overlaid on the map */
.map-error-banner {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  background: rgba(27, 42, 53, 0.92);
  color: var(--bqb-warm-white, #FDFCFA);
  padding: 12px 44px 12px 18px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  z-index: 50;
  box-shadow: 0 8px 24px -8px rgba(27, 42, 53, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 12px;
}
.map-error-banner__text { flex: 1; }
.map-error-banner__close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(253, 252, 250, 0.7);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 200ms ease, background 200ms ease;
}
.map-error-banner__close:hover {
  color: var(--bqb-warm-white, #FDFCFA);
  background: rgba(253, 252, 250, 0.12);
}
@media (max-width: 600px) {
  .map-error-banner {
    font-size: 12px;
    padding: 10px 38px 10px 14px;
    top: 12px;
  }
}

/* ---------- Map pin specifications ----------
   NOTE: These classes document the visual spec for map pins. Mapbox GL JS
   renders pins via circle/symbol layers (not DOM elements), so the JS file
   replicates these values in Mapbox paint properties. Keeping the CSS spec
   here as the single source of truth for brand colors.
   .map-pin-standard   = teal circle, 28x28, 2px white border, shadow
   .map-pin-teardown   = rust circle, same dimensions
   .map-pin-cluster    = navy circle, 36x36, white centered number
   .map-pin-selected   = navy ring around pin
*/

/* ---------- Teardown badge (used in side panel + featured lot cards) ---------- */
.land-search-section .teardown-badge {
  display: inline-block;
  background: rgba(181, 84, 27, 0.12);
  color: var(--bqb-rust);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
}

/* ---------- Side panel ---------- */
.land-search-section .lot-detail-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(27, 42, 53, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 150;
}
.land-search-section .lot-detail-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.land-search-section .lot-detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  max-width: 100%;
  background: var(--bqb-warm-white);
  box-shadow: var(--ls-shadow-lg);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  z-index: 160;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.land-search-section .lot-detail-panel.is-open { transform: translateX(0); }
@media (max-width: 720px) {
  .land-search-section .lot-detail-panel { width: 100%; }
}
.land-search-section .lot-detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(253, 252, 250, 0.95);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bqb-navy);
  z-index: 2;
  box-shadow: var(--ls-shadow-sm);
}
.land-search-section .lot-detail-close:hover { color: var(--bqb-rust); }
.land-search-section .lot-detail-close svg { width: 18px; height: 18px; }

.land-search-section .lot-carousel {
  position: relative;
  height: 350px;
  background: var(--bqb-sand-dim);
  flex-shrink: 0;
  overflow: hidden;
}
.land-search-section .lot-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.25s ease;
}
.land-search-section .lot-carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F5F0E8 0%, #E8DFD4 100%);
}
.land-search-section .lot-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 300ms ease;
}
.land-search-section .lot-carousel-slide img[src=""] { opacity: 0; }
.land-search-section .lot-carousel-nav {
  position: absolute;
  top: 50%;
  width: 36px;
  height: 36px;
  background: rgba(253, 252, 250, 0.92);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bqb-navy);
  box-shadow: var(--ls-shadow-sm);
  transform: translateY(-50%);
  z-index: 2;
}
.land-search-section .lot-carousel-nav.prev { left: 14px; }
.land-search-section .lot-carousel-nav.next { right: 14px; }
.land-search-section .lot-carousel-nav:hover { background: var(--bqb-warm-white); }
.land-search-section .lot-carousel-nav svg { width: 16px; height: 16px; }
.land-search-section .lot-carousel-counter {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(27, 42, 53, 0.78);
  color: var(--bqb-warm-white);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.land-search-section .lot-detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px 36px;
}
.land-search-section .lot-detail-body .lot-price {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: 36px;
  line-height: 1.1;
  color: var(--bqb-navy);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.land-search-section .lot-detail-body .lot-address {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--bqb-navy);
  line-height: 1.5;
  margin: 0 0 6px;
}
.land-search-section .lot-detail-body .lot-citystatezip {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--bqb-ink-soft);
  margin: 0 0 18px;
}
.land-search-section .lot-detail-body .lot-badges {
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
  flex-wrap: wrap;
}
.land-search-section .lot-detail-rows {
  border-top: 1px solid var(--bqb-line);
  padding-top: 18px;
  margin-bottom: 26px;
}
.land-search-section .lot-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--bqb-line);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  gap: 14px;
}
.land-search-section .lot-detail-row:last-child { border-bottom: none; }
.land-search-section .lot-detail-row .label {
  color: var(--bqb-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 600;
}
.land-search-section .lot-detail-row .value {
  color: var(--bqb-navy);
  text-align: right;
}
.land-search-section .lot-interest-btn {
  width: 100%;
  background: var(--bqb-teal);
  color: var(--bqb-warm-white);
  border: none;
  padding: 16px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.18s;
}
.land-search-section .lot-interest-btn:hover { background: var(--bqb-teal-deep); }

/* ==========================================================================
   Featured Lots — curated grid below the map
   ========================================================================== */
.featured-lots-section {
  background: var(--bqb-sand);
  padding: 80px 0;
}
@media (max-width: 720px) {
  .featured-lots-section { padding: 48px 0; }
}
.featured-lots-section .container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .featured-lots-section .container { padding: 0 20px; }
}

.featured-lots-header {
  max-width: 720px;
  margin-bottom: 36px;
}
.featured-lots-header .eyebrow {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bqb-teal);
  margin-bottom: 12px;
}
.featured-lots-header h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--bqb-navy);
  margin: 0 0 12px;
}
.featured-lots-lede {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(27, 42, 53, 0.8);
  margin: 0;
}

.featured-lots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.featured-lot-card {
  background: var(--bqb-warm-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--ls-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.featured-lot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ls-shadow-md);
}
.featured-lot-card:hover .featured-lot-image img {
  transform: scale(1.05);
}

.featured-lot-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #F5F0E8 0%, #E8DFD4 100%);
  position: relative;
}
.featured-lot-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease, opacity 300ms ease;
}
.featured-lot-image img[src=""] { opacity: 0; }
.featured-lot-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--bqb-rust);
  color: var(--bqb-warm-white);
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
}

.featured-lot-info { padding: 20px; }
.featured-lot-price {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: 24px;
  color: var(--bqb-navy);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.featured-lot-address {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--bqb-navy);
  line-height: 1.4;
  margin: 0;
}
.featured-lot-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(27, 42, 53, 0.7);
  margin: 4px 0 0;
}
.featured-lot-cta {
  width: 100%;
  background: var(--bqb-teal);
  color: var(--bqb-warm-white);
  border: none;
  padding: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 16px;
  transition: background 0.18s;
}
.featured-lot-cta:hover { background: var(--bqb-navy); }

.featured-lots-empty {
  text-align: center;
  padding: 40px 20px;
  font-family: 'DM Sans', sans-serif;
  color: var(--bqb-ink-soft);
  font-size: 15px;
}

/* ---------- Mapbox attribution tweak ---------- */
.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl,
.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl {
  font-family: 'DM Sans', sans-serif !important;
}

/* ==========================================================================
   "See Your Home on This Lot" modal
   Independent of the schedule modal (different prefix, different z-index range).
   Lives at body root, so selectors are not scoped under .land-search-section.
   ========================================================================== */

.rendering-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(27, 42, 53, 0.60);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.rendering-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.rendering-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 520px;
  max-width: 100%;
  background: var(--bqb-warm-white);
  z-index: 210;
  transform: translateX(100%);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--ls-shadow-lg);
}
.rendering-modal.is-open { transform: translateX(0); }

.rendering-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--bqb-navy);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
  transition: background 0.15s;
}
.rendering-modal-close:hover { background: rgba(27, 42, 53, 0.06); }

.rendering-modal-content {
  padding: 40px;
  overflow-y: auto;
  flex: 1;
}

.rendering-modal-eyebrow {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bqb-teal);
  margin-bottom: 14px;
}
.rendering-modal-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--bqb-navy);
  margin: 0 0 18px;
}
.rendering-modal-lede {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(27, 42, 53, 0.7);
  margin: 0 0 24px;
}

.rendering-property-strip {
  background: var(--bqb-sand);
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 28px;
}
.rendering-property-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bqb-teal);
  margin-bottom: 6px;
}
.rendering-property-address {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--bqb-navy);
  line-height: 1.4;
}

.rendering-form-field {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}
.rendering-form-field label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--bqb-navy);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.rendering-form-field input,
.rendering-form-field select {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--bqb-navy);
  background: var(--bqb-warm-white);
  border: 1px solid var(--bqb-line-strong);
  border-radius: 4px;
  padding: 11px 12px;
  transition: border-color 0.15s;
}
.rendering-form-field input:focus,
.rendering-form-field select:focus {
  outline: none;
  border-color: var(--bqb-teal);
}
.rendering-form-optional {
  font-style: italic;
  color: rgba(27, 42, 53, 0.5);
  font-weight: 400;
  letter-spacing: 0;
}

.rendering-form-submit {
  width: 100%;
  background: var(--bqb-teal);
  color: var(--bqb-warm-white);
  border: none;
  padding: 14px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.18s;
}
.rendering-form-submit:hover { background: var(--bqb-navy); }

.rendering-form-legal {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(27, 42, 53, 0.6);
  margin: 16px 0 0;
}
.rendering-form-legal a {
  color: var(--bqb-teal);
  text-decoration: none;
}
.rendering-form-legal a:hover { text-decoration: underline; }

.rendering-success {
  text-align: center;
  padding: 24px 8px;
}
.rendering-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(46, 107, 106, 0.12);
  color: var(--bqb-teal);
  font-size: 28px;
  font-weight: 600;
  margin: 0 auto 18px;
}
.rendering-success h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: 26px;
  color: var(--bqb-navy);
  margin: 0 0 12px;
  line-height: 1.2;
}
.rendering-success p {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(27, 42, 53, 0.7);
  margin: 0 0 24px;
}
.rendering-success p span {
  color: var(--bqb-navy);
  font-weight: 500;
}
.rendering-success-close {
  background: var(--bqb-navy);
  color: var(--bqb-warm-white);
  border: none;
  padding: 12px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.18s;
}
.rendering-success-close:hover { background: var(--bqb-teal); }

@media (max-width: 767px) {
  .rendering-modal {
    width: 100%;
    left: 0;
    height: 100%;
    transform: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.18s ease, visibility 0.18s ease;
  }
  .rendering-modal.is-open {
    visibility: visible;
    opacity: 1;
  }
  .rendering-modal-content { padding: 24px; }
  .rendering-modal-headline { font-size: 26px; }
}
