/* ============================================
   wizard.css
   Shared chrome for every step of the booking wizard:
   topbar, step progress, panel layout, form primitives,
   buttons. Page-specific content (calendar, form fields)
   lives in that page's own CSS file.
============================================ */

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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #e9e6de;
  color: #1c2b3a;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ============================================
   Top Bar
============================================ */
.topbar {
  background-color: #10202e;
  padding: 16px 30px;
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-brand {
  color: #ffffff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
}

.topbar-brand .highlight { color: #f4652a; }

.topbar-user {
  color: #ffffff;
  font-size: 13px;
  opacity: 0.85;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-logout-btn {
  background: none;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.topbar-logout-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

/* ============================================
   Step Progress
============================================ */
.progress-wrap {
  max-width: 700px;
  margin: 40px auto 0;
  padding: 0 20px;
}

.progress-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
}

.progress-step::before {
  content: "";
  position: absolute;
  top: 17px;
  left: -50%;
  width: 100%;
  height: 2px;
  background-color: #c9c5ba;
  z-index: 0;
}

.progress-step:first-child::before { display: none; }

.progress-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background-color: #ffffff;
  border: 2px solid #c9c5ba;
  color: #8b8577;
  z-index: 1;
  transition: all 0.2s ease;
}

.progress-step.active .progress-circle {
  background-color: #f4652a;
  border-color: #f4652a;
  color: #ffffff;
}

.progress-step.complete .progress-circle {
  background-color: #0b6e7f;
  border-color: #0b6e7f;
  color: #ffffff;
}

.progress-step.complete::before,
.progress-step.active::before {
  background-color: #0b6e7f;
}

.progress-label {
  font-size: 12px;
  color: #4a5568;
  text-align: center;
}

.progress-step.active .progress-label {
  color: #1c2b3a;
  font-weight: 700;
}

/* ============================================
   Page Header
============================================ */
.page-header {
  max-width: 700px;
  margin: 28px auto 0;
  padding: 0 20px;
  text-align: center;
}

.page-header h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 6px;
}

.page-header p {
  font-size: 13.5px;
  color: #4a5568;
}

/* ============================================
   Wizard Layout
============================================ */
.wizard {
  max-width: 900px;
  margin: 30px auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: start;
}

.wizard.single-column {
  grid-template-columns: 1fr;
  max-width: 700px;
}

.panel {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.panel-body { padding: 26px 24px; }

/* ============================================
   Form primitives (shared across wizard steps)
============================================ */
.field-block { margin-bottom: 22px; }

.field-block label,
.field-block .field-heading {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #1c2b3a;
  margin-bottom: 10px;
}

.field-hint {
  font-size: 11.5px;
  color: #8b8577;
  margin-top: 6px;
}

.field-error-text {
  font-size: 11.5px;
  color: #d9271e;
  margin-top: 6px;
  min-height: 14px;
}

.summary-box {
  background-color: #e9e6de;
  border-radius: 12px;
  padding: 16px;
  font-size: 13px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.summary-row span:first-child { color: #4a5568; }
.summary-row span:last-child { font-weight: 700; }

.form-status {
  font-size: 12.5px;
  color: #d9271e;
  min-height: 16px;
  margin-bottom: 14px;
}

/* ============================================
   Action Buttons
============================================ */
.wizard-actions {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.wizard-actions.single-column {
  max-width: 700px;
}

.btn {
  padding: 12px 30px;
  border-radius: 25px 15px 25px 15px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-back {
  background-color: transparent;
  border: 1.5px solid #10202e;
  color: #10202e;
}

.btn-back:hover { background-color: #10202e; color: #ffffff; }

.btn-proceed {
  background-color: #f4652a;
  color: #ffffff;
}

.btn-proceed:hover { background-color: #d9541c; }

.btn-proceed:disabled {
  background-color: #e3bfae;
  cursor: not-allowed;
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 760px) {
  .wizard { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .topbar { padding: 14px 20px; }
  .topbar-inner { flex-wrap: wrap; row-gap: 8px; }
  .topbar-user { font-size: 12px; }
  .progress-label { display: none; }
  .wizard-actions { flex-direction: column-reverse; }
  .btn { width: 100%; text-align: center; }
}

/* ============================================
   Reduced motion / keyboard focus
============================================ */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #0b6e7f;
  outline-offset: 2px;
}
