/* ============================================================
   quote.css — Request a Quote funnel styles
   Inherits CSS variables from styles.css
============================================================ */

/* ── Reset / base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.quote-body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
.q-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.q-back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  min-width: 60px;
}
.q-back-link:hover { color: var(--gold); }

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
}
.logo-jp {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
}
.logo-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.q-header-logo { margin-left: auto; }

/* ── Progress bar ── */
.q-progress-wrap {
  height: 3px;
  background: var(--border);
}
.q-progress-bar {
  height: 100%;
  background: var(--gold);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Step panels ── */
.q-main {
  flex: 1;
  overflow: hidden;
  position: relative;
  padding-bottom: 100px; /* room for sticky footer */
}

.q-step {
  display: none;
  animation: fadeSlideIn 0.35s ease both;
}
.q-step.active { display: block; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeSlideBack {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}
.q-step.slide-back { animation: fadeSlideBack 0.35s ease both; }

.q-step-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 24px 24px;
}

.q-step-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.q-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 10px;
}

.q-subheading {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ── Service grid ── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 540px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 16px 18px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.service-card:hover {
  border-color: rgba(201,168,76,0.5);
  background: var(--bg-3);
}
.service-card.selected {
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
}
.service-card:active { transform: scale(0.97); }

.service-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

/* ── Photo grid ── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

@media (min-width: 540px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}

.photo-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.photo-card:hover img { transform: scale(1.04); }
.photo-card.selected { border-color: var(--gold); }
.photo-card.selected::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  background: var(--gold);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-card.dimmed { opacity: 0.35; pointer-events: none; }
.photo-card:active { transform: scale(0.97); }

.q-skip-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* ── Chip groups ── */
.q-section { margin-bottom: 32px; }
.q-section-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 9px 18px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: rgba(201,168,76,0.5); }
.chip.selected {
  border-color: var(--gold);
  background: rgba(201,168,76,0.12);
  color: var(--gold);
}

/* ── Contact form ── */
.q-form { display: flex; flex-direction: column; gap: 20px; }

.q-field { display: flex; flex-direction: column; gap: 8px; }

.q-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.q-input {
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 13px 16px;
  transition: border-color 0.2s;
  width: 100%;
  -webkit-appearance: none;
}
.q-input::placeholder { color: #555; }
.q-input:focus {
  outline: none;
  border-color: var(--gold);
}
.q-input.error { border-color: #e55; }

/* ── Error text ── */
.q-error {
  color: #e55;
  font-size: 0.82rem;
  margin-top: 12px;
}
.q-error.hidden { display: none; }

/* ── Confirmation screen ── */
.confirm-inner {
  text-align: center;
  padding-top: 56px;
  max-width: 560px;
  margin: 0 auto;
}

.confirm-check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(201,168,76,0.12);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  box-shadow: 0 0 32px rgba(201,168,76,0.15);
}
.confirm-check svg {
  width: 30px;
  height: 30px;
  stroke: var(--gold);
}

.confirm-summary {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 32px 0;
  text-align: left;
}

/* Inspired-by image strip */
.confirm-inspired-section {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.confirm-inspired-section > .confirm-summary-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.confirm-inspired-grid {
  display: flex;
  gap: 10px;
}
.confirm-inspired-img {
  flex: 1;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.confirm-inspired-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Summary rows */
.confirm-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.confirm-summary-row:last-child { border-bottom: none; }
.confirm-summary-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.confirm-summary-value { color: var(--text); font-weight: 500; text-align: right; }

.confirm-btn {
  display: inline-block;
  text-decoration: none;
  margin-top: 8px;
}

/* ── Sticky footer nav ── */
.q-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  gap: 12px;
  z-index: 40;
}

/* Reuse .btn from styles.css */
.q-btn-back { flex: 1; }
.q-btn-next { flex: 2; }

/* Hide footer on confirmation */
.q-footer.hidden { display: none; }

/* ── Shared btn overrides (if styles.css not fully loaded) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  padding: 13px 24px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
  border: 1.5px solid transparent;
  text-decoration: none;
}
.btn-gold {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}
.btn-gold:hover { opacity: 0.88; }
.btn-gold:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--text-muted); }

/* Loading spinner on submit */
.btn-gold.loading {
  pointer-events: none;
  opacity: 0.7;
}
.btn-gold.loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }
