/* Lamcraft Finished Prayer Cards — Styles
   Branding identical to Prayer Card Generator (prayer-cards page)
   Shared elements use the same class names & values as PCG */

/* ── Reset ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: #f5f3f0; color: #2a2a2a; min-height: 100vh; }

/* ══════════════════════════════════════════════
   HEADER — identical to PCG
   ══════════════════════════════════════════════ */
.site-header { background: #ffffff; border-bottom: 4px solid #F47920; box-shadow: 0 2px 6px rgba(0,0,0,0.10); }
.site-header__inner { display: flex; align-items: center; gap: 20px; padding: 10px 32px; max-width: 1060px; margin: 0 auto; }
.site-header__logo-img { height: 70px; width: auto; }
.site-header__divider { width: 1.5px; height: 34px; background: #ddd; }
.site-header__title { font-family: Georgia, 'Times New Roman', serif; font-size: 1rem; font-weight: 700; color: #444; letter-spacing: 0.03em; text-transform: uppercase; }
.studio-back { margin-left: auto; font-family: Georgia, 'Times New Roman', serif; font-size: 0.72rem; font-weight: 600; color: #F47920; text-decoration: none; text-transform: uppercase; letter-spacing: 0.06em; padding: 5px 14px; border: 1.5px solid #F47920; border-radius: 4px; transition: background 0.15s, color 0.15s; }
.studio-back:hover { background: #F47920; color: #fff; }

/* ══════════════════════════════════════════════
   CONTAINER & CARD — identical to PCG
   ══════════════════════════════════════════════ */
.container { max-width: 1000px; margin: 28px auto; padding: 0 16px 48px; }
.card { background: #fff; border: 2px solid #F47920; border-radius: 12px; padding: 28px 32px; }
/* Keep form fields readable in wider container */
.form-wrap { max-width: 640px; }

/* ══════════════════════════════════════════════
   SECTION HEADERS — identical to PCG
   ══════════════════════════════════════════════ */
.section-header { background: #fdf5ee; border: 1px solid #f0d5b8; border-radius: 8px; padding: 10px 16px; margin-bottom: 18px; margin-top: 6px; }
.section-header h2 { font-size: 15px; font-weight: 700; color: #d4631a; text-transform: uppercase; letter-spacing: 0.5px; }
.section-header p { font-size: 12px; color: #999; margin-top: 2px; }

/* ══════════════════════════════════════════════
   FORM ELEMENTS — identical to PCG
   ══════════════════════════════════════════════ */
label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 4px; }
input[type="text"], input[type="number"], textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid #d0d0d0; border-radius: 6px;
  font-size: 14px; font-family: inherit; background: #faf8f5; transition: border-color 0.2s;
}
input[type="text"]:focus, input[type="number"]:focus, textarea:focus, select:focus {
  outline: none; border-color: #F47920; box-shadow: 0 0 0 3px rgba(244,121,32,0.12); background: #fff;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select { cursor: pointer; }
.field-row { margin-bottom: 14px; }
.label-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.label-row label { margin-bottom: 0; }
.checkbox-label { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #888; cursor: pointer; white-space: nowrap; }
.checkbox-label input[type="checkbox"] { cursor: pointer; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { font-size: 12px; color: #888; margin-top: 4px; }

/* ══════════════════════════════════════════════
   CHECKBOX ROW — identical to PCG
   ══════════════════════════════════════════════ */
.checkbox-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.checkbox-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: #F47920; cursor: pointer; }
.checkbox-row label { font-size: 14px; color: #555; cursor: pointer; margin-bottom: 0; }

/* ══════════════════════════════════════════════
   DROP ZONE / PHOTO UPLOAD — identical to PCG
   ══════════════════════════════════════════════ */
.drop-zone {
  border: 2px dashed #ccc; border-radius: 8px; padding: 18px; text-align: center;
  cursor: pointer; transition: all 0.2s; position: relative; min-height: 90px;
  display: flex; align-items: center; justify-content: center; flex-direction: column; background: #faf8f5;
}
.drop-zone:hover:not(.disabled) { border-color: #F47920; background: #fef6f0; }
.drop-zone.dragover { border-color: #F47920; background: #fef0e5; }
.drop-zone.disabled { opacity: 0.35; cursor: not-allowed; }
.drop-zone.has-photo { border-style: solid; border-color: #2a8a5a; }
.drop-label { font-size: 13px; color: #999; }
.drop-label strong { color: #F47920; }
.drop-zone img.photo-preview-img { max-width: 110px; max-height: 110px; border-radius: 4px; }
.photo-clear {
  position: absolute; top: 6px; right: 8px; background: rgba(0,0,0,0.5); color: #fff;
  border: none; border-radius: 50%; width: 22px; height: 22px; font-size: 14px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.photo-clear:hover { background: rgba(0,0,0,0.7); }

/* ══════════════════════════════════════════════
   OPTION TOGGLE (Laminated/Unlaminated, Library/Custom)
   ══════════════════════════════════════════════ */
.option-toggle { display: flex; gap: 8px; margin-bottom: 14px; }
.option-btn {
  flex: 1; padding: 10px; border: 1px solid #d0d0d0; border-radius: 6px;
  text-align: center; cursor: pointer; font-size: 14px; font-family: inherit;
  background: #fff; color: #555; transition: all 0.2s;
}
.option-btn:hover { border-color: #F47920; }
.option-btn.active { border-color: #F47920; background: #fef6f0; color: #d4631a; font-weight: 600; }

/* ══════════════════════════════════════════════
   FOOTER — identical to PCG
   ══════════════════════════════════════════════ */
.site-footer { background: #444; color: rgba(255,255,255,0.45); font-size: 0.72rem; text-align: center; padding: 14px 0; margin-top: 40px; }
.site-footer p { margin: 0; }
.site-footer a { color: rgba(255,255,255,0.6); text-decoration: none; }

/* ══════════════════════════════════════════════
   PROGRESS BAR — wizard-specific
   ══════════════════════════════════════════════ */
/* ══════════════════════════════════════════════
   STEP BAR — shared across FPC + 8-up tools
   Numbered-circle pattern. Done steps clickable backward only.
   ══════════════════════════════════════════════ */
.step-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 8px 18px;
}
.step {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #888; font-weight: 600;
}
.step-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: #e8e4dd; color: #888;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  transition: background 0.2s, color 0.2s;
}
.step.active .step-num { background: #F47920; color: #fff; }
.step.active { color: #F47920; }
.step.done .step-num { background: #2a2a2a; color: #fff; }
.step.done .step-num span { display: none; }
.step.done .step-num::after { content: '✓'; }
.step.done { color: #2a2a2a; cursor: pointer; }
.step.done:hover { text-decoration: underline; }
.step-arrow { color: #d0c8bc; }

/* ══════════════════════════════════════════════
   STEP TITLES — wizard-specific
   ══════════════════════════════════════════════ */
.step-number { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.step-title { font-size: 22px; font-weight: 700; color: #2a2a2a; margin-bottom: 6px; }
.step-desc { font-size: 13px; color: #888; margin-bottom: 18px; line-height: 1.4; }
.step-desc strong { color: #666; }
.section-title { font-size: 15px; font-weight: 700; color: #d4631a; text-transform: uppercase; letter-spacing: 0.5px; margin: 18px 0 10px; }

/* ══════════════════════════════════════════════
   CATEGORY TABS — wizard-specific
   ══════════════════════════════════════════════ */
.cat-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.cat-tab {
  padding: 6px 14px; font-size: 13px; font-family: inherit; border-radius: 20px;
  border: 1px solid #d0d0d0; background: #fff; cursor: pointer; color: #555; transition: all 0.2s;
}
.cat-tab:hover { border-color: #F47920; color: #F47920; }
.cat-tab.active { background: #F47920; color: #fff; border-color: #F47920; }

/* ── Search Bar ── */
.search-bar { margin-bottom: 12px; }
.search-bar input { width: 100%; }

/* ══════════════════════════════════════════════
   DESIGN GRID — 5 across
   ══════════════════════════════════════════════ */
.design-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px; }
.design-card {
  border-radius: 6px; border: 2px solid transparent; overflow: hidden;
  cursor: pointer; transition: all 0.2s; background: #fff;
}
.design-card:hover { border-color: #f0d5b8; }
.design-card.selected { border-color: #F47920; }
.design-card .card-img {
  width: 100%; aspect-ratio: 0.59; background: #f5f3f0;
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.design-card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.design-card .placeholder { font-size: 11px; color: #888; text-align: center; padding: 8px; }
.design-card .check-mark {
  position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%;
  background: #F47920; display: none; align-items: center; justify-content: center;
}
.design-card.selected .check-mark { display: flex; }
.design-card .card-name { font-size: 11px; color: #555; text-align: center; padding: 4px 4px 0; }
.design-card .card-sku { font-size: 10px; color: #999; text-align: center; padding: 0 4px 4px; }

/* ══════════════════════════════════════════════
   VERSE PICKER — wizard-specific
   ══════════════════════════════════════════════ */
.verse-list { display: flex; flex-direction: column; gap: 8px; max-height: 600px; overflow-y: auto; margin-bottom: 14px; padding-right: 4px; }
.verse-option {
  padding: 12px 14px; border: 1px solid #d0d0d0; border-radius: 6px;
  cursor: pointer; background: #fff; transition: all 0.2s;
}
.verse-option:hover { border-color: #F47920; }
.verse-option.selected { border-color: #F47920; background: #fef6f0; }
.verse-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.verse-preview {
  font-size: 12px; color: #555; line-height: 1.5;
}

/* ══════════════════════════════════════════════
   PREVIEW — pdf.js canvas rendering
   ══════════════════════════════════════════════ */
.preview-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 18px; }
.preview-col { display: flex; flex-direction: column; }
.preview-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; text-align: center; }
.preview-card-side { border-radius: 12px; border: 1px solid #d0d0d0; overflow: hidden; aspect-ratio: 0.611; background: #fff; cursor: pointer; transition: box-shadow 0.2s; }
.preview-card-side:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.preview-front { display: flex; align-items: center; justify-content: center; background: #f0ebe5; }
.preview-front img { width: 100%; height: 100%; object-fit: cover; }

/* Back preview: canvas rendered by pdf.js */
.preview-canvas-wrap {
  border-radius: 12px; border: 1px solid #d0d0d0; overflow: hidden;
  aspect-ratio: 0.611; background: #fff; cursor: pointer; position: relative;
  transition: box-shadow 0.2s;
}
.preview-canvas-wrap:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.preview-canvas { width: 100%; height: 100%; display: block; }
.preview-loading {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #888; background: #fff;
}

/* ── Zoom overlay — full-screen card inspection ── */
.zoom-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.82); display: flex; flex-direction: column;
  align-items: center; justify-content: center; z-index: 2000; cursor: pointer;
}
.zoom-overlay.hidden { display: none !important; }
.zoom-content { max-width: 90vw; max-height: 80vh; }
.zoom-canvas {
  max-width: 90vw; max-height: 80vh; border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5); background: #fff;
}
.zoom-img {
  max-width: 90vw; max-height: 80vh; border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5); object-fit: contain;
}
.zoom-hint {
  color: rgba(255,255,255,0.5); font-size: 12px; margin-top: 16px;
  text-align: center; pointer-events: none;
}

/* ══════════════════════════════════════════════
   PRICING TIERS — wizard-specific
   ══════════════════════════════════════════════ */
.tier-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.tier-card {
  padding: 16px 12px; border: 1px solid #d0d0d0; border-radius: 12px;
  cursor: pointer; text-align: center; background: #fff; transition: all 0.2s; position: relative;
}
.tier-card:hover { border-color: #F47920; }
.tier-card.selected { border-color: #F47920; background: #fef6f0; }
.tier-qty { font-size: 22px; font-weight: 700; }
.tier-price { font-size: 16px; font-weight: 700; color: #F47920; margin: 4px 0; }
.tier-per { font-size: 12px; color: #888; }
.tier-badge { font-size: 11px; background: #2a8a5a; color: #fff; padding: 2px 10px; border-radius: 10px; display: inline-block; margin-top: 6px; }
.custom-qty { display: none; align-items: center; gap: 8px; margin-top: 8px; margin-bottom: 14px; }
.custom-qty.show { display: flex; }
.custom-qty label { font-size: 13px; color: #555; white-space: nowrap; margin-bottom: 0; }
.custom-qty input[type="number"] { width: 120px; }

/* ══════════════════════════════════════════════
   ORDER SUMMARY — wizard-specific
   ══════════════════════════════════════════════ */
.order-summary { background: #f5f3f0; border-radius: 12px; padding: 16px 20px; margin: 18px 0; }
.order-summary .summary-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; border-bottom: 1px solid #e8e4dd; }
.summary-row:last-child { border-bottom: none; font-weight: 700; font-size: 16px; padding-top: 10px; }

/* ══════════════════════════════════════════════
   SHIPPING NOTICE — wizard-specific
   ══════════════════════════════════════════════ */
.shipping-notice {
  background: #fff3e0; border: 1px solid #f0d5b8; border-radius: 6px;
  padding: 10px 14px; font-size: 13px; color: #2a2a2a; margin-bottom: 18px; text-align: center;
}
.order-disclaimer {
  background: #fef2f2; border: 1px solid #e8b4b4; border-radius: 6px;
  padding: 12px 16px; font-size: 12px; color: #991b1b; line-height: 1.5; margin: 16px 0;
}

/* ══════════════════════════════════════════════
   NAVIGATION BUTTONS — wizard-specific, PCG button style
   ══════════════════════════════════════════════ */
.nav-buttons { display: flex; justify-content: space-between; padding: 16px 0; border-top: 1px solid #e8e4dd; position: sticky; bottom: 0; background: #fff; z-index: 100; margin: 0 -32px; padding-left: 32px; padding-right: 32px; border-radius: 0 0 10px 10px; }
/* Tagline injected inline into nav-buttons by wizard.js on Step 1 only.
   Sits between the (empty) left slot and the Next button. Hidden on
   narrow screens where row real estate is tight. */
.nav-buttons .brand-tagline { margin: 0; flex: 1; align-self: center; }
@media (max-width: 760px) {
  .nav-buttons .brand-tagline { display: none; }
}
.btn {
  padding: 14px 20px; border: none; border-radius: 8px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; text-align: center; font-family: inherit;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-back { background: #e8e4dd; color: #2a2a2a; }
.btn-back:hover { background: #d8d4cd; }
.btn-next { background: #F47920; color: #fff; }
.btn-next:hover { background: #d4631a; }
.btn-pay { background: #2a8a5a; color: #fff; padding: 14px 36px; font-size: 16px; }
.btn-pay:hover { background: #1f6e47; }

/* ══════════════════════════════════════════════
   CONFIRMATION MODAL — Step 4 → Step 5 gate
   ══════════════════════════════════════════════ */
.confirm-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); display: flex; align-items: center;
  justify-content: center; z-index: 3000; padding: 16px;
}
.confirm-overlay.hidden { display: none !important; }
.confirm-modal {
  background: #fff; border-radius: 12px; max-width: 520px; width: 100%;
  max-height: 90vh; overflow-y: auto; box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.confirm-header {
  padding: 20px 24px 0; font-size: 18px; font-weight: 700; color: #2a2a2a;
}
.confirm-body { padding: 16px 24px; }
.confirm-cards {
  display: flex; gap: 12px; justify-content: center; margin-bottom: 16px;
}
.confirm-card-thumb {
  width: 120px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  background: #f5f3f0; overflow: hidden;
}
.confirm-card-thumb img,
.confirm-card-thumb canvas {
  width: 100%; display: block;
}
.confirm-card-label {
  font-size: 11px; color: #888; text-align: center; padding: 4px 0;
  background: #f5f3f0;
}
.confirm-disclaimer {
  background: #fef2f2; border: 1px solid #e8b4b4; border-radius: 6px;
  padding: 12px 16px; font-size: 13px; color: #991b1b; line-height: 1.6;
  margin-bottom: 16px;
}
.confirm-checkbox-row {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px;
  cursor: pointer;
}
.confirm-checkbox-row input[type="checkbox"] {
  margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0;
  accent-color: #F47920;
}
.confirm-checkbox-row label {
  font-size: 14px; font-weight: 600; color: #2a2a2a; line-height: 1.4;
  cursor: pointer;
}
.confirm-actions {
  display: flex; gap: 10px; justify-content: flex-end; padding: 0 24px 20px;
}
.confirm-actions .btn-confirm {
  background: #F47920; color: #fff; padding: 12px 28px; border: none;
  border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; font-family: inherit;
}
.confirm-actions .btn-confirm:hover { background: #d4631a; }
.confirm-actions .btn-confirm:disabled { opacity: 0.4; cursor: not-allowed; }
.confirm-actions .btn-confirm:disabled:hover { background: #F47920; }
.confirm-actions .btn-cancel {
  background: #e8e4dd; color: #2a2a2a; padding: 12px 20px; border: none;
  border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; font-family: inherit;
}
.confirm-actions .btn-cancel:hover { background: #d8d4cd; }

/* ══════════════════════════════════════════════
   IMPOSITION TEST BUTTON — Order step nav row (PM-11, 4/26/2026)
   Lives between Back and Pay with Stripe in the .nav-buttons flex row.
   Was previously display:block + margin:auto on the Preview step.
   ══════════════════════════════════════════════ */
.btn-test-imposition {
  padding: 14px 20px;
  background: #2c5282;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-test-imposition:hover { background: #1a365d; }
.btn-test-imposition:disabled { opacity: 0.5; cursor: not-allowed; }

/* ══════════════════════════════════════════════
   PRODUCTION PORTAL TEST SEND BUTTON — Order step nav row
   (Production Portal Session 3, 2026-05-03)
   Lives between Download Production Sheet (Test) and Pay with Stripe.
   Purple accent distinguishes it from the imposition test button (blue) —
   visual hierarchy: Back (gray) → Test PDF (blue) → Test Portal (purple)
   → Pay with Stripe (green). Production buttons keep their colors;
   test buttons cluster with cool/distinctive accents.
   ══════════════════════════════════════════════ */
.btn-send-portal {
  padding: 14px 20px;
  background: #6b46c1;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-send-portal:hover { background: #553c9a; }
.btn-send-portal:disabled { opacity: 0.5; cursor: not-allowed; }
/* send-to-portal.js applies .sent class on success — green confirmation */
.btn-send-portal.sent { background: #2a8a5a; }
.btn-send-portal.sent:hover { background: #2a8a5a; }

/* ══════════════════════════════════════════════
   UTILITY
   ══════════════════════════════════════════════ */
.hidden { display: none !important; }

/* ══════════════════════════════════════════════
   BRAND TAGLINE — shown on landing/Step 1 only
   PM-21 (4/28/2026): Tagline now displays a small Lamcraft pennant logo
   to the left of the text — credibility anchor at the decision row.
   ~50% of header logo size (35px desktop / 25px mobile, vs header 70/50).
   `.brand-tagline` becomes a flex container so logo + text align horizontally
   in every context (landing block AND inside btn-row/.nav-buttons flex rows).
   ══════════════════════════════════════════════ */
.brand-tagline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
  margin-top: 28px;
  margin-bottom: 4px;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 16px;
  color: #555;
  letter-spacing: 0.2px;
}
.brand-tagline__logo {
  height: 35px;
  width: auto;
  flex-shrink: 0;
}

@media (max-width: 500px) {
  .site-header__inner { padding: 10px 16px; gap: 12px; }
  .site-header__logo-img { height: 50px; }
  .site-header__title { font-size: 0.85rem; }
  .brand-tagline__logo { height: 25px; }
  .card { padding: 20px 16px; }
  .design-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .preview-wrapper { grid-template-columns: 1fr; }
  .tier-cards { grid-template-columns: 1fr; gap: 8px; }
}
