/* ==========================================================================
 * Hypertronic Booking Portal v4
 * File: booking-v4.css
 *
 * Design goals:
 * - Calm, white, low-friction application experience.
 * - One task per screen.
 * - Persistent Hypertronic identity.
 * - No long vertical booking form.
 * ========================================================================== */

:root {
  --v4-text: #0f172a;
  --v4-muted: #64748b;
  --v4-line: #dbe3ef;
  --v4-soft: #f7f9fc;
  --v4-header: #edf2f8;
  --v4-blue: #2563eb;
  --v4-blue-dark: #1d4ed8;
  --v4-green: #15803d;
  --v4-green-soft: #f0fdf4;
  --v4-warning: #92400e;
  --v4-warning-soft: #fffbeb;
}

body {
  min-height: 100vh;
  background: #ffffff;
  color: var(--v4-text);
}

.wizard-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid #d5deea;
  background: rgba(237, 242, 248, 0.97);
  backdrop-filter: blur(14px);
}

.wizard-header .nav {
  min-height: 92px;
}

.account-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 11px 9px 16px;
  border: 1px solid #d5deea;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.account-copy span {
  display: block;
  color: var(--v4-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.account-copy strong {
  display: block;
  max-width: 220px;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--v4-text);
  font-size: 0.86rem;
}

.account-edit {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: #e2e8f0;
  color: #334155;
  cursor: pointer;
  font-weight: 850;
}

.wizard-shell {
  padding: 34px 20px 70px;
}

.wizard-container {
  width: min(860px, 100%);
  margin: 0 auto;
}

.wizard-progress {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  margin-bottom: 24px;
}

.progress-step {
  display: grid;
  justify-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 0.72rem;
  cursor: default;
}

.progress-step span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #ffffff;
  font-weight: 900;
}

.progress-step strong {
  font-weight: 850;
}

.progress-step.active,
.progress-step.completed {
  color: var(--v4-blue-dark);
}

.progress-step.active span {
  border-color: var(--v4-blue);
  background: var(--v4-blue);
  color: #ffffff;
}

.progress-step.completed span {
  border-color: #93c5fd;
  background: #dbeafe;
  color: var(--v4-blue-dark);
}

.progress-line {
  height: 1px;
  margin: 0 9px 22px;
  background: #cbd5e1;
}

.wizard-card {
  min-height: 610px;
  padding: 48px;
  border: 1px solid var(--v4-line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow:
    0 20px 55px rgba(15, 23, 42, 0.08);
}

.wizard-step {
  animation: wizard-enter 0.24s ease;
}

@keyframes wizard-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-copy {
  max-width: 650px;
  margin-bottom: 34px;
}

.step-kicker,
.dialog-kicker {
  color: var(--v4-blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.step-copy h1 {
  margin-top: 8px;
  color: var(--v4-text);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.step-copy p {
  margin-top: 14px;
  color: var(--v4-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.selection-stack {
  display: grid;
  gap: 16px;
}

.choice-field {
  display: grid;
  gap: 9px;
}

.choice-field > span {
  color: #334155;
  font-size: 0.86rem;
  font-weight: 850;
}

.choice-field select,
.choice-field input,
.choice-field textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 15px 16px;
  background: #ffffff;
  color: var(--v4-text);
  font: inherit;
  outline: none;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.choice-field select,
.choice-field input {
  min-height: 56px;
}

.choice-field select:focus,
.choice-field input:focus,
.choice-field textarea:focus {
  border-color: #60a5fa;
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.1);
}

.choice-field select:disabled {
  background: #f1f5f9;
  color: #94a3b8;
}

.choice-field small {
  color: var(--v4-muted);
  font-size: 0.78rem;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.scope-field {
  margin-top: 18px;
}

.compact-facility,
.compact-requirements,
.review-summary,
.assignment-summary-v4 {
  margin-top: 22px;
}

.compact-facility {
  padding: 17px;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  background: #eff6ff;
}

.compact-facility strong {
  display: block;
  color: #1e3a8a;
}

.compact-facility span {
  display: block;
  margin-top: 5px;
  color: #475569;
  font-size: 0.86rem;
}

.compact-requirements {
  padding: 17px;
  border: 1px solid var(--v4-line);
  border-radius: 16px;
  background: var(--v4-soft);
}

.compact-title {
  color: #334155;
  font-weight: 900;
}

.compact-requirements-list {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.compact-requirements-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: #475569;
  font-size: 0.84rem;
}

.compact-requirements-list li::before {
  content: "✓";
  color: var(--v4-green);
  font-weight: 900;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 34px;
}

.wizard-actions-end {
  justify-content: flex-end;
}

.wizard-next,
.secondary-button {
  min-width: 160px;
  min-height: 52px;
  border-radius: 999px;
}

.secondary-button {
  border: 1px solid #cbd5e1;
  padding: 0 22px;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  font-weight: 900;
}

.review-summary {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--v4-line);
  border-radius: 18px;
  background: var(--v4-soft);
}

.review-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.review-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.review-row span {
  color: var(--v4-muted);
}

.review-row strong {
  text-align: right;
  color: var(--v4-text);
}

.price-summary {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
}

.price-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 22px;
  background: var(--v4-blue);
  color: #ffffff;
}

.price-heading span {
  display: block;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.price-heading strong {
  display: block;
  margin-top: 4px;
  font-size: 1.8rem;
}

.hourly-rate {
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

.price-lines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--v4-line);
}

.price-lines > div {
  padding: 17px;
  background: #ffffff;
}

.price-lines span,
.price-lines strong {
  display: block;
}

.price-lines span {
  color: var(--v4-muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.price-lines strong {
  margin-top: 5px;
}

.price-policy {
  padding: 16px 20px;
  background: #eff6ff;
  color: #475569;
  font-size: 0.84rem;
}

.payment-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 15px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--v4-line);
  border-radius: 18px;
  background: #ffffff;
}

.payment-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: #e0e7ff;
  color: #3730a3;
  font-size: 1.3rem;
}

.payment-card span,
.payment-card strong {
  display: block;
}

.payment-card span {
  color: var(--v4-muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.payment-card strong {
  margin-top: 2px;
}

.payment-card p {
  margin-top: 5px;
  color: var(--v4-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.preview-badge {
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--v4-warning-soft);
  color: var(--v4-warning);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.terms-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 16px;
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.5;
}

.terms-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--v4-blue);
}

.support-note {
  margin-top: 18px;
  text-align: center;
  color: var(--v4-muted);
  font-size: 0.8rem;
}

.support-note a {
  color: var(--v4-blue-dark);
  font-weight: 800;
}

.assignment-summary-v4 {
  display: grid;
  gap: 14px;
}

.identity-card,
.booking-reference-card {
  padding: 20px;
  border: 1px solid var(--v4-line);
  border-radius: 18px;
  background: #ffffff;
}

.identity-card {
  border-color: #86efac;
  background: var(--v4-green-soft);
}

.identity-card span,
.booking-reference-card span {
  display: block;
  color: var(--v4-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.identity-card strong,
.booking-reference-card strong {
  display: block;
  margin-top: 5px;
  color: var(--v4-text);
  font-size: 1.15rem;
}

.identity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-top: 16px;
}

.identity-item {
  padding: 13px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.76);
}

.hold-countdown {
  margin-top: 14px;
  color: var(--v4-warning);
  font-size: 0.84rem;
  font-weight: 900;
}

.communication-policy {
  margin: 18px 0;
  padding: 17px;
  border: 1px solid #c7d2fe;
  border-radius: 16px;
  background: #eef2ff;
}

.communication-policy strong {
  color: #3730a3;
}

.communication-policy p {
  margin-top: 6px;
  color: #475569;
  font-size: 0.86rem;
}

.full-button {
  width: 100%;
  margin-top: 16px;
}

.profile-dialog {
  width: min(500px, calc(100% - 32px));
  border: 0;
  border-radius: 24px;
  padding: 0;
  box-shadow:
    0 24px 80px rgba(15, 23, 42, 0.24);
}

.profile-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.profile-dialog form {
  display: grid;
  gap: 15px;
  padding: 30px;
}

.profile-dialog h2 {
  margin-top: -5px;
}

.profile-dialog p {
  color: var(--v4-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.profile-dialog label {
  display: grid;
  gap: 7px;
}

.profile-dialog label span {
  color: #334155;
  font-size: 0.82rem;
  font-weight: 850;
}

.profile-dialog input {
  min-height: 50px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0 14px;
  font: inherit;
}

.dialog-error {
  padding: 11px;
  border-radius: 12px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.82rem;
  font-weight: 800;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

@media (max-width: 720px) {
  .wizard-header .nav {
    min-height: 80px;
  }

  .brand-copy span {
    display: none;
  }

  .account-copy {
    display: none;
  }

  .wizard-shell {
    padding: 22px 12px 50px;
  }

  .wizard-card {
    min-height: auto;
    padding: 28px 20px;
    border-radius: 22px;
  }

  .progress-step strong {
    display: none;
  }

  .progress-line {
    margin-bottom: 0;
  }

  .schedule-grid,
  .price-lines,
  .identity-grid {
    grid-template-columns: 1fr;
  }

  .wizard-actions {
    flex-direction: column-reverse;
  }

  .wizard-actions button {
    width: 100%;
  }

  .price-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .payment-card {
    grid-template-columns: auto 1fr;
  }

  .preview-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }
}


/* ==========================================================================
 * Hypertronic Booking Portal v5 — Authenticated Additions
 * ========================================================================== */

.site-footer {
  margin-top: 60px;
  border-top: 1px solid #dbe3ef;
  background: #f7f9fc;
}

.footer-grid {
  min-height: 180px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

.footer-brand strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.footer-brand span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 0.86rem;
}

.footer-copy {
  text-align: right;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.65;
}

.booking-success-dialog {
  width: min(500px, calc(100% - 32px));
  border: 0;
  border-radius: 28px;
  padding: 0;
  box-shadow:
    0 28px 90px rgba(15, 23, 42, 0.26);
}

.booking-success-dialog::backdrop {
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(5px);
}

.success-dialog-content {
  display: grid;
  justify-items: center;
  padding: 38px 30px;
  text-align: center;
}

.success-dialog-content img {
  width: 78px;
  height: 78px;
}

.success-dialog-content .dialog-kicker {
  margin-top: 16px;
}

.success-dialog-content h2 {
  margin: 7px 0 0;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.success-dialog-content p {
  max-width: 360px;
  margin: 12px 0 0;
  color: #64748b;
  line-height: 1.55;
}

.success-dialog-content > strong {
  margin-top: 18px;
  color: #1d4ed8;
}

.success-dialog-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

@media (max-width: 680px) {
  .footer-grid {
    display: block;
    padding: 30px 0;
  }

  .footer-copy {
    margin-top: 20px;
    text-align: left;
  }

  .success-dialog-actions {
    grid-template-columns: 1fr;
  }
}
