:root {
  --navy:   #1a3a5c;
  --red:    #c0392b;
  --accent: #2980b9;
  --light:  #f0f4f8;
  --white:  #ffffff;
  --gray:   #6c757d;
  --border: #dce3ea;
  --success:#27ae60;
  --shadow: 0 2px 16px rgba(26,58,92,.1);
  --radius: 12px;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--light);
  color: #2d3748;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
header {
  background: var(--navy);
  color: var(--white);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: .6rem; font-size: 1.2rem; }
.logo-icon { font-size: 1.6rem; }
.logo-text strong { color: #6db8f7; }
.admin-link {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .85rem;
  border: 1px solid rgba(255,255,255,.2);
  padding: .3rem .8rem;
  border-radius: 20px;
  transition: all .2s;
}
.admin-link:hover { color: var(--white); border-color: rgba(255,255,255,.5); }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2c5f8a 100%);
  color: var(--white);
  text-align: center;
  padding: 3rem 1rem 4rem;
}
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: .6rem; }
.hero p  { font-size: 1.05rem; opacity: .85; }

/* ── Wizard container ── */
main { flex: 1; }
.wizard-container {
  max-width: 860px;
  margin: -2rem auto 3rem;
  padding: 0 1rem;
}

/* ── Progress bar ── */
.progress-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.progress-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .9rem .5rem;
  font-size: .8rem;
  color: var(--gray);
  border-right: 1px solid var(--border);
  transition: background .2s, color .2s;
  position: relative;
}
.progress-step:last-child { border-right: none; }
.progress-step span {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--gray);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
  margin-bottom: .3rem;
  transition: background .2s, color .2s;
}
.progress-step small { font-size: .72rem; text-align: center; }
.progress-step.active { background: #f0f7ff; color: var(--accent); }
.progress-step.active span { background: var(--accent); color: var(--white); }
.progress-step.done { background: #f0fff6; color: var(--success); }
.progress-step.done span { background: var(--success); color: var(--white); }

/* ── Wizard body ── */
.wizard-body {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  min-height: 320px;
}

/* ── Step heading ── */
.step-heading { margin-bottom: 1.5rem; }
.step-heading h2 { font-size: 1.3rem; color: var(--navy); }
.step-heading p  { color: var(--gray); margin-top: .3rem; font-size: .95rem; }

/* ── Space cards (step 1) ── */
.space-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.space-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  user-select: none;
}
.space-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(41,128,185,.15); transform: translateY(-2px); }
.space-card.selected { border-color: var(--accent); background: #f0f7ff; }
.space-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .8rem;
}
.space-icon svg { width: 26px; height: 26px; stroke: var(--navy); fill: none; stroke-width: 1.8; }
.space-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: .3rem; }
.space-card p  { font-size: .82rem; color: var(--gray); line-height: 1.4; }
.space-badge {
  display: inline-block;
  margin-top: .6rem;
  font-size: .75rem;
  background: #e8f4fd;
  color: var(--accent);
  padding: .2rem .6rem;
  border-radius: 20px;
}

/* ── Rental type options (step 2) ── */
.rental-options { display: flex; flex-direction: column; gap: .75rem; }
.rental-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.rental-option:hover  { border-color: var(--accent); background: #f9fbfd; }
.rental-option.selected { border-color: var(--accent); background: #f0f7ff; }
.rental-option input[type="radio"] { display: none; }
.radio-dot {
  width: 20px; height: 20px; min-width: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s;
}
.rental-option.selected .radio-dot { border-color: var(--accent); }
.rental-option.selected .radio-dot::after {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.rental-label { font-weight: 600; color: var(--navy); font-size: .95rem; }
.rental-desc  { font-size: .83rem; color: var(--gray); margin-top: .1rem; }

/* ── Date step (step 3) ── */
.date-section { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  padding: .65rem .9rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s;
  background: var(--white);
  color: #2d3748;
  width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { min-height: 80px; resize: vertical; }
.form-hint { font-size: .8rem; color: var(--gray); }

.availability-status {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
}
.availability-status.checking { background: #fff8e1; color: #b7791f; }
.availability-status.ok       { background: #f0fff4; color: var(--success); }
.availability-status.full     { background: #fff5f5; color: var(--red); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* ── Contact form (step 4) ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-grid .full-width { grid-column: 1 / -1; }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }

/* ── Summary (step 5) ── */
.summary-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.summary-header {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.4rem;
  font-weight: 700;
  font-size: 1rem;
}
.summary-rows { padding: .5rem 0; }
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: .65rem 1.4rem;
  font-size: .92rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.summary-row:last-child { border-bottom: none; }
.summary-row dt { color: var(--gray); font-weight: 500; flex-shrink: 0; }
.summary-row dd { color: var(--navy); font-weight: 600; text-align: right; }

/* ── Buttons ── */
.btn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  gap: 1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.6rem;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .1s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover:not(:disabled) { background: #1f6fa8; }
.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover:not(:disabled) { background: #219653; }
.btn-outline { background: transparent; color: var(--gray); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--gray); color: #2d3748; }

/* ── Success screen ── */
.success-screen { text-align: center; padding: 2rem 1rem; }
.success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #f0fff4;
  border: 3px solid var(--success);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 2rem;
}
.success-screen h2 { color: var(--navy); font-size: 1.5rem; margin-bottom: .5rem; }
.success-screen p  { color: var(--gray); margin-bottom: 1.5rem; }
.booking-id-box {
  display: inline-block;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .6rem 1.2rem;
  font-family: monospace;
  font-size: .9rem;
  letter-spacing: .05em;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

/* ── Loading / Spinner ── */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 1rem;
  color: var(--gray);
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: #2d3748;
  color: var(--white);
  padding: .8rem 1.6rem;
  border-radius: 8px;
  font-size: .9rem;
  z-index: 999;
  transition: transform .3s ease;
  max-width: 90vw;
  text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--red); }

/* ── Footer ── */
footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--gray);
  font-size: .85rem;
  border-top: 1px solid var(--border);
}
footer a { color: var(--accent); text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .wizard-body { padding: 1.2rem; }
  .progress-step small { display: none; }
  .btn-row { flex-direction: column-reverse; }
  .btn { width: 100%; justify-content: center; }
}
