/* CanalD Public Styles */
.canald-form-container,
.canald-status-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.canald-form-container h3,
.canald-status-container h3 {
  margin-top: 0;
  color: #333;
  border-bottom: 2px solid #a08e33;
  padding-bottom: 10px;
}

.canald-field {
  margin-bottom: 20px;
}

.canald-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

.canald-field input,
.canald-field select,
.canald-field textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.canald-field input:focus,
.canald-field select:focus,
.canald-field textarea:focus {
  outline: none;
  border-color: #a08e33;
  box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

.canald-field input[type="file"] {
  padding: 8px;
  background: #f9f9f9;
}

.canald-field .description {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
  margin-bottom: 0;
}

.canald-file-error {
  color: #d63384;
  font-size: 12px;
  margin-top: 5px;
}

.canald-privacy-field {
  margin-bottom: 15px;
}

.canald-checkbox-label {
  display: flex;
  align-items: flex-start;
  font-weight: normal !important;
  cursor: pointer;
}

.canald-checkbox-label input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
  margin-top: 2px;
  flex-shrink: 0;
}

.canald-checkbox-label a {
  color: #a08e33;
  text-decoration: underline;
}

.canald-checkbox-label a:hover {
  color: #00253e;
}

.canald-legal-text {
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 4px solid #a08e33;
}

.canald-legal-text p {
  font-size: 11px;
  line-height: 1.4;
  color: #666;
  margin: 0;
}

.canald-submit-btn {
  background: #00253e;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.canald-submit-btn:hover {
  background: #a08e33;
}

.canald-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.canald-response {
  margin-top: 20px;
  padding: 15px;
  border-radius: 4px;
}

.canald-response.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.canald-response.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.canald-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #a08e33;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Status page specific styles */
.complaint-status-details {
  margin-top: 20px;
}

.complaint-status-details h4 {
  color: #333;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.status-info {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.status-info p {
  margin: 10px 0;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-in_progress {
  background: #cce5ff;
  color: #004085;
}

.status-resolved {
  background: #d4edda;
  color: #155724;
}

.status-closed {
  background: #f8d7da;
  color: #721c24;
}

.complaint-responses {
  margin-top: 20px;
}

.complaint-responses h5 {
  color: #333;
  margin-bottom: 15px;
}

.response-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 15px;
}

.response-meta {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid #eee;
}

.response-text {
  line-height: 1.5;
}

/* Attachment styles */
.attachment-info {
  margin-top: 15px;
  padding: 10px;
  background: #e3f2fd;
  border-radius: 4px;
  border-left: 4px solid #2196f3;
}

.attachment-link {
  color: #1976d2;
  text-decoration: none;
  font-weight: bold;
}

.attachment-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .canald-form-container,
  .canald-status-container {
    margin: 10px;
    padding: 15px;
  }

  .canald-legal-text p {
    font-size: 10px;
  }
}
