/* OmniBook Skin Studio - kiosk styles.
   Ported 1:1 from the design reference (NovaBook Kiosk v2 - standalone-src /
   v2.dc.html): Electric Blue #0B4FD1 accent, Helvetica Neue/Helvetica/Arial
   font stack, pill buttons, nbFadeIn screen-transition animation. */

:root {
  --brand-blue: #0B4FD1;
  --ink: #000000;
  --ink-65: rgba(0, 0, 0, 0.65);
  --ink-60: rgba(0, 0, 0, 0.6);
  --ink-55: rgba(0, 0, 0, 0.55);
  --ink-50: rgba(0, 0, 0, 0.5);
  --ink-45: rgba(0, 0, 0, 0.45);
  --ink-40: rgba(0, 0, 0, 0.4);
  --ink-20: rgba(0, 0, 0, 0.2);
  --ink-12: rgba(0, 0, 0, 0.12);
  --ink-10: rgba(0, 0, 0, 0.1);
  --ink-08: rgba(0, 0, 0, 0.08);
  --error: #c0392b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font-family: inherit; }

@keyframes nbFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

input::placeholder { color: rgba(0, 0, 0, 0.35); }

.kiosk {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Header */
.kiosk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 44px;
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-title {
  font-weight: 700;
  font-size: 18px;
}

.brand-subtitle {
  font-weight: 400;
  font-size: 11px;
  color: var(--ink-50);
  letter-spacing: 0.02em;
}

.btn-small {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 400;
}

/* Progress bar */
.progress-bar {
  display: flex;
  gap: 8px;
  padding: 0 44px 8px;
  position: relative;
  z-index: 2;
}

.progress-bar.hidden { display: none; }

.progress-seg {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--ink-10);
  transition: background 0.2s ease;
}

.progress-seg.done { background: var(--brand-blue); }

/* Screens */
.screens {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 20px 44px 56px;
}

.screen {
  display: none;
  flex-direction: column;
  flex: 1;
}

.screen.active {
  display: flex;
  animation: nbFadeIn 0.35s ease;
}

.screen[data-screen="store"].active,
.screen[data-screen="confirm"].active {
  justify-content: center;
}

.screen-inner { max-width: 720px; }
.screen-inner.narrow { max-width: 520px; margin: auto 0; }
.screen-inner.wide { max-width: 1100px; }

.store-inner { position: relative; z-index: 1; max-width: 520px; }

.store-decoration {
  position: absolute;
  top: -60px;
  right: -80px;
  width: 573px;
  height: 1179px;
  background: var(--brand-blue);
  transform: skewX(-20deg);
  z-index: 0;
}

h1 {
  font-weight: 700;
  font-size: 32px;
  line-height: 0.95;
  margin: 0 0 8px;
}

.screen[data-screen="store"] h1 {
  font-size: 40px;
  line-height: 0.92;
  margin: 0 0 16px;
}

.subtitle {
  font-weight: 400;
  font-size: 15px;
  color: var(--ink-60);
  margin: 0 0 28px;
}

.screen[data-screen="store"] .subtitle {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-65);
  margin: 0 0 32px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-55);
  margin-bottom: 8px;
}

.select-input {
  width: 100%;
  padding: 16px 18px;
  font-size: 16px;
  border: 1px solid var(--ink-20);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  margin-bottom: 12px;
  appearance: none;
}

.store-list {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.store-option {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  font-size: 15px;
  border: 2px solid var(--ink-10);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
}

.store-option.selected { border-color: var(--brand-blue); }

.sku-option {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border: 2px solid var(--ink-10);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sku-option.selected { border-color: var(--brand-blue); }

.sku-option-name { font-size: 15px; font-weight: 700; }
.sku-option-family { font-size: 13px; color: var(--ink-50); }

.store-empty {
  font-size: 14px;
  color: var(--ink-40);
  padding: 10px 2px;
}

.hint {
  font-size: 12px;
  color: var(--ink-40);
  margin: 0 0 28px;
}

.text-input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  font-size: 15px;
  border: 1px solid var(--ink-20);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  margin-bottom: 16px;
  outline: none;
}

.text-input:focus { border-color: var(--brand-blue); }

.address-row {
  display: flex;
  gap: 12px;
}

.address-row .text-input { flex: 1; min-width: 0; }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 4px;
  cursor: pointer;
}

.consent-row input[type="checkbox"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand-blue);
  cursor: pointer;
}

.consent-row span {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-60);
}

.error-text {
  color: var(--error);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 16px;
}

/* Buttons */
.btn {
  border-radius: 24px;
  padding: 16px 32px;
  font-size: 16px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--brand-blue);
  color: #fff;
  font-weight: 700;
}

.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-secondary {
  background: none;
  color: var(--ink);
  font-weight: 400;
  border: 1px solid var(--ink-20);
}

.btn-block { width: 100%; }

.nav-row {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

/* Card grids (SKU + design pickers) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.design-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }

.pick-card {
  text-align: left;
  padding: 16px;
  border-radius: 10px;
  background: #fff;
  border: 2px solid var(--ink-10);
  cursor: pointer;
  font-family: inherit;
}

.design-grid .pick-card { padding: 12px; }

.pick-card.selected { border-color: var(--brand-blue); }

.pick-card-thumb {
  width: 100%;
  background: #f4f6fb;
  border: 1px solid var(--ink-08);
  border-radius: 6px;
  margin-bottom: 16px;
}

.design-grid .pick-card-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  margin-bottom: 0;
}

.design-grid .pick-card-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }

.zone-outline {
  position: absolute;
  border: 1.5px dashed rgba(0, 0, 0, 0.35);
  border-radius: 3px;
}

.pick-card-title {
  font-weight: 700;
  font-size: 17px;
  display: block;
  margin-bottom: 4px;
}

.design-grid .pick-card-title { font-size: 15px; margin: 12px 0 0; }

.pick-card-sub {
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-50);
}

/* Customize screen */
.customize-layout {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.controls-pane { flex: 1 1 320px; max-width: 420px; }
.preview-pane { flex: 1 1 360px; max-width: 560px; }

.initials-input {
  width: 100%;
  box-sizing: border-box;
  padding: 20px 18px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  border: 1px solid var(--ink-20);
  border-radius: 8px;
  color: var(--brand-blue);
  margin-bottom: 8px;
  text-transform: uppercase;
  outline: none;
}

.initials-input:focus { border-color: var(--brand-blue); }

.preview-box {
  width: 100%;
  position: relative;
  background: #fff;
  border: 1px solid var(--ink-10);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 32px var(--ink-08);
  container-type: inline-size;
}

.preview-layer { position: absolute; }
.preview-base { inset: 0; width: 100%; height: 100%; object-fit: cover; }

.preview-zone {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.preview-initials {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.caption {
  font-size: 12px;
  color: var(--ink-45);
  margin-top: 12px;
}

/* Confirmation */
.confirm-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
}

.confirm-check.error {
  background: var(--error);
  margin-bottom: 24px;
}

.reference-id {
  font-weight: 700;
  font-size: 24px;
  color: var(--brand-blue);
  letter-spacing: 0.04em;
  margin: 0 0 28px;
}

.summary-box {
  border: 1px solid var(--ink-12);
  border-radius: 10px;
  padding: 24px;
  background: #fafbfd;
}

.summary-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin: 0 0 16px;
}

.summary-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  font-size: 14px;
}

.summary-key { color: var(--ink-50); }
.summary-val { font-weight: 700; }

.submit-status {
  margin: 20px 0 0;
}

.submit-status.error { color: var(--error); font-weight: 600; }

#startOverBtn { margin-top: 28px; }

@media (max-width: 720px) {
  .kiosk-header { padding: 16px 20px; }
  .screens { padding: 16px 20px 40px; }
  h1 { font-size: 26px; }
  .screen[data-screen="store"] h1 { font-size: 30px; }
  .store-decoration { display: none; }
  .address-row { flex-direction: column; gap: 0; }
}
