/* ================================================
   Let's Ride Expo 2026 — Waiver System Styles
   ================================================ */

:root {
  --primary: #1a1a2e;
  --accent: #e94560;
  --light-bg: #f8f9fa;
  --border-radius: 12px;
}

body {
  background-color: #f0f2f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.container {
  flex: 1;
}

/* -------- Header -------- */
.site-header {
  background: var(--primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.site-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
}

/* -------- Footer -------- */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.5);
  margin-top: auto;
}

.site-footer .text-muted {
  color: rgba(255,255,255,0.5) !important;
}

/* -------- Cards -------- */
.card {
  border-radius: var(--border-radius);
  border: 1px solid rgba(0,0,0,0.08);
}

.card-header {
  border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
}

/* -------- Waiver Text Box -------- */
.waiver-scroll-box {
  background: #fafafa;
}

@media (min-width: 768px) {
  .waiver-scroll-box {
  }
}

.waiver-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.waiver-body {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #333;
}

.waiver-list {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #333;
  padding-left: 1.5rem;
}

.waiver-list li {
  margin-bottom: 1rem;
}

.waiver-meta-box {
  background: #e8ecf0;
  border-radius: 6px;
  padding: 10px 15px;
  font-size: 0.9rem;
}

.waiver-acknowledgment {
  background: #fff3cd;
  border-radius: 8px;
  border-left: 4px solid #ffc107;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* -------- Signature Pad -------- */
.signature-wrapper {
  border: 2px solid #ced4da;
  border-radius: 8px;
  background: white;
  overflow: hidden;
  position: relative;
}

.signature-canvas {
  width: 100%;
  height: 180px;
  display: block;
  cursor: crosshair;
  touch-action: none;
}

@media (min-width: 768px) {
  .signature-canvas {
    height: 220px;
  }
}

.signature-wrapper.is-invalid {
  border-color: #dc3545;
}

/* -------- Confirmation Page -------- */
.confirmation-card {
  background: linear-gradient(135deg, var(--primary) 0%, #2d2d5e 100%);
  color: white;
  border: none;
}

.confirmation-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  padding: 10px 0;
}

@media (min-width: 576px) {
  .confirmation-code {
    font-size: 4rem;
  }
}

.qr-code-img {
  border: 4px solid white;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* -------- Volunteer Dashboard -------- */
.brand-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.brand-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

.ride-total {
  font-family: 'Courier New', Courier, monospace;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.ride-bump {
  transform: scale(1.2);
  color: #198754;
}

.brand-name {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* -------- Form Enhancements -------- */
.form-control, .form-select {
  border-radius: 8px;
  border-color: #ced4da;
  padding: 0.6rem 0.85rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(26, 26, 46, 0.2);
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  border-radius: 8px;
}

.btn-primary:hover {
  background-color: #2d2d5e;
  border-color: #2d2d5e;
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  border-radius: 8px;
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-lg .form-check-input {
  width: 1.4em;
  height: 1.4em;
  margin-top: 0.1em;
  cursor: pointer;
}

.form-check-lg .form-check-label {
  padding-left: 0.5em;
  cursor: pointer;
}

/* -------- Mobile Tap Targets -------- */
@media (max-width: 576px) {
  .btn-lg {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
  }

  .confirmation-code {
    font-size: 2.5rem;
    letter-spacing: 0.3rem;
  }

  .site-logo {
    height: 60px;
  }
}

/* -------- Confirmation Icon -------- */
.confirmation-icon {
  animation: pop 0.4s ease-out;
}

@keyframes pop {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* -------- Waiver Agreement Footer (inside waiver card) -------- */
.waiver-agreement-footer {
  background: #f8f9fa;
  border-top: 1px solid rgba(0,0,0,0.1);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.waiver-agree-row {
  background: #fff;
  border: 2px solid #1a1a2e;
  border-radius: 10px;
  padding: 14px 18px;
}

.waiver-agree-row .form-check-input {
  width: 1.6em;
  height: 1.6em;
  border: 2px solid #1a1a2e;
  background-color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.waiver-agree-row .form-check-input:checked {
  background-color: #198754;
  border-color: #198754;
}

.waiver-agree-row .form-check-label {
  color: #1a1a2e;
  cursor: pointer;
}

.waiver-agreement-footer .form-check-label {
  color: #555;
  cursor: pointer;
}

.waiver-agreement-footer .form-check-input {
  cursor: pointer;
}

/* -------- Brand Pill Buttons (waiver form) -------- */
.brand-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Mobile: stacked full-width */
.brand-pill-label {
  cursor: pointer;
  user-select: none;
  flex: 1 1 100%;
}

/* Tablet+: equal-width inline pills */
@media (min-width: 576px) {
  .brand-pill-label {
    flex: 1 1 0;
    min-width: 130px;
  }
}

/* Fully hide the native checkbox */
.brand-pill-label input[type="checkbox"] {
  display: none;
}

.brand-pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 3px solid #1a1a2e;
  border-radius: 50px;
  padding: 16px 20px;
  background: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #1a1a2e;
  transition: background 0.15s, box-shadow 0.15s, color 0.15s;
  width: 100%;
  text-align: center;
  cursor: pointer;
}

.brand-pill-label:hover .brand-pill-btn {
  background: #f0f2f5;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.brand-pill-label input:checked ~ .brand-pill-btn {
  background: #1a1a2e;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(26,26,46,0.2);
}

.brand-pill-label input:checked ~ .brand-pill-btn .brand-pill-check {
  display: inline-block;
}

.brand-pill-check {
  display: none;
  font-size: 1.15em;
}
