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

body {
  font-family: "Inter", sans-serif;
  background: transparent;
  padding: 0;
  margin: 0;
  overflow: visible;
}

.modal-container {
  width: 100%;
  max-width: 650px;
  background: white;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  background: white;
  flex-shrink: 0;
}

.modal-header h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2e7d32  ;
  margin: 0;
}

.modal-header h2 i {
  color: #2e7d32;
}

.modal-body {
  padding: 24px 32px;
  overflow-y: auto;
  flex: 1;
}

/* Header row with icon */
.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-column i {
  font-size: 48px;
  color: #2e7d32;
  margin-right: 18px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
  cursor: pointer;
}

.icon-column i:hover {
  filter: brightness(1.2);
  transform: scale(1.05);
}

/* Transition effect when changing from regular to solid */
.icon-column i.fa-solid {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-column i.pulse {
  animation: heartPulse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes heartPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

.header-column h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2e7d32;
  margin: 0 0 4px 0;
}

.header-column p {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  margin: 0;
  width: 400px;
}

/* Form groups */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
  text-align: left;
}

.required {
  color: #e53e3e;
  margin-left: 2px;
}

input,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  transition: border-color 0.2s;
  cursor: text;
}

input:hover,
select:hover {
  border-color: #2e7d32;
  background-color: #f9f9f9;
}

input:focus,
select:focus {
  outline: none;
  border-color: #2e7d32;
}

input::placeholder {
  color: #aaa;
  font-size: 14px;
}

input[type="date"] {
  color: #333;
}
input[type="date"]:invalid {
  color: #aaa;
}

/* Checkbox group */
.checkbox-group {
  margin: 25px 0 20px;
}

.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 14px;
  color: #444;
  margin-bottom: 12px;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  accent-color: #2e7d32;
  flex-shrink: 0;
}

/* Upload Area */
/* Upload Area (matching report.css) */
.upload-area {
  width: 100%;
  border: 2px dashed #e0e0e0;
  border-radius: 12px;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0;
}

.upload-area:hover {
  border-color: #2e7d32;
  background: #f5f5f5;
}

.upload-area.dragover {
  border-color: #2e7d32;
  background: #e8f5e9;
}

.upload-content {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.upload-content i {
  font-size: 36px;
  color: #2e7d32;
  opacity: 0.6;
}

.upload-content span {
  font-size: 14px;
  color: #333;
  text-align: center;
}

.upload-hint {
  font-size: 12px !important;
  color: #999 !important;
}

/* Photo Preview Gallery */
.photo-preview {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 15px;
  min-height: 70px;
}

.preview-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.2s;
}

.preview-item:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.remove-photo {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  background: #e53935;
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.2s;
  opacity: 0;
  transform: scale(0.8);
  z-index: 5;
}

.preview-item:hover .remove-photo {
  opacity: 1;
  transform: scale(1);
}

.remove-photo:hover {
  background: #c62828;
  transform: scale(1.1);
}

/* Photo Stats */
.photo-stats {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: #666;
}

.photo-count-text {
  background: #f5f5f5;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.photo-count-text i {
  color: #2e7d32;
  font-size: 12px;
}

.clear-all-btn {
  background: none;
  border: 1px solid #e0e0e0;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}

.clear-all-btn:hover {
  background: #f5f5f5;
  border-color: #e53935;
  color: #e53935;
}

/* Image Modal */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(75, 75, 75, 0.13);
  z-index: 1100;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.image-modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-counter {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 15px;
  border-radius: 20px;
}

.evidence-note {
  margin-top: 2px;
  font-size: 14px;
  color: #666;
  font-style: italic;
}

/* Bottom buttons */
.bottom-button {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 24px;
}

.submit-btn {
  flex: 1;
  background: #2e7d32;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  font-family: "Inter", sans-serif;
}

.submit-btn:hover {
  background: #1b5e20;
}

.cancel-btn {
  flex: 1;
  background: white;
  border: 1px solid #d4d4d4;
  border-radius: 10px;
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  color: #666;
  font-family: "Inter", sans-serif;
}

.cancel-btn:hover {
  background: #f5f5f5;
}

/* Responsive */
@media (max-width: 480px) {
  .modal-body {
    padding: 20px;
  }
  .preview-item {
    width: 100px;
  }
  .preview-item img {
    height: 80px;
  }
}
