/* CHAMU Page Specific Styles */

.chamu-section {
  padding-top: 100px;
  min-height: 100vh;
  background-color: var(--bg-primary);
}

.chamu-header {
  padding-top: 2rem;
}

/* Form Sections */
.form-section {
  position: relative;
}

.section-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
}

.section-title i {
  color: var(--highlight-color);
}

/* Added CHAMU item styling */
/* CHAMU Items */
.chamu-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.chamu-item:hover {
  border-color: var(--highlight-color);
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.1);
}

.chamu-letter {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--highlight-color), #ff6b6b);
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(233, 69, 96, 0.2);
}

.chamu-content {
  flex: 1;
}

.chamu-content .form-label {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.chamu-content .text-muted {
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Added location button styling */
/* Location Capture */
#captureLocationBtn {
  padding: 0.75rem 1.5rem;
}

#locationStatus {
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

#locationStatus.loading::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--highlight-color);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Camera Capture */
.camera-container {
  background-color: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
}

#cameraPreview {
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: 0.5rem;
  background-color: #000;
}

.camera-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Document Preview */
.document-preview {
  background-color: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
}

.document-preview img {
  max-height: 400px;
  object-fit: contain;
  border: 1px solid var(--border-color);
}

.preview-header {
  font-weight: 600;
}

/* Document Capture Buttons */
.document-capture .btn {
  padding: 1rem;
  font-size: 1rem;
}

/* Form Card */
.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 767px) {
  .chamu-section {
    padding-top: 80px;
  }

  .section-title {
    font-size: 1.25rem;
  }

  /* Made CHAMU items stack on mobile */
  .chamu-item {
    flex-direction: column;
    gap: 1rem;
  }

  .chamu-letter {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .camera-controls {
    flex-direction: column;
  }

  .camera-controls .btn {
    width: 100%;
  }
}
