/* ==========================================================================
   THE TREE HOUSE PLAY SCHOOL — DOWNLOAD BROCHURE MODAL STYLES
   ========================================================================== */

.brochure-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(60, 53, 48, 0.65); /* var(--ink) with overlay opacity */
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.brochure-modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.brochure-modal {
  background: var(--cream);
  border: 3px solid var(--mint-deep);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 480px;
  padding: 40px 36px;
  box-shadow: var(--shadow-soft);
  position: relative;
  transform: translateY(40px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.brochure-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  background: var(--cream-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--ink);
  transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.brochure-modal-close:hover {
  background: var(--blush-deep);
  color: var(--ink);
  transform: rotate(90deg);
}

.brochure-modal-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  text-align: center;
  line-height: 1.2;
}

.brochure-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
  text-align: center;
  line-height: 1.5;
}

.brochure-form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brochure-form-group label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brochure-form-group input {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 16px;
  border: 2px solid var(--cream-deep);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.brochure-form-group input:focus {
  border-color: var(--sky-deep);
  box-shadow: 0 0 0 4px rgba(149, 204, 212, 0.25);
}

.brochure-btn {
  display: inline-block;
  width: 100%;
  background: var(--blush-deep);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px;
  border-radius: 999px;
  text-align: center;
  border: none;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease;
  cursor: pointer;
  margin-top: 6px;
}

.brochure-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(239, 168, 179, 0.65);
}

.brochure-btn:active {
  transform: translateY(0);
}

.brochure-btn:disabled {
  background: var(--cream-deep);
  color: var(--ink-soft);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.brochure-text-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 600;
  transition: color 0.3s ease;
  cursor: pointer;
  user-select: none;
}

.brochure-text-link:hover:not(.disabled) {
  color: var(--ink);
  text-decoration: underline;
}

.brochure-text-link.disabled {
  color: var(--ink-soft);
  cursor: not-allowed;
  text-decoration: none;
  opacity: 0.6;
}

.brochure-status {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: none;
  text-align: center;
  font-weight: 600;
  line-height: 1.4;
}

.brochure-status.error {
  background: #FDF0F1;
  color: #C0392B;
  border: 2px solid #FADBD8;
  display: block;
}

.brochure-status.success {
  background: #EAF2F8;
  color: #2471A3;
  border: 2px solid #D4E6F1;
  display: block;
}

.brochure-step {
  display: none;
}

.brochure-step.is-active {
  display: block;
}
