/* ==========================================================================
 * Hypertronic Booking MVP
 * File: booking.css
 * ========================================================================== */


/* ==========================================================================
 * 01. DESIGN TOKENS
 * ========================================================================== */

:root {
  --background: #e9eef5;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --surface-muted: #eef4fa;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dbe4ee;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #dbeafe;
  --success: #166534;
  --success-bg: #dcfce7;
  --error: #991b1b;
  --error-bg: #fee2e2;
  --warning: #92400e;
  --warning-bg: #fef3c7;
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --max-width: 1240px;
}


/* ==========================================================================
 * 02. BASE
 * ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top left,
      rgba(37, 99, 235, 0.07),
      transparent 28%
    ),
    linear-gradient(
      180deg,
      #edf2f8 0%,
      var(--background) 100%
    );
  color: var(--text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(
    calc(100% - 32px),
    var(--max-width)
  );
  margin: 0 auto;
}


/* ==========================================================================
 * 03. HEADER
 * ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom:
    1px solid rgba(15, 23, 42, 0.06);
  background: rgba(233, 238, 245, 0.88);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 42px;
  height: 42px;
  filter:
    drop-shadow(
      0 0 8px rgba(37, 99, 235, 0.32)
    );
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.back-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #334155;
  font-weight: 800;
}

.back-link:hover {
  border-color: #bfdbfe;
  color: var(--primary-dark);
}


/* ==========================================================================
 * 04. PAGE INTRODUCTION
 * ========================================================================== */

.page-shell {
  padding: 28px 0 70px;
}

.intro-card {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 30px;
  align-items: center;
  padding: 38px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(
      135deg,
      rgba(2, 6, 23, 0.97),
      rgba(15, 23, 42, 0.93)
    );
  box-shadow: var(--shadow-lg);
  color: #ffffff;
}

.eyebrow,
.section-kicker {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.intro-card .eyebrow {
  color: #93c5fd;
}

.intro-card h1 {
  max-width: 780px;
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.intro-card p {
  max-width: 760px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.04rem;
}

.status-panel {
  padding: 22px;
  border:
    1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.07);
}

.status-panel strong {
  display: block;
  margin-bottom: 12px;
  color: #bfdbfe;
}

.status-panel ol {
  display: grid;
  gap: 10px;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.84);
}


/* ==========================================================================
 * 05. BOOKING LAYOUT
 * ========================================================================== */

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
  margin-top: 22px;
}

.booking-card,
.requirements-card {
  border:
    1px solid rgba(219, 228, 238, 0.9);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.booking-card {
  padding: 30px;
}

.requirements-card {
  position: sticky;
  top: 100px;
  padding: 26px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-heading h2,
.requirements-card h2 {
  font-size: 1.55rem;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.required-note {
  color: var(--muted);
  font-size: 0.82rem;
}

.divider {
  height: 1px;
  margin: 30px 0;
  background: var(--line);
}


/* ==========================================================================
 * 06. FORM
 * ========================================================================== */

.form-grid {
  display: grid;
  gap: 18px;
}

.form-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.form-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.field {
  min-width: 0;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: #334155;
  font-size: 0.91rem;
  font-weight: 800;
}

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

.field input,
.field select {
  min-height: 48px;
  padding: 0 13px;
}

.field textarea {
  min-height: 160px;
  padding: 13px;
  resize: vertical;
}

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

.field input:disabled,
.field select:disabled {
  cursor: not-allowed;
  background: #f1f5f9;
  color: #94a3b8;
}

.field-help {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.82rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  margin-top: 26px;
}

.primary-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  background: var(--primary);
  box-shadow:
    0 14px 28px rgba(37, 99, 235, 0.22);
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
}

.primary-button:hover {
  background: var(--primary-dark);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.66;
}

.submission-note {
  max-width: 680px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-message {
  margin-top: 20px;
  padding: 16px;
  border-radius: 14px;
  font-weight: 700;
}

.form-message.success {
  border: 1px solid #86efac;
  background: var(--success-bg);
  color: var(--success);
}

.form-message.error {
  border: 1px solid #fca5a5;
  background: var(--error-bg);
  color: var(--error);
}

.form-message.warning {
  border: 1px solid #fde68a;
  background: var(--warning-bg);
  color: var(--warning);
}


/* ==========================================================================
 * 07. FACILITY INFORMATION
 * ========================================================================== */

.facility-summary {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: #eff6ff;
  color: #1e3a8a;
}

.facility-summary strong {
  display: block;
  margin-bottom: 4px;
}

.requirements-intro,
.requirements-footnote {
  color: var(--muted);
  font-size: 0.91rem;
}

.requirements-intro {
  margin-top: 10px;
}

.requirements-loading {
  margin-top: 18px;
  padding: 13px;
  border-radius: 12px;
  background: var(--surface-muted);
  color: #475569;
  font-size: 0.9rem;
  font-weight: 700;
}

.requirements-list {
  display: grid;
  gap: 11px;
  margin-top: 18px;
  list-style: none;
}

.requirement-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.requirement-item strong {
  display: block;
  margin-bottom: 5px;
  color: #1e293b;
  font-size: 0.95rem;
}

.requirement-item p {
  color: #475569;
  font-size: 0.87rem;
}

.requirement-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.requirement-tag {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.74rem;
  font-weight: 900;
}

.requirements-footnote {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}


/* ==========================================================================
 * 08. FOOTER
 * ========================================================================== */

footer {
  padding: 0 0 40px;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top:
    1px solid rgba(148, 163, 184, 0.24);
  color: var(--muted);
  font-size: 0.88rem;
}


/* ==========================================================================
 * 09. RESPONSIVE
 * ========================================================================== */

@media (max-width: 980px) {
  .intro-card,
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .requirements-card {
    position: static;
  }

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

@media (max-width: 680px) {
  .nav {
    min-height: auto;
    padding: 13px 0;
  }

  .brand-copy span {
    display: none;
  }

  .intro-card,
  .booking-card,
  .requirements-card {
    padding: 22px;
    border-radius: 22px;
  }

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

  .section-heading,
  .footer-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-button {
    width: 100%;
  }
}


/* ==========================================================================
 * 10. REMOTE-HAND CANDIDATES
 * ========================================================================== */

.candidate-heading {
  align-items: center;
}

.candidate-intro {
  max-width: 680px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.secondary-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0 18px;
  background: #eff6ff;
  color: var(--primary-dark);
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
}

.secondary-button:hover {
  border-color: #60a5fa;
  background: #dbeafe;
}

.secondary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.candidates-grid {
  display: grid;
  gap: 14px;
}

.candidate-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.candidate-card:hover {
  border-color: #93c5fd;
  transform: translateY(-1px);
}

.candidate-card.selected {
  border-color: var(--primary);
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.1);
  background: #eff6ff;
}

.candidate-card input {
  margin-top: 6px;
  accent-color: var(--primary);
}

.candidate-content {
  min-width: 0;
}

.candidate-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.candidate-name {
  font-size: 1.05rem;
  font-weight: 900;
}

.candidate-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.candidate-bio {
  margin-top: 8px;
  color: #475569;
  font-size: 0.88rem;
}

.candidate-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.candidate-meta {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 800;
}

.candidate-meta.valid {
  background: var(--success-bg);
  color: var(--success);
}

.empty-state {
  padding: 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  color: var(--muted);
  font-weight: 700;
}


/* ==========================================================================
 * 11. FACILITY TICKET CONFIRMATION
 * ========================================================================== */

.ticket-confirmation-panel {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  background: #eff6ff;
}

.ticket-confirmation-panel h2 {
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}

.ticket-confirmation-panel > p {
  margin-top: 8px;
  color: #475569;
}

.assignment-summary {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.assignment-card {
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: #ffffff;
}

.assignment-card strong {
  display: block;
  margin-bottom: 5px;
  color: #1e3a8a;
}

.assignment-card p {
  color: #475569;
  font-size: 0.9rem;
}

.assignment-data-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.assignment-data-item {
  padding: 11px;
  border-radius: 12px;
  background: #f8fafc;
}

.assignment-data-item span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.assignment-data-item strong {
  margin-top: 3px;
  color: var(--text);
  word-break: break-word;
}

.ticket-reference-field {
  max-width: 520px;
  margin-bottom: 16px;
}

@media (max-width: 680px) {
  .candidate-heading {
    align-items: stretch;
  }

  .secondary-button {
    width: 100%;
  }

  .assignment-data-grid {
    grid-template-columns: 1fr;
  }
}
