/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #f5f5f5;
}

/* Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Header */
.header {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.logo {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  max-width: 300px;
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive logo sizing */
@media (max-width: 640px) {
  .logo img {
    max-width: 240px;
  }
}

/* Progress Bar - Brand Colors */
.progress {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.progress::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e0e0e0;
  z-index: 0;
}

.progress-step {
  background: white;
  border: 2px solid #e0e0e0;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.progress-step.active {
  border-color: #1a1a1a;
  background: #1a1a1a;
  color: white;
}

.progress-step.completed {
  border-color: #C84037; /* Your brand red */
  background: #C84037;
  color: white;
}

/* Content */
.content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.content h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.subtitle {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Waiver Box */
.waiver-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  max-height: 500px;
  overflow-y: auto;
}

.waiver-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #1a1a1a;
}

.waiver-box h4 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #1a1a1a;
}

.waiver-box p {
  margin-bottom: 1rem;
}

.waiver-box ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.waiver-box li {
  margin-bottom: 0.5rem;
}

.waiver-agreement {
  font-weight: 600;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e5e7eb;
}

/* Form Sections */
.form-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
  font-weight: 600;
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #C84037; /* Brand red on focus */
  box-shadow: 0 0 0 3px rgba(200, 64, 55, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.help-text {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* Signature Pad */
.signature-container {
  border: 2px solid #d1d5db;
  border-radius: 6px;
  margin-bottom: 1rem;
  background: white;
  display: inline-block;
}

#signaturePad {
  display: block;
  touch-action: none;
  cursor: crosshair;
}

/* Checkboxes */
.checkbox-group {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #C84037; /* Brand red checkboxes */
}

.checkbox-label span {
  flex: 1;
}

/* Buttons - Brand Colors */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: #C84037; /* Brand red */
  color: white;
  width: 100%;
  margin-top: 1rem;
}

.btn-primary:hover {
  background: #B33630; /* Darker red on hover */
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200, 64, 55, 0.3);
}

.btn-primary:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: white;
  color: #1a1a1a;
  border: 2px solid #1a1a1a;
}

.btn-secondary:hover {
  background: #1a1a1a;
  color: white;
}

/* Success Page */
.success-page {
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #C84037; /* Brand red */
  color: white;
  font-size: 3rem;
  line-height: 80px;
  border-radius: 50%;
  margin: 0 auto 2rem;
}

.info-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: left;
}

.info-box h3 {
  margin-bottom: 1.5rem;
  text-align: center;
  color: #1a1a1a;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.timeline-icon {
  width: 40px;
  height: 40px;
  background: #C84037; /* Brand red */
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.timeline-content {
  flex: 1;
  padding-top: 0.5rem;
}

/* Action Section */
.action-section {
  margin: 2rem 0;
}

.action-section h3 {
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.action-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s;
}

.action-card:hover {
  border-color: #C84037;
  box-shadow: 0 4px 12px rgba(200, 64, 55, 0.1);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.action-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.action-card p {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.action-card .btn-primary,
.action-card .btn-secondary {
  width: 100%;
}

/* Contact Box */
.contact-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

.contact-box h4 {
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.contact-box p {
  margin-bottom: 0.25rem;
}

.contact-box a {
  color: #C84037; /* Brand red for links */
  font-weight: 600;
  text-decoration: none;
}

.contact-box a:hover {
  text-decoration: underline;
}

/* Rating Scale Styles */
.rating-scale {
  margin-top: 0.5rem;
}

.rating-labels {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
}

.rating-inputs {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.5rem;
}

.rating-inputs label {
  display: flex;
  justify-content: center;
  cursor: pointer;
}

.rating-inputs input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #C84037; /* Brand red for radio buttons */
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Checklist Styles */
.checklist {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
  text-align: left; /* Force left alignment */
}

.checklist-item {
  display: grid;
  grid-template-columns: 24px 1fr; /* Fixed width for checkbox, rest for text */
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
  align-items: start;
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-icon {
  font-size: 1.25rem;
  color: #C84037;
  line-height: 1.5;
  text-align: left;
}

.checklist-item > span:last-child {
  line-height: 1.5;
  text-align: left;
}

.download-section {
  margin: 2rem 0;
}

.download-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  border: 2px solid #C84037; /* Brand red accent */
}

.download-card .card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.download-card h4 {
  color: white;
  margin-bottom: 0.5rem;
}

.download-card p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
}

.download-card .btn-primary {
  background: #C84037;
  color: white;
  border: none;
}

.download-card .btn-primary:hover {
  background: #B33630;
}

.footer-note {
  background: #fef3c7;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 2rem;
  text-align: center;
}

.footer-note p {
  margin: 0;
  color: #92400e;
}

/* Responsive */
@media (max-width: 640px) {
  .container {
    padding: 1rem;
  }

  .header,
  .content {
    padding: 1.5rem;
  }

  .content h2 {
    font-size: 1.5rem;
  }

  .progress {
    flex-direction: column;
    gap: 0.5rem;
  }

  .progress::before {
    display: none;
  }

  .progress-step {
    width: 100%;
    text-align: center;
  }

  .waiver-box {
    padding: 1rem;
  }

  #signaturePad {
    width: 100%;
  }

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

/* Loading State */
.loading {
  opacity: 0.6;
  pointer-events: none;
}