/* ============================================================
   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 — compact, no-scroll, all screens
══════════════════════════════════════════════════════════════ */
#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: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
#consultPopupOverlay.active {
  opacity: 1;
  visibility: visible;
}

#consultPopup {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  /* No scroll — fits fully on screen */
  overflow: visible;
  box-shadow: 0 24px 60px rgba(0,0,0,.32);
  transform: translateY(20px) 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 — compact */
.cpop-head {
  background: linear-gradient(135deg, #1a1f2e 0%, #2d4a3e 100%);
  padding: 18px 24px 14px;
  border-radius: 18px 18px 0 0;
  position: relative;
}
.cpop-head-logo {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.cpop-head-logo span { color: #c8a96e; }
.cpop-head h2 {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 3px;
  line-height: 1.2;
}
.cpop-head p { font-size: 12px; color: rgba(255,255,255,.52); line-height: 1.4; }
.cpop-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 28px; height: 28px;
  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;
}
.cpop-close:hover { background: rgba(255,255,255,.22); }
.cpop-close svg { width: 14px; height: 14px; stroke: #fff; fill: none; }

/* Popup badges — inline row, smaller */
.cpop-badges {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  margin-top: 10px;
  overflow: hidden;
}
.cpop-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.70);
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
}

/* Popup body — tight */
.cpop-body { padding: 16px 24px 18px; }

/* Form fields */
.cpop-field { margin-bottom: 10px; }
.cpop-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 5px;
}
.cpop-label .req { color: #ef4444; margin-left: 2px; }
.cpop-iw { position: relative; }
.cpop-iw svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px; height: 13px;
  stroke: #9ca3af; fill: none;
  pointer-events: none;
}
.cpop-input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1.5px solid #e5e7eb;
  border-radius: 9px;
  font-size: 13.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: 9px 12px 9px 34px;
  border: 1.5px solid #e5e7eb;
  border-radius: 9px;
  font-size: 13.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); }

/* 2-column grid for name + phone */
.cpop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Submit button */
.cpop-submit {
  width: 100%;
  padding: 11px 20px;
  background: #1a1f2e;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.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: 15px; height: 15px; stroke: #fff; fill: none; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.cpop-btn-text {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}
.cpop-spinner {
  width: 15px; height: 15px;
  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: 9px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  margin-bottom: 10px;
  display: none;
}
.cpop-error-msg.show { display: block; }

/* Success state */
.cpop-success {
  text-align: center;
  padding: 36px 28px;
  display: none;
}
.cpop-success.show { display: block; }
.cpop-success-icon {
  width: 60px; height: 60px;
  background: #ecfdf5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.cpop-success-icon svg { width: 28px; height: 28px; stroke: #059669; fill: none; stroke-width: 2.5; }
.cpop-success h3 { font-size: 19px; font-weight: 800; color: #1a1f2e; margin-bottom: 8px; }
.cpop-success p { font-size: 13.5px; color: #6b7280; line-height: 1.6; margin-bottom: 16px; }
.cpop-success .cpop-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: #1a1f2e;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 13px;
  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: 10.5px;
  color: #9ca3af;
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}
.cpop-privacy a { color: #6b7280; }

/* ══ TABLET (601–900px) ══ */
@media (min-width: 601px) and (max-width: 900px) {
  #consultPopup { max-width: 480px; }
  .cpop-head { padding: 16px 22px 13px; }
  .cpop-body { padding: 14px 22px 16px; }
}

/* ══ MOBILE (≤600px) ══ */
@media (max-width: 600px) {
  #consultPopupOverlay { padding: 0; align-items: flex-end; }
  #consultPopup { border-radius: 16px 16px 0 0; max-width: 100%; }
  .cpop-head { padding: 12px 16px 10px; }
  .cpop-head-logo { display: none; }
  .cpop-head h2 { font-size: 14.5px; margin-bottom: 0; }
  .cpop-head p { display: none; }
  .cpop-badges { display: none; }
  .cpop-body { padding: 11px 16px 14px; }
  .cpop-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cpop-field { margin-bottom: 7px; }
  .cpop-label { font-size: 9.5px; margin-bottom: 4px; }
  .cpop-input, .cpop-select { font-size: 13px; padding: 8px 10px 8px 30px; border-radius: 8px; }
  .cpop-iw svg { width: 12px; height: 12px; left: 10px; }
  .cpop-submit { padding: 9px 14px; font-size: 12.5px; margin-top: 7px; }
  .cpop-btn-text { gap: 5px; }
  .cpop-submit svg { width: 13px; height: 13px; }
  .cpop-privacy { font-size: 9.5px; margin-top: 7px; }
}