/* Liberty Common Lottery — shared design system */

:root {
  --lc-navy: #0d2838;
  --lc-navy-light: #1a3d52;
  --lc-red: #aa2d29;
  --lc-red-hover: #8c2421;
  --lc-bg: #f4f6f8;
  --lc-surface: #ffffff;
  --lc-text: #1f2937;
  --lc-text-muted: #6b7280;
  --lc-border: #e5e7eb;
  --lc-radius: 10px;
  --lc-shadow: 0 4px 24px rgba(13, 40, 56, 0.08);
  --lc-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ── Content pages (policy, privacy, campus choice) ── */

.lottery-page {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--lc-bg) 0%, #e8edf2 100%);
  font-family: var(--lc-font);
  color: var(--lc-text);
  line-height: 1.65;
}

.lottery-page-header {
  background: var(--lc-navy);
  padding: 20px 24px;
  text-align: center;
}

.lottery-page-header img {
  max-height: 56px;
  width: auto;
}

.lottery-page-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.lottery-card {
  background: var(--lc-surface);
  border-radius: var(--lc-radius);
  box-shadow: var(--lc-shadow);
  padding: 32px 36px;
  border: 1px solid var(--lc-border);
}

.lottery-card h1 {
  color: var(--lc-red);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 24px;
  padding: 0;
  text-align: center;
  line-height: 1.3;
}

.lottery-card h2 {
  color: var(--lc-navy);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 12px;
  padding: 0;
}

.lottery-card p {
  color: var(--lc-text);
  font-size: 1rem;
  margin: 0 0 16px;
  text-indent: 0;
  padding: 0;
  line-height: 1.7;
}

.lottery-card a {
  color: var(--lc-red);
  text-decoration: underline;
}

.lottery-card a:hover,
.lottery-card a:focus {
  color: var(--lc-red-hover);
}

.lottery-card ul {
  margin: 0 0 16px;
  padding-left: 1.5rem;
  color: var(--lc-text);
  font-size: 1rem;
  list-style-type: disc;
}

.lottery-card ul ul {
  margin-top: 8px;
  list-style-type: circle;
}

.lottery-card li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.lottery-card .lottery-ack {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--lc-border);
  font-weight: 500;
  color: var(--lc-navy);
}

.lottery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

/* ── Buttons ── */

.btn-lottery {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--lc-font);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  line-height: 1.4;
}

.btn-lottery:hover,
.btn-lottery:focus {
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-lottery-primary {
  background: var(--lc-red);
  color: #fff !important;
}

.btn-lottery-primary:hover,
.btn-lottery-primary:focus {
  background: var(--lc-red-hover);
  color: #fff !important;
}

.btn-lottery-secondary {
  background: var(--lc-navy);
  color: #fff !important;
}

.btn-lottery-secondary:hover,
.btn-lottery-secondary:focus {
  background: var(--lc-navy-light);
  color: #fff !important;
}

.btn-lottery-outline {
  background: #ffffff;
  color: var(--lc-navy) !important;
  border: 2px solid var(--lc-navy);
}

.btn-lottery-outline:hover,
.btn-lottery-outline:focus {
  background: var(--lc-navy);
  color: #fff !important;
}

.btn-lottery-danger {
  background: #dc3545;
  color: #fff !important;
}

.btn-lottery-danger:hover,
.btn-lottery-danger:focus {
  background: #c82333;
  color: #fff !important;
}

/* ── Dashboard (nextstep) ── */

.dashboard-panel .panel-body {
  padding: 36px 32px !important;
}

.dashboard-welcome {
  text-align: center;
  margin-bottom: 32px;
}

.dashboard-welcome h2 {
  color: var(--lc-navy);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 8px;
  padding: 0;
}

.dashboard-welcome p {
  color: var(--lc-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.dashboard-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 360px;
  margin: 0 auto;
}

.dashboard-actions .btn-lottery {
  width: 100%;
}

/* ── View children (vc.php) ── */

.student-status-list {
  padding: 8px 4px;
}

.student-status-list h2 {
  color: var(--lc-navy);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 18px;
  padding: 0;
}

.vc-parent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.vc-info-card {
  background: var(--lc-bg);
  border: 1px solid var(--lc-border);
  border-left: 4px solid var(--lc-red);
  border-radius: var(--lc-radius);
  padding: 18px 20px;
}

.vc-info-card h3 {
  color: var(--lc-red);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 14px;
  padding: 0;
}

.vc-detail {
  margin-bottom: 10px;
}

.vc-detail:last-child {
  margin-bottom: 0;
}

.vc-detail-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lc-text-muted);
  margin-bottom: 2px;
}

.vc-detail-value {
  color: var(--lc-text);
  margin: 0;
  font-size: 0.95rem;
  word-break: break-word;
}

.vc-address-card {
  margin-bottom: 28px;
}

.vc-address-lines {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--lc-text);
}

.vc-address-lines li {
  margin-bottom: 4px;
}

.vc-section-title {
  color: var(--lc-navy);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 28px 0 14px;
  padding: 0;
}

.student-status-list .table {
  font-size: 0.875rem;
  margin-bottom: 0;
}

.student-status-list .table thead th {
  background: var(--lc-navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: none;
  white-space: nowrap;
}

.student-status-list .table td {
  color: var(--lc-text);
  vertical-align: middle;
}

.student-status-list .table-striped tbody tr:nth-of-type(odd) {
  background: var(--lc-bg);
}

.vc-contact-callout {
  margin: 32px 0 8px;
  text-align: left;
}

.vc-contact-callout-box {
  padding: 18px 20px;
  background: #f7f8fa;
  border: 2px solid var(--lc-red);
  border-radius: var(--lc-radius);
  color: var(--lc-navy);
}

.vc-contact-callout-box > i {
  display: block;
  font-size: 1.5rem;
  color: var(--lc-red);
  margin-bottom: 10px;
}

.vc-contact-callout-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--lc-red);
  margin: 0 0 10px;
  line-height: 1.35;
}

.vc-contact-callout-intro {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--lc-text);
  margin: 0 0 18px;
  line-height: 1.55;
}

.vc-contact-registrar-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.vc-contact-registrar {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--lc-text);
}

.vc-contact-registrar strong {
  display: block;
  color: var(--lc-navy);
  margin-bottom: 4px;
}

.vc-contact-registrar a {
  color: var(--lc-red);
  text-decoration: underline;
}

.vc-contact-registrar a:hover,
.vc-contact-registrar a:focus {
  color: var(--lc-red-hover);
}

.viewchild-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.viewchild-page .viewchild-container {
  max-width: 1440px;
  padding-left: 20px;
  padding-right: 20px;
}

.viewchild-page .viewchild-panel .panel-body {
  padding: 24px 16px 28px;
}

.viewchild-page .vc-table-wrap {
  overflow-x: visible;
  width: 100%;
}

.viewchild-page .student-status-list .vc-students-table {
  width: 100%;
  table-layout: fixed;
  font-size: 0.8125rem;
  margin-bottom: 0;
}

.viewchild-page .student-status-list .vc-students-table thead th {
  white-space: normal;
  line-height: 1.25;
  padding: 10px 6px;
  font-size: 0.65rem;
  vertical-align: bottom;
  hyphens: auto;
}

.viewchild-page .student-status-list .vc-students-table td {
  padding: 10px 6px;
  white-space: normal;
  word-break: break-word;
  vertical-align: top;
  line-height: 1.35;
}

.viewchild-page .student-status-list .vc-students-table th:nth-child(1),
.viewchild-page .student-status-list .vc-students-table td:nth-child(1) { width: 10%; }

.viewchild-page .student-status-list .vc-students-table th:nth-child(2),
.viewchild-page .student-status-list .vc-students-table td:nth-child(2) { width: 10%; }

.viewchild-page .student-status-list .vc-students-table th:nth-child(3),
.viewchild-page .student-status-list .vc-students-table td:nth-child(3) { width: 9%; }

.viewchild-page .student-status-list .vc-students-table th:nth-child(4),
.viewchild-page .student-status-list .vc-students-table td:nth-child(4) { width: 7%; }

.viewchild-page .student-status-list .vc-students-table th:nth-child(5),
.viewchild-page .student-status-list .vc-students-table td:nth-child(5) { width: 10%; }

.viewchild-page .student-status-list .vc-students-table th:nth-child(6),
.viewchild-page .student-status-list .vc-students-table td:nth-child(6) { width: 10%; }

.viewchild-page .student-status-list .vc-students-table th:nth-child(7),
.viewchild-page .student-status-list .vc-students-table td:nth-child(7) { width: 12%; }

.viewchild-page .student-status-list .vc-students-table th:nth-child(8),
.viewchild-page .student-status-list .vc-students-table td:nth-child(8) { width: 8%; }

.viewchild-page .student-status-list .vc-students-table th:nth-child(9),
.viewchild-page .student-status-list .vc-students-table td:nth-child(9) { width: 14%; }

@media (max-width: 991px) {
  .viewchild-page .viewchild-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .viewchild-page .student-status-list .vc-students-table {
    table-layout: auto;
    font-size: 0.75rem;
  }

  .viewchild-page .student-status-list .vc-students-table thead th,
  .viewchild-page .student-status-list .vc-students-table td {
    padding: 8px 5px;
  }
}

/* ── Lottery form wizard wrapper ── */

.lottery-form-page {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--lc-navy) 0%, #163347 50%, var(--lc-bg) 50%);
  padding-bottom: 40px;
}

.lottery-form-header {
  text-align: center;
  padding: 28px 20px 20px;
}

.lottery-form-header img {
  max-height: 88px;
  width: auto;
  margin-bottom: 20px;
  display: inline-block;
}

.lottery-form-header .btn-lottery-back {
  background: #ffffff;
  color: var(--lc-navy) !important;
  border: 2px solid #ffffff;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.lottery-form-header .btn-lottery-back:hover,
.lottery-form-header .btn-lottery-back:focus {
  background: var(--lc-bg);
  color: var(--lc-red) !important;
  border-color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.lottery-form-header .btn-lottery-back i {
  margin-right: 6px;
}

.lottery-form-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}