/* ============================================================
   CCL CONTRACTING — ESTIMATE MODAL (GHL Form Embed)
   Shared across homepage and any general-CTA pages.
   Silo pages (spray-foam, roofing) have their own inline forms.
   ============================================================ */

.ccl-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 0;
}
.ccl-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.ccl-modal-card {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s ease;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.ccl-modal-overlay.open .ccl-modal-card {
  transform: translateY(0) scale(1);
}

.ccl-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e8e4dc;
  background: #f7f3ec;
  flex-shrink: 0;
}

.ccl-modal-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1f24;
  margin: 0;
  line-height: 1.2;
}
.ccl-modal-title em {
  color: #c4622a;
  font-style: italic;
}

.ccl-modal-subtitle {
  font-size: 0.78rem;
  color: #5a6470;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.ccl-modal-close {
  background: transparent;
  border: 1px solid #c4622a;
  color: #c4622a;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}
.ccl-modal-close:hover,
.ccl-modal-close:focus-visible {
  background: #c4622a;
  color: #ffffff;
  outline: none;
}

.ccl-modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0;
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
}

#ghl-form-embed {
  width: 100%;
  min-height: 1220px;
}

#ghl-form-embed iframe {
  width: 100%;
  border: none;
  border-radius: 0;
  display: block;
}

body.ccl-modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .ccl-modal-overlay {
    padding: 0;
    align-items: stretch;
  }
  .ccl-modal-card {
    max-width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }
  .ccl-modal-header {
    padding: 16px 20px;
  }
  .ccl-modal-title {
    font-size: 1.15rem;
  }
}
