/* =============================================
   SERVICES PAGE STYLES
   ============================================= */

/* ---------- VIDEO HERO ---------- */
.hero-video video.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: none;
  transform: none;
}

/* ---------- SMALL BUTTON VARIANT ---------- */
.btn-sm {
  padding: 10px 20px;
  font-size: 0.82rem;
}
.btn-pink {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
}
.btn-pink:hover {
  background: #b8125d;
  border-color: #b8125d;
  transform: translateY(-2px);
}
.btn-block { width: 100%; justify-content: center; }

/* ---------- SERVICES SECTION WATERMARK ---------- */
.services-list-section {
  position: relative;
  overflow: hidden;
}
.services-list-section::before {
  content: '';
  position: absolute;
  top:10%;
  left: 90%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: url('assets/logo.webp') center / contain no-repeat;
  opacity: 0.18;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}
.services-list-section > .container {
  position: relative;
  z-index: 1;
}

/* ---------- SERVICES FULL GRID ---------- */
.services-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.svc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
/* Image header */
.svc-card-img {
  position: relative;
  height: 240px;
  overflow: hidden;
  flex-shrink: 0;
}
.svc-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
  display: block;
}
.svc-card:hover .svc-card-img img {
  transform: scale(1.06);
}
/* Subtle gradient at bottom of image for depth */
.svc-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(8,12,24,0.45) 0%, transparent 100%);
  pointer-events: none;
}
/* Icon pill inside card body */
.svc-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--blue);
  border-radius: 0;
  margin-bottom: 14px;
  flex-shrink: 0;
  transition: background var(--transition);
}
.svc-card:hover .svc-card-icon {
  background: var(--pink);
}
.svc-card-icon i {
  font-size: 1.1rem;
  color: var(--white);
}
.svc-card-body {
  padding: 22px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.svc-card-body h3 { margin-bottom: 10px; font-size: 1.05rem; }
.svc-card-body p {
  color: var(--grey);
  font-size: 0.88rem;
  flex: 1;
  margin-bottom: 20px;
  line-height: 1.7;
}

/* ---------- QUOTE WIZARD ---------- */
.quote-builder {
  background: var(--grey-light);
}

/* --- Step progress bar --- */
.qwiz-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 44px;
}
.qwiz-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 110px;
}
.qwiz-step-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--grey);
  background: var(--white);
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.qwiz-step span {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--grey);
  transition: color 0.35s;
  text-align: center;
}
.qwiz-step--active .qwiz-step-circle {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--white);
  box-shadow: 0 6px 22px rgba(214, 20, 107, 0.32);
  transform: scale(1.12);
}
.qwiz-step--active span { color: var(--pink); font-weight: 700; }
.qwiz-step--done .qwiz-step-circle {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.qwiz-step--done span { color: var(--blue); }
.qwiz-line {
  flex: 1;
  max-width: 130px;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
  margin-bottom: 28px;
  transition: background 0.5s ease;
}
.qwiz-line--done { background: var(--blue); }

/* --- Viewport + panels --- */
.qwiz-viewport { position: relative; overflow: hidden; }

.qwiz-panel { transition: none; }

/* Slide animations */
@keyframes qwizExitLeft {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-56px); }
}
@keyframes qwizExitRight {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(56px); }
}
@keyframes qwizEnterRight {
  from { opacity: 0; transform: translateX(56px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes qwizEnterLeft {
  from { opacity: 0; transform: translateX(-56px); }
  to   { opacity: 1; transform: translateX(0); }
}
.qwiz-exit-left  { animation: qwizExitLeft  0.30s ease forwards; }
.qwiz-exit-right { animation: qwizExitRight 0.30s ease forwards; }
.qwiz-enter-right { animation: qwizEnterRight 0.38s ease forwards; }
.qwiz-enter-left  { animation: qwizEnterLeft  0.38s ease forwards; }

/* --- Panel card --- */
.qwiz-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.qwiz-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.qwiz-card-head h4 {
  font-size: 1.15rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.qwiz-card-head h4 i { color: var(--pink); }

/* --- Tally badge --- */
.qwiz-tally {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  border-radius: 999px;
  padding: 8px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  align-self: flex-start;
  transition: background 0.2s;
}
.qwiz-tally #qSelCount {
  color: var(--pink);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

/* --- Services grid (2-col cards) --- */
.qwiz-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.qs-item {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
  position: relative;
  background: var(--white);
  user-select: none;
}
.qs-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.qs-card-body {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.qs-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--grey);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.qs-card-text {
  display: flex;
  flex-direction: column;
}
.qs-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--dark);
  transition: color 0.2s;
}
.qs-desc {
  font-size: 0.77rem;
  color: var(--grey);
  margin-top: 2px;
}
.qs-card-check {
  font-size: 1.15rem;
  color: var(--border);
  transition: color 0.2s, transform 0.2s;
  flex-shrink: 0;
  margin-left: 8px;
}
/* Hover */
.qs-item:hover:not(.selected) {
  border-color: var(--blue);
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(26, 62, 191, 0.10);
}
.qs-item:hover:not(.selected) .qs-card-icon {
  background: var(--blue-light);
  color: var(--blue);
}
/* Selected */
.qs-item.selected {
  border-color: var(--pink);
  background: var(--pink-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(214, 20, 107, 0.13);
}
.qs-item.selected .qs-name { color: var(--pink); }
.qs-item.selected .qs-card-icon {
  background: rgba(214, 20, 107, 0.12);
  color: var(--pink);
}
.qs-item.selected .qs-card-check {
  color: var(--pink);
  transform: scale(1.15);
}

/* --- Panel footer --- */
.qwiz-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.qwiz-card-foot--right { justify-content: flex-end; }

/* Continue button glow when enabled */
.qwiz-next-btn:not(:disabled) {
  box-shadow: 0 6px 24px rgba(214, 20, 107, 0.38);
}
.qwiz-next-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Back button */
.qwiz-back-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
  align-self: flex-start;
}
.qwiz-back-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* --- Chips bar (selected services summary) --- */
.qwiz-chips-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--grey-light);
  border-radius: var(--radius);
  padding: 12px 18px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
}
.qwiz-chips-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.qwiz-chips-label i { color: var(--pink); }
.qwiz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qwiz-chip {
  background: var(--pink);
  color: var(--white);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.77rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  animation: chipFadeIn 0.3s ease forwards;
}
@keyframes chipFadeIn {
  from { opacity: 0; transform: scale(0.78); }
  to   { opacity: 1; transform: scale(1); }
}

/* --- Form 2-col grid --- */
.qwiz-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin-bottom: 8px;
}
.qwiz-form-full { grid-column: 1 / -1; }

/* Hint text */
.quote-hint {
  color: var(--grey);
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Error box */
.quote-error {
  display: none;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 12px 16px;
  color: #991b1b;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

/* Disclaimer */
.quote-disclaimer {
  font-size: 0.78rem;
  color: var(--grey);
  line-height: 1.6;
  display: flex;
  gap: 6px;
  align-items: flex-start;
  flex: 1;
}
.quote-disclaimer i { color: var(--blue); flex-shrink: 0; margin-top: 2px; }

/* ---------- QUOTE PREVIEW ---------- */
.quote-preview-section {
  background: var(--grey-light);
  padding: 70px 0;
}
.quote-preview-wrap {
  max-width: 880px;
  margin: 0 auto;
}
.quote-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ---- THE QUOTE DOCUMENT ---- */
.quote-doc {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.14);
  border: 1px solid var(--border);
}

/* Header band */
.qd-header {
  background: linear-gradient(120deg, var(--dark) 55%, var(--blue-dark) 100%);
  padding: 36px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.qd-logo { height: 80px; width: auto; }
.qd-company-info { text-align: right; color: rgba(255,255,255,0.75); font-size: 0.84rem; }
.qd-company-info p { margin-bottom: 4px; }
.qd-company-info i { color: var(--pink); margin-right: 6px; }

/* Title bar */
.qd-title-bar {
  background: var(--pink);
  color: var(--white);
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.qd-title-bar h2 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--white);
}
.qd-meta {
  display: flex;
  gap: 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
}
.qd-meta span strong { color: var(--white); }

/* Bill to */
.qd-bill-to {
  padding: 32px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}
.qd-bill-block h5 {
  font-family: var(--font-head);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--grey);
  margin-bottom: 10px;
}
.qd-bill-block p { font-size: 0.9rem; color: var(--dark-2); margin-bottom: 4px; }

/* Table */
.qd-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}
.qd-table thead tr {
  background: var(--blue);
  color: var(--white);
}
.qd-table thead th {
  padding: 12px 20px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
}
.qd-table thead th.text-right { text-align: right; }
.qd-table tbody tr:nth-child(even) { background: #f8f9fc; }
.qd-table tbody td {
  padding: 12px 20px;
  font-size: 0.88rem;
  color: var(--dark-2);
  border-bottom: 1px solid var(--border);
}
.qd-table tbody td.text-right { text-align: right; font-weight: 600; }
.qd-table tfoot td {
  padding: 10px 20px;
  font-size: 0.88rem;
}
.qd-table tfoot td.text-right { text-align: right; }
.qd-subtotal-row td { color: var(--grey); font-size: 0.88rem; }
.qd-vat-row td { color: var(--dark-2); }
.qd-total-row {
  background: var(--dark);
}
.qd-total-row td {
  color: var(--white) !important;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem !important;
}
.qd-total-row td.text-right { color: var(--pink) !important; }

/* Notes */
.qd-notes {
  padding: 28px 48px;
  border-top: 1px solid var(--border);
  background: var(--grey-light);
}
.qd-notes h5 {
  font-family: var(--font-head);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--grey);
  margin-bottom: 12px;
}
.qd-notes ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.qd-notes ul li {
  font-size: 0.8rem;
  color: var(--grey);
  padding-left: 14px;
  position: relative;
}
.qd-notes ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pink);
}
.qd-extra-notes {
  padding: 0 48px 24px;
  background: var(--grey-light);
}
.qd-extra-notes h5 {
  font-family: var(--font-head);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--grey);
  margin-bottom: 8px;
}
.qd-extra-notes p { font-size: 0.88rem; color: var(--dark-2); }

/* Footer */
.qd-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.qd-footer-sig .qd-sig-line {
  width: 180px;
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin-bottom: 8px;
}
.qd-footer-sig p { font-size: 0.78rem; }
.qd-footer-brand { text-align: right; }
.qd-footer-brand p { font-size: 0.78rem; }
.qd-footer-brand p:first-child {
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 4px;
}

/* Print styles */
@media print {
  .topbar, .navbar, .page-hero, .services-full-grid,
  .quote-builder, .quote-actions, .footer { display: none !important; }
  .quote-preview-section { display: block !important; padding: 0; }
  .quote-doc { box-shadow: none; border: none; }
  body { background: white; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .services-full-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .qwiz-card { padding: 28px 20px; }
  .qwiz-services-grid { grid-template-columns: 1fr; }
  .qwiz-form-grid { grid-template-columns: 1fr; }
  .qwiz-form-full { grid-column: 1; }
  .qwiz-step { min-width: 70px; }
  .qwiz-step span { font-size: 0.65rem; }
  .qwiz-line { max-width: 60px; }
}
@media (max-width: 640px) {
  .services-full-grid { grid-template-columns: 1fr; }
  .qwiz-card-foot { flex-direction: column; align-items: stretch; }
  .qwiz-card-foot--right { align-items: stretch; }
  .qd-header { flex-direction: column; text-align: center; padding: 28px 24px; }
  .qd-company-info { text-align: center; }
  .qd-title-bar { flex-direction: column; align-items: flex-start; padding: 16px 24px; }
  .qd-meta { flex-direction: column; gap: 4px; }
  .qd-bill-to { grid-template-columns: 1fr; padding: 24px; }
  .qd-table thead th, .qd-table tbody td, .qd-table tfoot td { padding: 10px 14px; }
  .qd-notes, .qd-extra-notes { padding: 20px 24px; }
  .qd-footer { flex-direction: column; align-items: center; text-align: center; padding: 24px; }
  .qd-footer-brand { text-align: center; }
}
