

/* -----------------------------------------------------------
   CSS Custom Properties (mirrors style.css :root)
   ----------------------------------------------------------- */
:root {
  --theme-color: #d29251;
  --secondary-color: #272e35;
  --text-color: #444444;
  --title-color: #010101;
  --title-font: 'Fira Sans', sans-serif;
  --text-font: 'Barlow', sans-serif;
  --jost: 'Jost', sans-serif;
  --roboto: 'Roboto', sans-serif;

  /* Section-specific tokens */
  --cq-bg: #fbf8f4;
  --cq-card-bg: #ffffff;
  --cq-border: #e8e0d8;
  --cq-input-border: #d8d0c8;
  --cq-input-focus: var(--theme-color);
  --cq-error: #c0392b;
  --cq-radius: 4px;
  --cq-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  --cq-modal-overlay: rgba(39, 46, 53, 0.88);
  --cq-transition: 420ms ease;
}


/* ============================================================
   CONTACT / QUOTE SECTION
   ============================================================ */

.contact-quote-section {
  position: relative;
  background: var(--cq-bg);
  padding: 120px 0 130px;
  overflow: hidden;
}

/* Decorative background pattern */
.contact-quote-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 24px,
      rgba(210, 146, 81, 0.04) 24px,
      rgba(210, 146, 81, 0.04) 25px
    );
  pointer-events: none;
}

/* Section title — uses existing .sec-title from style.css */
.contact-quote-section .sec-title {
  margin-bottom: 64px;
}

.contact-quote-section .sec-title .sub-title::before,
.contact-quote-section .sec-title .sub-title::after {
  background: var(--theme-color);
}

.contact-quote-section .sec-title h2 {
  font-size: 44px;
  line-height: 54px;
  font-weight: 600;
}

.contact-quote-section .sec-title p {
  margin-top: 14px;
  font-size: 18px;
  color: #777;
}


/* -----------------------------------------------------------
   Two-Column Layout
   ----------------------------------------------------------- */

.cq-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 50px;
  align-items: start;
}


/* -----------------------------------------------------------
   Info Column (Left)
   ----------------------------------------------------------- */

.cq-info-column {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cq-info-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--cq-border);
}

.cq-info-card:first-child {
  padding-top: 0;
}

.cq-info-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--theme-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  transition: transform var(--cq-transition);
}

.cq-info-card:hover .cq-info-icon {
  transform: scale(1.1);
}

.cq-info-text {
  flex: 1;
}

.cq-info-text span {
  display: block;
  font-size: 13px;
  font-family: var(--jost);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--theme-color);
  margin-bottom: 4px;
}

.cq-info-text a,
.cq-info-text p {
  font-size: 17px;
  font-family: var(--text-font);
  color: var(--text-color);
  margin: 0;
  line-height: 1.5;
}

.cq-info-text a:hover {
  color: var(--theme-color);
}

.cq-social {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.cq-social a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--cq-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-color);
  transition: all var(--cq-transition);
}

.cq-social a:hover {
  background: var(--theme-color);
  border-color: var(--theme-color);
  color: #fff;
  transform: translateY(-3px);
}


/* -----------------------------------------------------------
   Main Form (Right)
   ----------------------------------------------------------- */

.cq-form-column {
  background: var(--cq-card-bg);
  border: 1px solid var(--cq-border);
  padding: 52px 50px;
  position: relative;
}

.cq-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.cq-form-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

.cq-form-group label {
  font-size: 15px;
  font-family: var(--jost);
  font-weight: 600;
  color: var(--title-color);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.cq-required {
  color: var(--theme-color);
}

.cq-form-group input,
.cq-form-group select {
  width: 100%;
  height: 54px;
  border: 1px solid var(--cq-input-border);
  border-radius: var(--cq-radius);
  background: #fafaf8;
  font-size: 17px;
  font-family: var(--text-font);
  color: var(--text-color);
  padding: 0 20px;
  transition: border-color var(--cq-transition), box-shadow var(--cq-transition), background var(--cq-transition);
  -webkit-appearance: none;
  appearance: none;
}

.cq-form-group input:focus,
.cq-form-group select:focus {
  border-color: var(--cq-input-focus);
  box-shadow: 0 0 0 3px rgba(210, 146, 81, 0.12);
  background: #fff;
  outline: none;
}

.cq-form-group input.error,
.cq-form-group select.error {
  border-color: var(--cq-error);
  background: #fff8f8;
}

/* Select wrapper with custom arrow */
.cq-select-wrap {
  position: relative;
}

.cq-select-wrap select {
  cursor: pointer;
  padding-right: 44px;
}

.cq-select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--theme-color);
  pointer-events: none;
  transition: transform var(--cq-transition);
}

.cq-select-wrap:focus-within .cq-select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

/* Phone field with prefix */
.cq-phone-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cq-phone-prefix {
  position: absolute;
  left: 0;
  top: 0;
  height: 54px;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--jost);
  font-weight: 700;
  font-size: 15px;
  color: var(--theme-color);
  border-right: 1px solid var(--cq-input-border);
  z-index: 1;
}

.cq-phone-wrap input {
  padding-left: 62px;
}

/* Error message */
.cq-error-msg {
  display: none;
  font-size: 13px;
  font-family: var(--text-font);
  color: var(--cq-error);
  margin-top: 6px;
  animation: cqShake 0.3s ease;
}

.cq-error-msg.visible {
  display: block;
}

@keyframes cqShake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* CTA area */
.cq-form-cta {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cq-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  width: 100%;
  font-size: 16px;
  padding: 18px 35px;
  transition: all 500ms ease;
}

.cq-submit-btn i {
  transition: transform var(--cq-transition);
}

.cq-submit-btn:hover i {
  transform: translateX(4px);
}

/* Loading state */
.cq-submit-btn.loading span::after {
  content: '…';
  animation: cqDots 1s steps(3, end) infinite;
}

@keyframes cqDots {
  0%   { content: '.'; }
  33%  { content: '..'; }
  66%  { content: '...'; }
  100% { content: ''; }
}

.cq-privacy-note {
  font-size: 14px;
  color: #999;
  font-family: var(--text-font);
  text-align: center;
  margin: 0;
}

.cq-privacy-note i {
  color: var(--theme-color);
  margin-right: 4px;
}


/* ============================================================
   MODAL OVERLAY
   ============================================================ */

.cq-modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--cq-modal-overlay);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 450ms ease, visibility 450ms ease;
  backdrop-filter: blur(3px);
}

.cq-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}


/* -----------------------------------------------------------
   Modal Box
   ----------------------------------------------------------- */

.cq-modal {
  position: relative;
  background: var(--cq-card-bg);
  width: 100%;
  max-width: 1000px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  transform: translateY(40px) scale(0.97);
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1), opacity 450ms ease;
  opacity: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--cq-border) transparent;
}

.cq-modal-overlay.active .cq-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Accent top bar */
.cq-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--theme-color);
  z-index: 2;
}

/* Close button */
.cq-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f0ece6;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--title-color);
  z-index: 10;
  transition: all var(--cq-transition);
}

.cq-modal-close:hover {
  background: var(--theme-color);
  color: #fff;
  transform: rotate(90deg);
}

/* Two-panel modal inner */
.cq-modal-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: 560px;
}


/* -----------------------------------------------------------
   Modal — Form Side (Left)
   ----------------------------------------------------------- */

.cq-modal-form-side {
  padding: 50px 50px 50px 54px;
  display: flex;
  flex-direction: column;
}

.cq-modal-header {
  margin-bottom: 36px;
}

.cq-modal-badge {
  display: inline-block;
  font-size: 12px;
  font-family: var(--jost);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(210, 146, 81, 0.12);
  color: var(--theme-color);
  padding: 5px 14px;
  margin-bottom: 14px;
}

.cq-modal-heading {
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
  font-family: var(--title-font);
  color: var(--title-color);
  margin-bottom: 10px;
}

.cq-modal-heading em {
  font-style: normal;
  color: var(--theme-color);
}

.cq-modal-sub {
  font-size: 16px;
  color: #777;
  font-family: var(--text-font);
  margin: 0;
  line-height: 1.6;
}

/* Dimension hint */
.cq-dim-hint {
  font-size: 12px;
  font-weight: 400;
  font-family: var(--text-font);
  color: #999;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}

/* Full-width form group */
.cq-full-width {
  grid-column: 1 / -1;
  margin-bottom: 24px;
}

/* Deliverables grid (checkbox pills) */
.cq-deliverables-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.cq-deliverable-pill {
  position: relative;
}

.cq-deliverable-pill input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cq-deliverable-pill label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: 1px solid var(--cq-input-border);
  border-radius: 40px;
  font-size: 14px;
  font-family: var(--text-font);
  font-weight: 500;
  color: var(--text-color);
  background: #fafaf8;
  cursor: pointer;
  transition: all var(--cq-transition);
  user-select: none;
  text-transform: none;
  letter-spacing: 0;
}

.cq-deliverable-pill label::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--cq-input-border);
  border-radius: 3px;
  flex-shrink: 0;
  transition: all var(--cq-transition);
  background: #fff;
}

.cq-deliverable-pill input:checked + label {
  background: var(--theme-color);
  border-color: var(--theme-color);
  color: #fff;
}

.cq-deliverable-pill input:checked + label::before {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.6);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 3.5L3.5 6 9 1' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.cq-deliverable-pill label:hover {
  border-color: var(--theme-color);
  color: var(--theme-color);
}

.cq-deliverable-pill input:checked + label:hover {
  color: #fff;
}

/* Live Estimate Bar */
.cq-estimate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--secondary-color);
  color: #fff;
  padding: 18px 28px;
  margin: 8px 0 28px;
  transition: opacity 300ms ease;
}

.cq-estimate-label {
  font-size: 15px;
  font-family: var(--jost);
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.7;
}

.cq-estimate-label i {
  color: var(--theme-color);
  font-size: 17px;
}

.cq-estimate-amount {
  font-size: 28px;
  font-family: var(--title-font);
  font-weight: 700;
  color: var(--theme-color);
  transition: all 300ms ease;
  min-width: 110px;
  text-align: right;
}

.cq-estimate-amount.pulse {
  animation: cqPulse 0.4s ease;
}

@keyframes cqPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* Quote submit button */
.cq-quote-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  padding: 18px 35px;
  transition: all 500ms ease;
}

.cq-quote-submit i {
  transition: transform var(--cq-transition);
}

.cq-quote-submit:hover i {
  transform: translateX(4px) rotate(-10deg);
}


/* -----------------------------------------------------------
   Modal — Preview Side (Right)
   ----------------------------------------------------------- */

.cq-quote-note {
  background: #fff;
  border-left: 4px solid var(--theme-color);
  padding: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  font-family: var(--text-font);
}
/* .cq-preview-image-wrap
.cq-preview-img
.cq-preview-label */

.cq-preview-image-wrap {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 280px;
}

.cq-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 500ms ease;
  display: block;
}

.cq-preview-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(39,46,53,0.85) 0%, transparent 100%);
  padding: 24px 20px 16px;
  font-size: 15px;
  font-family: var(--jost);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
}

/* Spec summary card */
.cq-spec-card {
  background: #fff;
  border-top: 1px solid var(--cq-border);
  /* padding: 28px 28px 24px; */
    padding: 143Px 28px 24px;

}

.cq-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0ece6;
  font-size: 15px;
}

.cq-spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cq-spec-row span {
  font-family: var(--text-font);
  color: #888;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.cq-spec-row strong {
  font-family: var(--title-font);
  font-weight: 600;
  color: var(--title-color);
  font-size: 15px;
}

.cq-spec-total {
  margin-top: 6px;
  padding-top: 14px !important;
  border-top: 2px solid var(--cq-border) !important;
}

.cq-spec-total strong {
  color: var(--theme-color);
  font-size: 20px;
}


/* ============================================================
   SUCCESS TOAST
   ============================================================ */

.cq-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--secondary-color);
  color: #fff;
  padding: 16px 32px;
  border-left: 4px solid var(--theme-color);
  font-size: 16px;
  font-family: var(--text-font);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 200000;
  opacity: 0;
  visibility: hidden;
  transition: all 450ms cubic-bezier(0.22, 1, 0.36, 1);
  min-width: 340px;
  max-width: 90vw;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.cq-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.cq-toast i {
  color: #4caf50;
  font-size: 22px;
  flex-shrink: 0;
}


/* ============================================================
   MOBILE STICKY CTA
   ============================================================ */

.cq-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90000;
  padding: 12px 16px;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.cq-sticky-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  font-size: 15px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .cq-layout {
    grid-template-columns: 280px 1fr;
    gap: 36px;
  }

  .cq-modal-inner {
    grid-template-columns: 1fr;
  }

  .cq-modal-preview-side {
    border-left: none;
    border-top: 1px solid var(--cq-border);
    flex-direction: row;
    min-height: 180px;
  }

  .cq-preview-image-wrap {
    flex: 1;
    min-height: 180px;
  }

  .cq-spec-card {
    flex: 1;
    border-top: none;
    border-left: 1px solid var(--cq-border);
  }
}

/* Phablet (≤ 768px) */
@media (max-width: 768px) {
  .contact-quote-section {
    padding: 80px 0 100px;
  }

  .contact-quote-section .sec-title h2 {
    font-size: 32px;
    line-height: 42px;
  }

  .cq-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cq-info-column {
    order: 2;
  }

  .cq-form-column {
    order: 1;
    padding: 36px 28px;
  }

  .cq-form-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Sticky CTA visible */
  .cq-sticky-cta {
    display: block;
  }

  /* Modal full-screen */
  .cq-modal {
    max-height: 95vh;
    border-radius: 0;
  }

  .cq-modal-form-side {
    padding: 44px 24px 40px;
  }

  .cq-modal-heading {
    font-size: 26px;
  }

  .cq-modal-preview-side {
    flex-direction: column;
  }

  .cq-spec-card {
    border-left: none;
    border-top: 1px solid var(--cq-border);
      padding: 28px 28px 24px!important;

  }

  .cq-estimate-amount {
    font-size: 22px;
  }

  /* Push content above sticky bar */
  body {
    padding-bottom: 68px;
  }
}

/* Mobile (≤ 480px) */
@media (max-width: 480px) {
  .cq-form-column {
    padding: 28px 20px;
  }

  .cq-deliverables-grid {
    gap: 8px;
  }

  .cq-deliverable-pill label {
    font-size: 13px;
    padding: 8px 14px;
  }

  .cq-estimate-bar {
    padding: 14px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .cq-estimate-amount {
    text-align: left;
  }

  .cq-modal-close {
    top: 12px;
    right: 12px;
  }
}

/* Scrollbar style for modal */
.cq-modal::-webkit-scrollbar {
  width: 4px;
}
.cq-modal::-webkit-scrollbar-track {
  background: transparent;
}
.cq-modal::-webkit-scrollbar-thumb {
  background: var(--cq-border);
  border-radius: 4px;
}
