/**
 * Consultation Quote Form — multi-field lead capture component.
 * Sibling of /inline-lead-capture.css (different scope: inline-lead-capture owns
 * the email-only .dc-lc-* classes; this file owns the multi-field .dc-cq-* classes
 * plus the .dc-cq-* sticky sidebar + mobile bottom sheet).
 *
 * Reuses navy/gold palette: --navy #0A1628, --gold #C9A96E (same hexes as
 * /inline-lead-capture.css, /free-consultation.html, and /shared-polish.css).
 */

:root {
  --cq-navy: #0A1628;
  --cq-navy-deep: #122A4A;
  --cq-gold: #C9A96E;
  --cq-gold-light: #D4BC8E;
  --cq-cream: #FAF8F5;
  --cq-text: #2C3E50;
  --cq-text-light: #6B7C93;
  --cq-divider: rgba(201, 169, 110, 0.3);
}

/* ── Inline form (navy box) ───────────────────────────────── */
.dc-consult-quote {
  background: linear-gradient(135deg, #0A1628 0%, #122A4A 100%);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin: 2.5rem 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--cq-cream);
}

.dc-cq-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--cq-gold);
  margin-bottom: 0.6rem;
  text-align: center;
}

.dc-cq-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem;
  color: var(--cq-cream);
  margin: 0 0 0.6rem;
  line-height: 1.3;
  text-align: center;
}

.dc-cq-sub {
  font-size: 0.95rem;
  color: rgba(250, 248, 245, 0.7);
  margin: 0 auto 1.5rem;
  line-height: 1.6;
  max-width: 480px;
  text-align: center;
}

.dc-cq-form {
  max-width: 560px;
  margin: 0 auto;
}

.dc-cq-field {
  margin-bottom: 1rem;
}

.dc-consult-quote .dc-cq-field {
  text-align: left;
}

.dc-consult-sticky .dc-cq-field {
  text-align: left;
}

.dc-cq-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cq-cream);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  opacity: 0.85;
}

.dc-cq-req {
  color: var(--cq-gold);
}

.dc-cq-input,
.dc-cq-select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid rgba(201, 169, 110, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cq-cream);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.dc-cq-input::placeholder {
  color: rgba(250, 248, 245, 0.4);
}

.dc-cq-input:focus,
.dc-cq-select:focus {
  border-color: var(--cq-gold);
  background: rgba(255, 255, 255, 0.12);
}

.dc-cq-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23C9A96E' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 10px;
  padding-right: 2.2rem;
}

.dc-cq-select option {
  background: #0A1628;
  color: #FAF8F5;
}

.dc-cq-hint {
  display: block;
  font-size: 0.75rem;
  color: rgba(250, 248, 245, 0.45);
  margin-top: 0.3rem;
  font-style: italic;
}

.dc-cq-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.78rem;
  color: rgba(250, 248, 245, 0.55);
  line-height: 1.5;
  margin: 0.75rem 0 1rem;
}

.dc-cq-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--cq-gold);
  cursor: pointer;
}

.dc-cq-consent a {
  color: #3A7BC8;
  text-decoration: underline;
}

.dc-cq-btn {
  display: block;
  width: 100%;
  padding: 0.95rem 1.5rem;
  background: linear-gradient(135deg, #C9A96E, #D4BC8E);
  color: #0A1628;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.dc-cq-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(201, 169, 110, 0.4);
}

.dc-cq-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.dc-cq-error {
  color: #FCA5A5;
  font-size: 0.85rem;
  margin-top: 0.75rem;
  text-align: center;
}

/* ── Success state (shared by both variants) ──────────────── */
.dc-cq-success {
  text-align: center;
  padding: 1rem 0;
}

.dc-cq-success-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.dc-cq-whatsapp {
  display: inline-block;
  margin-top: 0.75rem;
  background: rgba(37, 211, 102, 0.16);
  border: 1px solid rgba(37, 211, 102, 0.4);
  border-radius: 50px;
  padding: 0.7rem 1.5rem;
  color: #4AE07A;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s;
}

.dc-cq-whatsapp:hover {
  background: rgba(37, 211, 102, 0.24);
}

/* ── Sticky sidebar variant ───────────────────────────────── */
.dc-consult-sticky {
  position: fixed;
  top: 130px;
  right: 1.5rem;
  width: 320px;
  max-width: 320px;
  z-index: 80;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.4rem 1.25rem 1.5rem;
  box-shadow: 0 4px 24px rgba(10, 22, 40, 0.12);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.dc-consult-sticky .dc-cq-heading {
  color: var(--cq-navy);
  font-size: 1.15rem;
  text-align: center;
}

.dc-consult-sticky .dc-cq-sub {
  color: var(--cq-text-light);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.dc-consult-sticky .dc-cq-label {
  color: var(--cq-text);
  opacity: 0.85;
}

.dc-consult-sticky .dc-cq-input,
.dc-consult-sticky .dc-cq-select {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.16);
  color: var(--cq-text);
  font-size: 0.9rem;
  padding: 0.65rem 0.8rem;
}

.dc-consult-sticky .dc-cq-input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.dc-consult-sticky .dc-cq-input:focus,
.dc-consult-sticky .dc-cq-select:focus {
  border-color: var(--cq-gold);
  background: rgba(201, 169, 110, 0.04);
}

.dc-consult-sticky .dc-cq-select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%230A1628' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 9px;
}

.dc-consult-sticky .dc-cq-select option {
  background: #ffffff;
  color: #2C3E50;
}

.dc-consult-sticky .dc-cq-hint {
  color: var(--cq-text-light);
  opacity: 0.85;
}

.dc-consult-sticky .dc-cq-consent {
  color: var(--cq-text-light);
  font-size: 0.72rem;
}

.dc-consult-sticky .dc-cq-consent a {
  color: var(--cq-navy);
}

.dc-consult-sticky .dc-cq-btn {
  font-size: 0.9rem;
  padding: 0.8rem 1rem;
}

.dc-consult-sticky .dc-cq-error {
  color: #b91c1c;
}

.dc-consult-sticky .dc-cq-success {
  padding: 0.5rem 0;
}

.dc-consult-sticky .dc-cq-success .dc-cq-sub {
  color: var(--cq-text-light);
}

.dc-consult-sticky .dc-cq-success-icon {
  font-size: 2rem;
}

/* ── Mobile / narrow tablet — hide sticky, show inline form only ─ */
@media (max-width: 900px) {
  .dc-consult-sticky {
    display: none;
  }
}

@media (max-width: 600px) {
  .dc-consult-quote {
    padding: 2rem 1.25rem;
  }
  .dc-cq-heading {
    font-size: 1.3rem;
  }
}
