/* ============================================
   Popup Quote-Request Modal — ALA Landscaping
   Self-contained. Palette + fonts inherited from styles.css vars.
   ============================================ */

.alapop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease, ease), visibility 0.3s var(--ease, ease);
}
.alapop-overlay.alapop-open {
  opacity: 1;
  visibility: visible;
}

.alapop-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--off-white, #FAF8F4);
  border-top: 4px solid var(--amber, #DFA954);
  padding: 40px 36px 36px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s var(--ease, ease);
}
.alapop-overlay.alapop-open .alapop-modal {
  transform: translateY(0) scale(1);
}

.alapop-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gray, #7A7A7A);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}
.alapop-close:hover {
  color: var(--charcoal, #1C1C1C);
  transform: rotate(90deg);
}

.alapop-eyebrow {
  font-family: var(--font-body, sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green, #4A6741);
  margin: 0 0 8px;
}
.alapop-title {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--dark, #232B1E);
  margin: 0 0 6px;
}
.alapop-sub {
  font-size: 0.88rem;
  color: var(--gray, #7A7A7A);
  margin: 0 0 24px;
}

.alapop-group { margin-bottom: 16px; }
.alapop-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal, #1C1C1C);
  margin-bottom: 7px;
}
.alapop-group input,
.alapop-group select,
.alapop-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--white, #FFFFFF);
  border: 1px solid var(--gray-lt, #E2DDD6);
  border-radius: 0;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--charcoal, #1C1C1C);
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.alapop-group input:focus,
.alapop-group select:focus,
.alapop-group textarea:focus {
  outline: none;
  border-color: var(--green, #4A6741);
}
.alapop-group textarea {
  min-height: 90px;
  resize: vertical;
}

.alapop-submit {
  width: 100%;
  justify-content: center;
  padding: 16px;
  margin-top: 4px;
  /* falls back gracefully if .btn classes aren't present */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--dark, #232B1E);
  background: var(--dark, #232B1E);
  color: var(--white, #FFFFFF);
  cursor: pointer;
  transition: all 0.25s var(--ease, ease);
}
.alapop-submit:hover {
  background: var(--olive, #3B4A30);
  border-color: var(--olive, #3B4A30);
  transform: translateY(-2px);
}

.alapop-note {
  font-size: 0.72rem;
  color: var(--gray, #7A7A7A);
  margin: 14px 0 0;
  text-align: center;
}

.alapop-success {
  text-align: center;
  padding: 28px 0 12px;
}
.alapop-success__check { font-size: 2.6rem; margin-bottom: 14px; }
.alapop-success h3 {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: 1.9rem;
  color: var(--dark, #232B1E);
  margin: 0 0 8px;
}
.alapop-success p {
  font-size: 0.9rem;
  color: var(--gray, #7A7A7A);
  margin: 0;
}
.alapop-success a {
  color: var(--green, #4A6741);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 520px) {
  .alapop-modal { padding: 36px 22px 28px; }
  .alapop-title { font-size: 1.9rem; }
}
