/* Municipal Issue Tracker Frontend Styles - Clean Minimal Design */

* {
  box-sizing: border-box;
}

body{
  background: #f8fafc;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  min-height: 100vh;
  padding: 40px 0;
  margin: 0;
}

/* Complete redesign with clean white background and minimal styling */
.mit-public-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

.mit-form-container {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mit-form-header {
  margin-bottom: 32px;
}

.mit-form-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px 0;
}

.mit-form-header p {
  color: #64748b;
  margin: 0;
  font-size: 15px;
}

.mit-form {
  animation: slideInLeft 0.5s ease-out;
}

.mit-form-group {
  margin-bottom: 24px;
  animation: slideInLeft 0.5s ease-out;
  animation-fill-mode: backwards;
}

.mit-form-group:nth-child(1) {
  animation-delay: 0.1s;
}
.mit-form-group:nth-child(2) {
  animation-delay: 0.15s;
}
.mit-form-group:nth-child(3) {
  animation-delay: 0.2s;
}
.mit-form-group:nth-child(4) {
  animation-delay: 0.25s;
}
.mit-form-group:nth-child(5) {
  animation-delay: 0.3s;
}
.mit-form-group:nth-child(6) {
  animation-delay: 0.35s;
}

.mit-form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.mit-form-group input,
.mit-form-group textarea,
.mit-form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
  background: white;
  color: #1e293b;
}

.mit-form-group input::placeholder,
.mit-form-group textarea::placeholder {
  color: #94a3b8;
}

.mit-form-group input:hover,
.mit-form-group textarea:hover,
.mit-form-group select:hover {
  border-color: #cbd5e1;
}

.mit-form-group input:focus,
.mit-form-group textarea:focus,
.mit-form-group select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.mit-form-group textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.mit-form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Location Button - Clean design with icon */
.mit-location-btn {
  width: 100%;
  padding: 12px 16px;
  background: white;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mit-location-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.mit-location-btn:active {
  background: #f1f5f9;
}

.mit-location-btn.loading {
  opacity: 0.6;
  cursor: not-allowed;
  animation: pulse 1.5s ease infinite;
}

.mit-location-btn svg {
  width: 18px;
  height: 18px;
}

/* Location Card - Clean minimal display */
.mit-location-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
  display: none;
  box-shadow: 0 10px 28px rgba(102, 126, 234, 0.35);
}

.mit-location-card.active {
  display: block;
  animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mit-location-card .mit-location-pin {
  font-size: 32px;
  animation: bounce 1.2s ease infinite;
}

.mit-location-text {
  flex: 1;
}

.mit-location-text strong {
  font-size: 13px;
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-weight: 600;
}

.mit-location-address {
  font-size: 14px;
  line-height: 1.6;
  color: #1e293b;
}

/* File Upload - Clean minimal style */
.mit-file-upload {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border: 2px dashed #e2e8f0;
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mit-file-upload:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.mit-file-upload input[type="file"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.mit-upload-content {
  text-align: center;
  pointer-events: none;
}

.mit-upload-icon {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.6;
  animation: pulse 2.5s ease infinite;
}

.mit-upload-text {
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.mit-upload-hint {
  color: #94a3b8;
  font-size: 12px;
  margin-top: 6px;
}

/* Image Preview */
.mit-image-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.mit-preview-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.mit-preview-item:hover {
  transform: scale(1.08);
}

.mit-preview-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.mit-preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.mit-preview-remove:hover {
  background: #dc2626;
  transform: scale(1.15);
}

/* Submit Button - Clean primary button */
.mit-submit-btn {
  width: 100%;
  padding: 14px 20px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
  box-shadow: 0 8px 26px rgba(245, 87, 108, 0.4);
  letter-spacing: 0.5px;
}

.mit-submit-btn:hover {
  background: #2563eb;
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(245, 87, 108, 0.5);
}

.mit-submit-btn:active {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.mit-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Success Modal */
.mit-success-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}

.mit-success-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.mit-success-content {
  background: white;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.mit-success-icon {
  width: 64px;
  height: 64px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
  animation: successPulse 0.7s ease;
  color: white;
}

.mit-success-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.mit-success-message {
  color: #64748b;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.6;
}

.mit-success-btn {
  padding: 12px 32px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 18px rgba(102, 126, 234, 0.35);
}

.mit-success-btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.45);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-25px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes successPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.75;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .mit-form-container {
    padding: 24px 20px;
  }

  .mit-form-header h1 {
    font-size: 24px;
  }

  .mit-image-preview {
    grid-template-columns: repeat(3, 1fr);
  }

  .mit-success-content {
    margin: 20px;
    padding: 32px 24px;
  }

  .mit-success-icon {
    width: 75px;
    height: 75px;
    font-size: 38px;
  }
}
