/* DecorIn free web tool — shared widget styles.
   Light, conversion-focused surface with the brand gold accent. */
:root {
  --dc-ink: #14110c;
  --dc-muted: #6b6357;
  --dc-line: #e7e0d4;
  --dc-bg: #ffffff;
  --dc-soft: #faf7f1;
  --dc-gold: #b3833f;
  --dc-gold-soft: #f3e7d3;
  --dc-radius: 18px;
  --dc-shadow: 0 18px 50px rgba(20, 17, 12, 0.12);
}

/* The widget adopts the host page's palette when the page defines one.
   The homepage sets --ink/--bronze/--panel/--line on .wrap, so the tool picks
   up the editorial bronze look automatically; the SEO landing pages define
   none of them and fall back to the values above, unchanged. */
.dc-tool {
  --dc-ink: var(--ink, #14110c);
  --dc-muted: var(--muted, #6b6357);
  --dc-faint: var(--faint, #867c6e);
  --dc-line: var(--line, #e7e0d4);
  --dc-bg: var(--panel, #ffffff);
  --dc-soft: var(--soft, #faf7f1);
  --dc-gold: var(--bronze, #b3833f);
  --dc-serif: 'Didot', 'Bodoni 72', Georgia, 'Times New Roman', serif;
}

.dc-tool * { box-sizing: border-box; }
.dc-tool {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--dc-ink);
  max-width: 960px;
  margin: 0 auto;
  background: var(--dc-bg);
  border: 1px solid var(--dc-line);
  border-radius: var(--dc-radius);
  box-shadow: var(--dc-shadow);
  overflow: hidden;
}
.dc-tool .dc-body { padding: clamp(20px, 3vw, 32px); }

/* Step rail — one segmented bar, the way the approved design draws it */
.dc-steps {
  display: flex; margin-bottom: 24px; overflow: hidden;
  border: 1px solid var(--dc-line); border-radius: 2px;
}
.dc-step {
  flex: 1; text-align: center; padding: 10px 4px;
  font-size: 12.5px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--dc-faint);
}
.dc-step + .dc-step { border-left: 1px solid var(--dc-line); }
.dc-step.on { color: var(--dc-ink); background: rgba(200, 154, 87, .14); font-weight: 600; }

/* Dropzone */
.dc-drop {
  border: 2px dashed var(--dc-line);
  border-radius: var(--dc-radius);
  background: var(--dc-soft);
  padding: 40px 20px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dc-drop:hover, .dc-drop.drag { border-color: var(--dc-gold); background: var(--dc-gold-soft); }
.dc-drop h4 { margin: 10px 0 4px; font-size: 17px; }
.dc-drop p { margin: 0; color: var(--dc-muted); font-size: 13.5px; }
.dc-drop .dc-cam { font-size: 34px; line-height: 1; }
.dc-hidden { display: none !important; }

/* Style chips */
.dc-section-label { font-size: 13px; font-weight: 700; margin: 20px 0 10px; letter-spacing: .01em; }
.dc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-chip {
  font: inherit; font-size: 14.5px; font-weight: 500;
  padding: 9px 14px; border-radius: 2px; cursor: pointer;
  background: var(--dc-bg); color: var(--dc-ink);
  border: 1px solid var(--dc-line);
  transition: all .12s;
}
.dc-chip:hover { border-color: var(--dc-gold); }
.dc-chip.on { background: var(--dc-ink); color: var(--dc-bg); border-color: var(--dc-ink); }

/* Style swatches — a palette chip per style, with a tick when selected. */
.dc-swatches {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.dc-sw {
  font: inherit; padding: 0; text-align: left; cursor: pointer; overflow: hidden;
  background: var(--dc-bg); border: 1px solid var(--dc-line); border-radius: 3px;
  transition: transform .14s, border-color .14s, box-shadow .14s;
}
.dc-sw:hover {
  transform: translateY(-3px); border-color: var(--dc-gold);
  box-shadow: 0 16px 30px -18px rgba(36, 28, 20, .5);
}
.dc-sw-fill { display: block; height: 50px; }
.dc-sw-cap { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; }
.dc-sw-cap > span:first-child { font-size: 14.5px; font-weight: 500; color: var(--dc-ink); }
.dc-sw-tick {
  width: 15px; height: 15px; border-radius: 999px;
  border: 1px solid var(--dc-line); flex: 0 0 auto; position: relative;
}
.dc-sw.on { border-color: var(--dc-gold); box-shadow: 0 0 0 1px var(--dc-gold); }
.dc-sw.on .dc-sw-tick { background: var(--dc-gold); border-color: var(--dc-gold); }
.dc-sw.on .dc-sw-tick::after {
  content: "✓"; position: absolute; inset: 0;
  color: #fff; font-size: 11px; line-height: 15px; text-align: center;
}

/* Room picker — same chip language as the styles, so the two rows read as one
   control surface rather than two unrelated widgets. */
.dc-rooms { margin-bottom: 2px; }

/* Sample rooms — for visitors with no photo to hand. Picking one is a real
   upload, so these are sized as photo choices, not as decorative thumbnails. */
.dc-samples {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}
.dc-sample {
  font: inherit; padding: 0; cursor: pointer; overflow: hidden;
  background: #fff; border: 1px solid var(--dc-line); border-radius: 12px;
  display: flex; flex-direction: column; text-align: left;
  transition: border-color .12s, transform .05s;
}
.dc-sample:hover { border-color: var(--dc-gold); }
.dc-sample:active { transform: translateY(1px); }
.dc-sample img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dc-sample span {
  padding: 8px 10px; font-size: 12.5px; font-weight: 600; color: var(--dc-ink);
}

/* Free-text instruction */
.dc-section-label small { font-weight: 500; color: var(--dc-muted); text-transform: none; }
.dc-note {
  width: 100%; font: inherit; font-size: 15px;
  padding: 13px 15px; border: 1px solid var(--dc-line); border-radius: 12px;
  background: #fff; color: var(--dc-ink); outline: none;
}
.dc-note:focus { border-color: var(--dc-gold); }
.dc-note-ex {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px;
  font-size: 12.5px; color: var(--dc-muted);
}
.dc-note-chip {
  font: inherit; font-size: 12.5px; cursor: pointer;
  padding: 5px 10px; border-radius: 999px;
  background: var(--dc-soft); color: var(--dc-muted);
  border: 1px solid var(--dc-line); transition: all .12s;
}
.dc-note-chip:hover { border-color: var(--dc-gold); color: var(--dc-ink); }

/* Primary button */
.dc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 20px;
  font: inherit; font-size: 16px; font-weight: 700; letter-spacing: .01em;
  padding: 15px 20px; border: none; border-radius: 14px; cursor: pointer;
  color: #fff; background: var(--dc-gold);
  transition: filter .12s, transform .05s;
}
.dc-btn:hover { filter: brightness(1.05); }
.dc-btn:active { transform: translateY(1px); }
.dc-btn:disabled { opacity: .55; cursor: not-allowed; }
.dc-btn.dc-ghost { background: transparent; color: var(--dc-gold); border: 1.5px solid var(--dc-gold); }

/* Preview thumb */
.dc-thumb-wrap { position: relative; margin-top: 6px; }
.dc-thumb { width: 100%; border-radius: 14px; display: block; max-height: 340px; object-fit: cover; }
.dc-x {
  position: absolute; top: 10px; right: 10px; width: 30px; height: 30px;
  border-radius: 999px; border: none; cursor: pointer;
  background: rgba(20,17,12,.65); color: #fff; font-size: 16px; line-height: 30px;
}

/* Loading */
.dc-load { text-align: center; padding: 40px 20px; }
.dc-spin {
  width: 52px; height: 52px; margin: 0 auto 20px;
  border: 2px solid rgba(154, 110, 44, .2); border-top-color: var(--dc-gold);
  border-radius: 999px; animation: dc-spin 1s linear infinite;
}
@keyframes dc-spin { to { transform: rotate(360deg); } }
.dc-load p { color: var(--dc-muted); font-size: 15.5px; margin: 4px 0 0; }
.dc-load strong {
  display: block; font-family: var(--dc-serif); font-size: 23px;
  margin-bottom: 6px; color: var(--dc-ink);
}

/* Before/after reveal */
.dc-compare {
  position: relative; width: 100%; border-radius: 14px; overflow: hidden;
  user-select: none; touch-action: none; background: #000;
}
.dc-compare img { display: block; width: 100%; pointer-events: none; }
.dc-compare .dc-after-wrap {
  position: absolute; inset: 0; overflow: hidden; width: 50%;
  border-right: 2px solid #fff;
}
.dc-compare .dc-after-wrap img { position: absolute; top: 0; left: 0; height: 100%; width: auto; max-width: none; }
.dc-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 40px;
  transform: translateX(-50%); cursor: ew-resize; z-index: 3;
  display: flex; align-items: center; justify-content: center;
}
.dc-handle span {
  width: 34px; height: 34px; border-radius: 999px; background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.35); color: var(--dc-ink);
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700;
}
.dc-tag {
  position: absolute; bottom: 10px; z-index: 2;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: rgba(20,17,12,.6); padding: 4px 9px; border-radius: 6px;
}
.dc-tag.before { left: 10px; }
.dc-tag.after { right: 10px; }
.dc-watermark {
  position: absolute; top: 10px; right: 10px; z-index: 4;
  font-size: 12px; font-weight: 700; color: #fff; opacity: .85;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* Result CTA */
.dc-cta {
  margin-top: 16px; padding: 16px; border-radius: 14px; text-align: center;
  background: var(--dc-soft); border: 1px solid var(--dc-line);
}
.dc-cta p { margin: 0 0 12px; font-size: 14.5px; color: var(--dc-muted); }
.dc-cta .dc-row { display: flex; gap: 10px; flex-wrap: wrap; }
.dc-cta .dc-row .dc-btn { margin-top: 0; }

/* Error */
.dc-err {
  margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px;
  background: #fdecec; color: #a13333; border: 1px solid #f4c9c9;
}

/* HD download + email gate */
.dc-dl { margin-top: 4px; }
.dc-dl .dc-btn { margin-top: 0; }
.dc-email-form { margin-top: 12px; text-align: left; }
.dc-email-input {
  width: 100%; font: inherit; font-size: 15px;
  padding: 13px 15px; border: 1px solid var(--dc-line); border-radius: 12px;
  background: #fff; color: var(--dc-ink); outline: none;
}
.dc-email-input:focus { border-color: var(--dc-gold); }
.dc-email-form .dc-btn { margin-top: 10px; }
.dc-email-note { margin: 10px 0 0; font-size: 12.5px; color: var(--dc-muted); text-align: center; }
.dc-email-msg { margin-top: 8px; font-size: 13px; color: #a13333; text-align: center; }

/* Exit-intent survey modal */
.dc-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(20, 17, 12, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: dc-fade .15s ease-out;
}
@keyframes dc-fade { from { opacity: 0; } to { opacity: 1; } }
.dc-modal-card {
  position: relative; width: 100%; max-width: 420px;
  background: var(--dc-bg); border: 1px solid var(--dc-line);
  border-radius: var(--dc-radius); box-shadow: var(--dc-shadow);
  padding: 26px 24px 24px; text-align: center;
  font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--dc-ink);
}
.dc-modal-x {
  position: absolute; top: 12px; right: 12px; width: 30px; height: 30px;
  border: none; border-radius: 999px; cursor: pointer;
  background: var(--dc-soft); color: var(--dc-muted); font-size: 15px; line-height: 30px;
}
.dc-modal-x:hover { background: var(--dc-gold-soft); color: var(--dc-ink); }
.dc-modal-title { margin: 0 0 6px; font-family: 'Fraunces', Georgia, serif; font-size: 22px; font-weight: 600; }
.dc-modal-sub { margin: 0 0 18px; font-size: 14px; color: var(--dc-muted); }
.dc-modal-opts { display: flex; flex-direction: column; gap: 8px; }
.dc-modal-opt {
  font: inherit; font-size: 14.5px; font-weight: 500; text-align: left;
  padding: 13px 16px; border: 1px solid var(--dc-line); border-radius: 12px;
  background: #fff; color: var(--dc-ink); cursor: pointer; transition: all .12s;
}
.dc-modal-opt:hover { border-color: var(--dc-gold); background: var(--dc-gold-soft); }

/* "Not trying it?" one-tap nudge under the upload box */
.dc-nudge {
  margin: 12px 0 4px; padding: 12px 14px; border: 1px dashed var(--dc-line);
  border-radius: 12px; background: var(--dc-soft); animation: dc-fade .2s ease-out;
}
.dc-nudge-q { margin: 0 0 8px; font-size: 13.5px; color: var(--dc-muted); }
.dc-nudge-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-nudge-opt {
  font: inherit; font-size: 13px; padding: 7px 12px; border: 1px solid var(--dc-line);
  border-radius: 999px; background: #fff; color: var(--dc-ink); cursor: pointer;
}
.dc-nudge-opt:hover { border-color: var(--dc-gold); background: var(--dc-gold-soft); }

@media (max-width: 560px) {
  .dc-tool .dc-body { padding: 16px; }
  .dc-btn { font-size: 15px; }
}

/* Free allowance spent — the "come back tomorrow / get the app" screen */
.dc-spent {
  margin-top: 6px; padding: 30px 22px 26px; border-radius: var(--dc-radius);
  text-align: center; background: var(--dc-soft); border: 1px solid var(--dc-line);
}
.dc-spent-ic {
  width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--dc-gold); background: var(--dc-gold-soft);
}
.dc-spent h4 {
  margin: 0 0 8px; font-size: 21px; line-height: 1.25; color: var(--dc-ink); font-weight: 700;
}
.dc-spent p {
  margin: 0 auto 18px; max-width: 400px; font-size: 14.5px; line-height: 1.6; color: var(--dc-muted);
}
.dc-spent .dc-btn { margin-top: 0; display: inline-block; }
.dc-spent-note {
  margin: 14px auto 0 !important; font-size: 12.5px !important;
  letter-spacing: .01em; color: var(--dc-muted); opacity: .8;
}

/* Same message, shown above a result the visitor still has on screen */
.dc-spent-banner {
  margin: 0 0 14px; padding: 12px 14px; border-radius: 12px;
  font-size: 14px; line-height: 1.55; text-align: center;
  color: var(--dc-ink); background: var(--dc-gold-soft); border: 1px solid #e6d3b4;
}
.dc-spent-banner strong { color: var(--dc-ink); }
