:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #0ea5e9;
  --pill: #f1f5f9;
  --green: #16a34a;
  --shadow: 0 6px 18px rgba(17, 24, 39, .06);
  --radius: 14px;
  --radius-sm: 10px;
  --gap: 28px;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: Inter, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* header (simple placeholder) */
.sitebar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.sitebar .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  font-weight: 700
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: .95rem
}

/* page */
.container {
  max-width: 1200px;
  margin: 36px auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: var(--gap);
}

@media (max-width: 980px) {
  .container {
    grid-template-columns: 1fr
  }

  .order-col {
    order: -1
  }
}

/* cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0;
  padding: 22px 22px 6px 22px;
  font-size: 1.4rem
}

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

/* form */
.form {
  padding: 18px 22px 24px 22px;
}

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

.grid-1 {
  grid-template-columns: 1fr
}

@media (max-width:680px) {
  .grid {
    grid-template-columns: 1fr
  }
}

label {
  display: block;
  font-size: .92rem;
  font-weight: 600;
  margin: 3px 0 8px 2px
}

.req::after {
  content: " *";
  color: #ef4444
}

.control {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 1rem;
  outline: none;
}

.control:focus {
  border-color: #cbd5e1;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .10)
}

.btn {
  display: inline-block;
  margin-top: 8px;
  background: var(--brand);
  color: #fff;
  padding: 13px 18px;
  border: 0;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer
}

/* Order summary */
.event-head {
  display: flex;
  gap: 12px;
  padding: 18px 18px 8px 18px;
  align-items: center
}

.event-thumb {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  background: #e2e8f0;
  flex: 0 0 auto;
  background-image: linear-gradient(135deg, #E5E7EB, #CBD5E1);
}

.event-meta h3 {
  margin: 0 0 2px;
  font-size: 1.05rem
}

.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .9rem
}

.meta .dot {
  width: 4px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 50%;
  align-self: center
}

.summary {
  padding: 8px 18px 18px 18px;
}

.summary h4 {
  margin: 4px 0 10px 0;
  font-size: 1.2rem
}

.ticket-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #f8fafc;
}

.group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #eef2f7;
  font-weight: 600;
  font-size: .98rem;
}

.qty-pill {
  background: var(--pill);
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  color: #111;
}

.items {
  max-height: 430px;
  overflow: auto;
  background: #fff;
}

.ticket {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  padding: 12px 14px;
  background: #fff;
}

.ticket:first-child {
  border-top: 0
}

.t-left {
  min-width: 0;
}

.t-title {
  font-weight: 600;
  margin: 0 0 4px;
  font-size: .98rem
}

.t-sub {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t-price {
  font-weight: 700;
  white-space: nowrap
}

.note {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 8px
}
