:root{
  --bg: #f7f7f8;
  --card: #e6e6e8;
  --text: #0f0f10;
  --muted: #6b6b70;
  --border: #e6e6e8;
  --shadow: 0 18px 50px rgba(0,0,0,0.08);
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.06);
  --radius: 18px;
  --radius-lg: 24px;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ===============================
   Centered Logo Header
   =============================== */
#kiosk-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  pointer-events: none;
}

.kiosk-logo {
  height: 250px;
  width: auto;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.08));
}

/* ===============================
   Consistent Back Button (Fixed)
   =============================== */
.kiosk-back {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 1300;

  background: #f2f2f2;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;

  box-shadow: var(--shadow-soft);
}


.kiosk-back:active {
  transform: scale(0.98);
}

/* ===============================
   Screens
   =============================== */
.screen {
  display: none;
  height: 100%;
  width: 100%;
}

.screen.active {
  display: flex;
}

/* ===============================
   Idle Screen Layout
   =============================== */

#idle-screen {
  background: #fff;
  align-items: center;
  justify-content: center;
}

.idle-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.idle-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.idle-slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 1; /* no fade needed */
}

.idle-slideshow video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay exists but should NOT block taps */
.idle-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.start-btn {
  display: none !important;
}


/* ===============================
   Client Type Screen
   =============================== */
#client-type-screen {
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.fullwidth-wrap {
  width: min(980px, 92vw);
  min-height: 70vh;
  padding: 2.5rem 2.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  justify-content: center;
}

.fullwidth-header.centered {
  text-align: center;
  margin-top: 20px;
}

.fullwidth-header h1 {
  margin: 0 0 0.75rem;
  font-size: 2.6rem;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.45;
}

.choice-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.choice-card {
  width: 100%;
  min-height: 190px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  padding: 2.8rem 3rem;

  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;

  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
  box-shadow: var(--shadow-soft);
}

.choice-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #d9d9de;
}

.choice-card:active {
  transform: scale(0.99);
}

.choice-title {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.choice-sub {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ===============================
   Cards / Forms
   =============================== */
#form-screen,
#parq-screen,
#staff-review-screen {
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.kiosk-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.6rem 3rem;
  max-width: 560px;
  width: min(560px, 92vw);
  box-sizing: border-box;
}

.kiosk-card-wide {
  max-width: 920px;
  width: min(920px, 92vw);
}

.kiosk-card h1 {
  margin: 0 0 0.75rem;
  font-size: 2.3rem;
  letter-spacing: -0.02em;
}

#checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

#checkout-form label,
.form-grid label {
  display: flex;
  flex-direction: column;
  font-size: .95rem;
  color: var(--text);
  gap: .4rem;
}

#checkout-form input,
.form-grid input {
  padding: .9rem 1rem;
  font-size: 1.05rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  outline: none;
  transition: border .15s ease, box-shadow .15s ease;
  background: #fff;
}

#checkout-form input:focus,
.form-grid input:focus {
  border-color: #cfcfd5;
  box-shadow: 0 0 0 4px rgba(0,0,0,0.06);
}

/* ===============================
   Buttons (ChatGPT-like)
   =============================== */
.primary-button,
.secondary-button {
  border-radius: 999px;
  padding: .95rem 1.4rem;
  font-size: 1.05rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .1s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}

.primary-button {
  background: #754e9d;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.primary-button:hover:enabled {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.secondary-button {
  background: #e2e2e6;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.secondary-button:hover:enabled {
  border-color: #d6d6db;
  box-shadow: var(--shadow);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Payment button row */
.button-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}

/* ===============================
   Payment Breakdown
   =============================== */
.payment-breakdown {
  margin-top: 0.8rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #fbfbfb;
  border: 1px solid var(--border);
  font-size: 0.98rem;
  color: var(--text);
}

.payment-breakdown .line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.25rem 0;
}

.payment-breakdown .divider {
  margin: 0.65rem 0;
  border-top: 1px solid var(--border);
}

.payment-breakdown .total {
  font-weight: 800;
}

/* ===============================
   Status / Welcome
   =============================== */
.status-message {
  margin-top: 1rem;
  min-height: 1.25rem;
  font-size: 1rem;
  color: var(--muted);
}

.welcome-message {
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fbfbfb;
  font-size: 1.02rem;
  color: var(--text);
}

/* ===============================
   PAR-Q
   =============================== */
.parq-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.parq-progress {
  color: var(--muted);
  font-size: 1rem;
}

.parq-step.hidden {
  display: none;
}

.parq-actions {
  margin: 1.2rem 0;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.parq-question {
  font-size: 1.3rem;
  line-height: 1.35;
  margin: 1rem 0 1.25rem;
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fbfbfb;
}

.yesno-row {
  display: flex;
  gap: 1rem;
}

.choice-pill {
  flex: 1;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}

.choice-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #d9d9de;
}

.choice-pill:active {
  transform: scale(0.98);
}

.parq-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
}

/* Forms grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.checkline {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--text);
}

#scroll-terms-bottom {
  align-self: center;
  margin-bottom: 0.75rem;
}


/* ===============================
   Processing Overlay
   =============================== */
.processing-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2000;
}

.processing-overlay.hidden {
  display: none;
}

.processing-box {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #ddd;
  border-top-color: #111;
  animation: spin .8s linear infinite;
}

.processing-text {
  font-size: 1.05rem;
  color: var(--text);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===============================
   Modal
   =============================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2500;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  max-width: 760px;
  width: min(760px, 92vw);
  max-height: 82vh;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.modal-scroll {
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  margin: 1rem 0;
  flex: 1;
  font-size: 0.98rem;
  line-height: 1.55;
  background: #fbfbfb;
}

/* ===============================
   Responsive
   =============================== */
@media (max-width: 860px) {
  .fullwidth-wrap {
    padding: 2rem 1.25rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .button-row {
    flex-direction: column;
  }
}

/* Put idle screen above everything (including the Back button) */
#idle-screen.active {
  position: relative;
  z-index: 5000;
}

/* Keep the back button below idle when idle is active */
.kiosk-back {
  z-index: 1300; /* whatever you currently use is fine */
}

/* ✅ Simple completion screen */
.completion-simple{
  text-align: center;
  padding: 3rem 3rem;
}

.completion-icon{
  width: 82px;
  height: 82px;
  border-radius: 22px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-weight: 900;
  border: 1px solid var(--border);
  background: #fbfbfb;
  box-shadow: var(--shadow-soft);
}

.completion-heading{
  margin: 0 0 0.75rem;
  font-size: 3rem;
  letter-spacing: -0.02em;
}

.completion-greeting{
  margin: 0 0 1.1rem;
  font-size: 1.6rem;
  font-weight: 800;
}

.completion-text{
  margin: 0 0 2rem;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text);
}

/* ===== Completion screen layout fixes ===== */

/* Adjust this to match your logo/header height */
:root { --logo-offset: 260px; }

/* Make completion screen centered vertically, but not under the logo */
#completion-screen.active {
  display: flex;
  align-items: center;
  justify-content: center;

  /* Full viewport height minus logo area */
  min-height: calc(100vh - var(--logo-offset));
  padding-top: var(--logo-offset);
  box-sizing: border-box;
}

/* Make the card properly wide */
#completion-screen .completion-simple {
  width: min(1100px, calc(100vw - 80px)); /* full-ish width with side margins */
  margin: 0 auto;
}

:root { --logo-offset: 260px; } /* tweak if needed */

#completion-screen.active{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: calc(100vh - var(--logo-offset));
  padding-top: var(--logo-offset);
  box-sizing: border-box;
}

#completion-screen .completion-simple{
  width: min(1100px, calc(100vw - 80px));
  margin: 0 auto;
}


