/* ===== CSS Custom Properties ===== */
:root {
  --c-primary: #1a56db;
  --c-primary-dark: #1e40af;
  --c-primary-light: #dbeafe;
  --c-primary-bg: #eff6ff;
  --c-accent: #f59e0b;
  --c-accent-dark: #d97706;
  --c-accent-light: #fef3c7;
  --c-success: #059669;
  --c-success-light: #d1fae5;
  --c-danger: #dc2626;
  --c-danger-light: #fee2e2;
  --c-warning: #d97706;
  --c-warning-light: #fef3c7;
  --c-text: #111827;
  --c-text-secondary: #6b7280;
  --c-text-muted: #9ca3af;
  --c-border: #d1d5db;
  --c-border-light: #e5e7eb;
  --c-bg: #ffffff;
  --c-bg-secondary: #f9fafb;
  --c-bg-tertiary: #f3f4f6;
  --c-header-bg: #0f172a;
  --c-header-text: #f1f5f9;
  --c-footer-bg: #111827;
  --c-footer-text: #9ca3af;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-bg-secondary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--c-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-text);
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ===== Header / Navigation ===== */
.site-header {
  background: var(--c-header-bg);
  color: var(--c-header-text);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-header-text);
  text-decoration: none;
}
.navbar-brand:hover {
  text-decoration: none;
  opacity: 0.9;
}

.navbar-brand img,
.navbar-brand svg {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  color: var(--c-header-text);
  font-weight: 500;
  font-size: 0.875rem;
  transition: background 0.15s;
  text-decoration: none;
}
.nav-links a:hover {
  background: rgb(255 255 255 / 0.1);
  text-decoration: none;
}

.nav-links a.btn-nav {
  background: var(--c-primary);
  color: #fff;
  font-weight: 600;
}
.nav-links a.btn-nav:hover {
  background: var(--c-primary-dark);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--c-header-text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, #1e3a5f 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.btn-primary:hover {
  background: var(--c-primary-dark);
  border-color: var(--c-primary-dark);
}

.btn-accent {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}
.btn-accent:hover {
  background: var(--c-accent-dark);
  border-color: var(--c-accent-dark);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgb(255 255 255 / 0.5);
}
.btn-outline:hover {
  background: rgb(255 255 255 / 0.1);
  border-color: #fff;
}

.btn-outline-dark {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border);
}
.btn-outline-dark:hover {
  background: var(--c-bg-tertiary);
  border-color: var(--c-text-secondary);
}

.btn-danger {
  background: var(--c-danger);
  color: #fff;
  border-color: var(--c-danger);
}
.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
}

.btn-block {
  width: 100%;
}

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

/* ===== Sections ===== */
.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--c-text-secondary);
  font-size: 1.0625rem;
  max-width: 560px;
  margin: 0 auto;
}

.bg-white {
  background: var(--c-bg);
}

.bg-light {
  background: var(--c-bg-secondary);
}

/* ===== Cards ===== */
.card {
  background: var(--c-bg);
  border: 1px solid var(--c-border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-icon.blue {
  background: var(--c-primary-light);
  color: var(--c-primary);
}

.card-icon.green {
  background: var(--c-success-light);
  color: var(--c-success);
}

.card-icon.amber {
  background: var(--c-accent-light);
  color: var(--c-accent-dark);
}

.card-icon.red {
  background: var(--c-danger-light);
  color: var(--c-danger);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--c-text-secondary);
  font-size: 0.9375rem;
}

/* ===== Feature list ===== */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  font-size: 0.9375rem;
}

.feature-list .check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-success-light);
  color: var(--c-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  margin-top: 0.125rem;
}

/* ===== Booking Page ===== */
.booking-hero {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, #1e3a5f 100%);
  color: #fff;
  padding: 3rem 0 2rem;
  text-align: center;
}

.booking-hero h1 {
  color: #fff;
  font-size: 2rem;
}

.booking-hero p {
  color: rgb(255 255 255 / 0.8);
  max-width: 500px;
  margin: 0.5rem auto 0;
}

.booking-container {
  max-width: 720px;
  margin: -2rem auto 3rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.booking-card {
  background: var(--c-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  border: 1px solid var(--c-border-light);
}

.booking-card h2 {
  margin-bottom: 1.5rem;
  font-size: 1.375rem;
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--c-border-light);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-secondary);
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 0.375rem;
}

.form-group .hint {
  font-size: 0.75rem;
  color: var(--c-text-muted);
  font-weight: 400;
}

.form-control {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  background: var(--c-bg);
  color: var(--c-text);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-light);
}

.form-control.invalid {
  border-color: var(--c-danger);
  box-shadow: 0 0 0 3px var(--c-danger-light);
}

.form-error {
  font-size: 0.75rem;
  color: var(--c-danger);
  margin-top: 0.25rem;
  display: none;
}

.form-control.invalid + .form-error {
  display: block;
}

textarea.form-control {
  min-height: 80px;
  resize: vertical;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8.825a.5.5 0 0 1-.354-.146l-4-4a.5.5 0 0 1 .708-.708L6 7.617l3.646-3.646a.5.5 0 0 1 .708.708l-4 4A.5.5 0 0 1 6 8.825z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.form-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* ===== Alert / Flash Messages ===== */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
}

.alert-error {
  background: var(--c-danger-light);
  color: #991b1b;
  border-color: #fecaca;
}

.alert-success {
  background: var(--c-success-light);
  color: #064e3b;
  border-color: #a7f3d0;
}

.alert-info {
  background: var(--c-primary-light);
  color: #1e3a5f;
  border-color: #bfdbfe;
}

/* ===== Confirmation Page ===== */
.confirmation {
  text-align: center;
  padding: 3rem 0;
}

.confirmation-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--c-success-light);
  color: var(--c-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
}

.confirmation h1 {
  margin-bottom: 0.5rem;
}

.confirmation-details {
  max-width: 480px;
  margin: 2rem auto;
  text-align: left;
  background: var(--c-bg);
  border: 1px solid var(--c-border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.confirmation-details dt {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.confirmation-details dd {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--c-border-light);
}

.confirmation-details dd:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* ===== Error Page ===== */
.error-page {
  text-align: center;
  padding: 4rem 0;
}

.error-code {
  font-size: 6rem;
  font-weight: 800;
  color: var(--c-border);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* ===== Form Progress Steps ===== */
.booking-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}

.booking-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-text-muted);
  position: relative;
}

.booking-step.active {
  color: var(--c-primary);
  font-weight: 600;
}

.booking-step.complete {
  color: var(--c-success);
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--c-bg-tertiary);
  color: var(--c-text-muted);
}

.booking-step.active .step-number {
  background: var(--c-primary);
  color: #fff;
}

.booking-step.complete .step-number {
  background: var(--c-success);
  color: #fff;
}

.step-connector {
  width: 40px;
  height: 2px;
  background: var(--c-border-light);
  margin: 0 0.25rem;
  align-self: center;
}

.step-connector.done {
  background: var(--c-success);
}

/* ===== Bay Selector ===== */
.bay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.bay-option {
  position: relative;
}

.bay-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bay-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 0.5rem;
  border: 2px solid var(--c-border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.15s;
  background: var(--c-bg);
}

.bay-option label:hover {
  border-color: var(--c-primary);
  background: var(--c-primary-bg);
}

.bay-option input:checked + label {
  border-color: var(--c-primary);
  background: var(--c-primary-bg);
  color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-light);
}

.bay-option .bay-type {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--c-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bay-option input:checked + label .bay-type {
  color: var(--c-primary);
}

/* ===== Time Slot Picker ===== */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
}

.slot-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.slot-option label {
  display: block;
  text-align: center;
  padding: 0.5rem 0.25rem;
  border: 1px solid var(--c-border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.15s;
  background: var(--c-bg);
  font-variant-numeric: tabular-nums;
}

.slot-option label:hover {
  border-color: var(--c-primary);
  background: var(--c-primary-bg);
}

.slot-option input:checked + label {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}

.slot-option input:disabled + label {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
  background: var(--c-bg-tertiary);
}