/* ============================================================
   consultation.css
   1. Free Consultation Popup (sitewide)
   2. FAQ accordion fix (so it works without contact.css)
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   FAQ ACCORDION — base styles loaded globally
   (fixes FAQ on location pages and any page without contact.css)
══════════════════════════════════════════════════════════════ */
.faq-item {
  background: #fff;
  border-radius: var(--radius, 12px);
  border: 1.5px solid var(--border, #e5e7eb);
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq-item:hover { border-color: rgba(45,74,62,0.25); }
.faq-btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.faq-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark, #1a1f2e);
  line-height: 1.4;
}
.faq-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg, #f5f4f0);
  border: 1px solid var(--border, #e5e7eb);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s;
}
.faq-icon svg { width: 12px; height: 12px; stroke: #6b7280; fill: none; transition: transform 0.3s; }
.faq-item.open .faq-icon { background: var(--accent, #2d4a3e); border-color: var(--accent, #2d4a3e); }
.faq-item.open .faq-icon svg { stroke: #fff; transform: rotate(45deg); }
.faq-a {
  font-size: 14.5px;
  color: var(--text-muted, #6b7280);
  line-height: 1.75;
  padding: 0 24px 22px;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* ══════════════════════════════════════════════════════════════
   CONSULTATION POPUP
══════════════════════════════════════════════════════════════ */
#consultPopupOverlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 35, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
#consultPopupOverlay.active {
  opacity: 1;
  visibility: visible;
}

#consultPopup {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,.35);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
  position: relative;
}
#consultPopupOverlay.active #consultPopup {
  transform: translateY(0) scale(1);
}

/* Popup header */
.cpop-head {
  background: linear-gradient(135deg, #1a1f2e 0%, #2d4a3e 100%);
  padding: 32px 36px 28px;
  border-radius: 20px 20px 0 0;
  position: relative;
}
.cpop-head-logo {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.cpop-head-logo span { color: #c8a96e; }
.cpop-head h2 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  line-height: 1.2;
}
.cpop-head p { font-size: 13.5px; color: rgba(255,255,255,.55); line-height: 1.5; }
.cpop-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  color: #fff;
}
.cpop-close:hover { background: rgba(255,255,255,.22); }
.cpop-close svg { width: 16px; height: 16px; stroke: #fff; fill: none; }

/* Popup badges */
.cpop-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.cpop-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.75);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 500;
}

/* Popup body */
.cpop-body { padding: 28px 36px 32px; }

/* Form fields */
.cpop-field { margin-bottom: 16px; }
.cpop-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 7px;
}
.cpop-label .req { color: #ef4444; margin-left: 2px; }
.cpop-iw { position: relative; }
.cpop-iw svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  stroke: #9ca3af; fill: none;
  pointer-events: none;
}
.cpop-input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14.5px;
  font-family: inherit;
  color: #1a1f2e;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.cpop-input:focus {
  border-color: #2d4a3e;
  box-shadow: 0 0 0 3px rgba(45,74,62,.10);
}
.cpop-input::placeholder { color: #d1d5db; }
.cpop-input.error { border-color: #ef4444; }

.cpop-select {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14.5px;
  font-family: inherit;
  color: #1a1f2e;
  background: #fff;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.cpop-select:focus { border-color: #2d4a3e; box-shadow: 0 0 0 3px rgba(45,74,62,.10); }

.cpop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Submit button */
.cpop-submit {
  width: 100%;
  padding: 14px 20px;
  background: #1a1f2e;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.cpop-submit:hover:not(:disabled) { background: #2d4a3e; transform: translateY(-1px); }
.cpop-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.cpop-submit svg { width: 16px; height: 16px; stroke: #fff; fill: none; }
.cpop-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cpop-spin 0.7s linear infinite;
  display: none;
}
.cpop-submit.loading .cpop-spinner { display: block; }
.cpop-submit.loading .cpop-btn-text { display: none; }
@keyframes cpop-spin { to { transform: rotate(360deg); } }

/* Messages */
.cpop-error-msg {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-bottom: 14px;
  display: none;
}
.cpop-error-msg.show { display: block; }

/* Success state */
.cpop-success {
  text-align: center;
  padding: 52px 36px;
  display: none;
}
.cpop-success.show { display: block; }
.cpop-success-icon {
  width: 72px; height: 72px;
  background: #ecfdf5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.cpop-success-icon svg { width: 36px; height: 36px; stroke: #059669; fill: none; stroke-width: 2.5; }
.cpop-success h3 { font-size: 22px; font-weight: 800; color: #1a1f2e; margin-bottom: 10px; }
.cpop-success p { font-size: 14.5px; color: #6b7280; line-height: 1.7; margin-bottom: 20px; }
.cpop-success .cpop-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #1a1f2e;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}
.cpop-success .cpop-close-btn:hover { background: #2d4a3e; }

/* Privacy note */
.cpop-privacy {
  font-size: 11.5px;
  color: #9ca3af;
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}
.cpop-privacy a { color: #6b7280; }

/* ══ RESPONSIVE ══ */
@media (max-width: 600px) {
  #consultPopup { border-radius: 16px; }
  .cpop-head { padding: 24px 22px 20px; }
  .cpop-head h2 { font-size: 18px; }
  .cpop-body { padding: 22px 22px 26px; }
  .cpop-grid { grid-template-columns: 1fr; }
}