/* =========================================================
   INSTANT ESTIMATE MODAL
   Self-contained; inherits site tokens from style.css
   ========================================================= */

.est-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: est-fade 0.2s ease;
}
.est-overlay[hidden] { display: none; }

@keyframes est-fade { from { opacity: 0; } to { opacity: 1; } }

.est-dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  animation: est-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes est-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.est-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  width: 2rem;
  height: 2rem;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-muted);
  transition: color var(--ease-snappy);
}
.est-close:hover { color: var(--red); }

.est-body { padding: 2.5rem; }

.est-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.est-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.est-sub {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* Reuse .form-group floating-label pattern from style.css */
.est-form .form-group { margin-bottom: 1.75rem; }

/* Design select field */
.est-field { margin-bottom: 1.5rem; }
.est-field-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.est-select {
  width: 100%;
  padding: 0.75rem 0.6rem;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark);
  outline: none;
  transition: border-color 0.3s ease;
}
.est-select:focus { border-color: var(--red); }

.est-error {
  background: #fdecec;
  color: var(--red-dark);
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.est-smallprint {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 1rem;
}

/* Success view */
.est-success { text-align: center; }
.est-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  border-radius: 50%;
}
.est-success-icon svg { width: 32px; height: 32px; fill: #fff; }

@media (max-width: 480px) {
  .est-body { padding: 2rem 1.5rem; }
  .est-title { font-size: 2rem; }
}

/* Outline nav CTA — used for "Contact Us" so "Instant Estimate" leads.
   inset box-shadow acts as the border so there's no size shift vs the filled button. */
.btn-ghost {
  background: transparent;
  color: var(--red);
  box-shadow: inset 0 0 0 2px var(--red);
}
.btn-ghost:hover {
  background: var(--red);
  color: var(--white);
  box-shadow: inset 0 0 0 2px var(--red);
}

.nav-mobile-menu .btn-nav-mobile-ghost {
  background: transparent;
  color: var(--red);
  box-shadow: inset 0 0 0 2px var(--red);
}
.nav-mobile-menu .btn-nav-mobile-ghost:hover {
  background: var(--red);
  color: var(--white);
}

/* Mobile menu CTA pair — both buttons match the wider one's width */
.nav-mobile-menu .nav-mobile-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  width: fit-content;
  margin: 0.5rem 1.25rem 0;
}
.nav-mobile-menu .nav-mobile-cta .btn-nav-mobile {
  width: auto;
  margin: 0;
  justify-content: center;
}
