/* ==========================================================================
   BROCHURE FORM — Typeform-style progressive modal
   ========================================================================== */
.brochure-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(7,7,7,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  animation: evFadeIn 0.3s ease;
}
.brochure-modal__progress {
  height: 3px;
  background: rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.brochure-modal__progress-fill {
  height: 100%;
  background: var(--cyan);
  transition: width 0.4s ease;
  border-radius: 0 2px 2px 0;
}
.brochure-modal__close {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brochure-modal__close::before,
.brochure-modal__close::after {
  content: '';
  position: absolute;
  width: 16px; height: 2px;
  background: #fff;
  border-radius: 1px;
}
.brochure-modal__close::before { transform: rotate(45deg); }
.brochure-modal__close::after { transform: rotate(-45deg); }

.brochure-modal__body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px var(--pad-x);
  overflow: hidden;
}
.brochure-step {
  width: 100%;
  max-width: 500px;
  display: none;
  animation: brochureSlideUp 0.4s ease both;
}
.brochure-step.active { display: block; }

@keyframes brochureSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.brochure-step__counter {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.brochure-step__counter span {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.12);
}
.brochure-step__counter span.done {
  background: var(--cyan);
}
.brochure-step__counter span.active {
  background: var(--cyan);
  width: 32px;
}
.brochure-step__label {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 32px;
}
.brochure-step__input {
  width: 100%;
  padding: 16px 0;
  font-family: var(--font);
  font-size: clamp(18px, 3vw, 24px);
  color: #fff;
  background: none;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.15);
  outline: none;
  transition: border-color 0.3s ease;
}
.brochure-step__input:focus {
  border-bottom-color: var(--cyan);
}
.brochure-step__input::placeholder {
  color: rgba(255,255,255,0.25);
}
.brochure-step__phone-wrap {
  display: flex;
  align-items: center;
  border-bottom: 2px solid rgba(255,255,255,0.15);
  transition: border-color 0.3s ease;
}
.brochure-step__phone-wrap:focus-within {
  border-bottom-color: var(--cyan);
}
.brochure-step__phone-wrap.is-valid {
  border-bottom-color: #34C759;
}
.brochure-step__phone-check {
  color: #34C759;
  font-size: 20px;
  margin-left: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.brochure-step__phone-wrap.is-valid .brochure-step__phone-check {
  opacity: 1;
}
.brochure-step__phone-prefix {
  font-family: var(--font);
  font-size: clamp(18px, 3vw, 24px);
  color: rgba(255,255,255,0.4);
  padding: 16px 8px 16px 0;
  flex-shrink: 0;
}
.brochure-step__phone-wrap .brochure-step__input {
  border-bottom: none;
}
.brochure-legal {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
}
.brochure-legal input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--cyan);
  flex-shrink: 0;
}
.brochure-step__error {
  color: #ff4444;
  font-size: 13px;
  margin-top: 12px;
  display: none;
  animation: brochureSlideUp 0.3s ease;
}
.brochure-step__error.show { display: block; }
.brochure-step__next {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--cyan);
  color: #000;
  border: none;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}
.brochure-step__next:hover { background: #33ebff; }

/* City cards */
.brochure-cities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.brochure-city {
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.brochure-city:hover {
  background: rgba(0,229,255,0.08);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Confirmation */
.brochure-confirm {
  text-align: center;
}
.brochure-confirm__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.brochure-confirm__icon svg {
  width: 28px; height: 28px;
  stroke: #000;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brochure-confirm__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.brochure-confirm__sub {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
}
.brochure-confirm__download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 32px;
  background: var(--cyan);
  color: #000;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.brochure-confirm__download:hover { background: #33ebff; }

@media (max-width: 767px) {
  .brochure-cities { grid-template-columns: 1fr 1fr; gap: 8px; }
  .brochure-city { font-size: 13px; padding: 12px; }
  .brochure-modal__body { padding: 40px 20px; align-items: flex-start; padding-top: 80px; }
}
