/* ================================================
   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 Scroll Box -------- */
.waiver-scroll-box {
  max-height: 420px;
  overflow-y: auto;
  border-bottom: 1px solid #dee2e6;
  background: #fafafa;
  -webkit-overflow-scrolling: touch;
}

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

.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; }
}
