/* Application form styling */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 2rem 1rem;
}

.application-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.campaign-logo {
  display: block;
  max-width: 200px;
  margin: 0 auto 2rem;
  border-radius: 8px;
}

h1 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.campaign-description {
  text-align: center;
  color: #7f8c8d;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.question-block {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e9ecef;
}

.question-block:last-of-type {
  border-bottom: none;
}

.question-label {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.required-mark {
  color: #dc3545;
}

.question-text {
  color: #7f8c8d;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* Form inputs */
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #667eea;
}

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

/* Checkbox group */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.checkbox-label:hover {
  background: #f8f9fa;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Video recorder */
.video-recorder {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
}

.video-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: white;
  border-radius: 4px;
}

.status-text {
  font-weight: 500;
}

.retries-remaining {
  color: #7f8c8d;
  font-size: 0.9rem;
}

.video-preview {
  width: 100%;
  max-height: 400px;
  background: #000;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.video-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Document upload */
.document-upload {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
}

.file-input {
  display: none;
}

.file-label {
  display: block;
  padding: 2rem;
  border: 2px dashed #ccc;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  background: white;
  transition: all 0.3s;
}

.file-label:hover {
  border-color: #667eea;
  background: #f0f8ff;
}

.file-info {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #7f8c8d;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: #0056b3;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover:not(:disabled) {
  background: #5a6268;
}

.btn-success {
  background: #28a745;
  color: white;
}

.btn-success:hover:not(:disabled) {
  background: #218838;
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover:not(:disabled) {
  background: #c82333;
}

.btn-warning {
  background: #ffc107;
  color: #212529;
}

.btn-warning:hover:not(:disabled) {
  background: #e0a800;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Form error */
.form-error {
  display: none;
  padding: 1rem;
  margin-bottom: 1.5rem;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  text-align: center;
}

/* Form actions */
.form-actions {
  margin-top: 2rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 1rem 0.5rem;
  }

  .application-container {
    padding: 2rem 1.5rem;
  }

  h1 {
    font-size: 1.5rem;
  }

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

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