/* Modern Issue Reporting Form Styles */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  
  min-height: 100vh;
  padding: 20px;
  line-height: 1.6;
}

.pir-form-wrapper {
  max-width: 680px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

/* Logo and Header Section */
.pir-form-wrapper::before {
  content: "";
  display: block;
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
}

.pir-form-wrapper > h2 {
  margin-top: -80px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.pir-form-wrapper > h2::before {
  content: "";
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  background-image: url("https://reporter.veegam.com/wp-content/uploads/2025/12/Puttaparthi-3.png");
  background-size: 220px;
  background-position: center;
  background-repeat: no-repeat;
    
}

.pir-form-wrapper > h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 8px;
}

.pir-form-wrapper > p {
  text-align: center;
  color: #718096;
  font-size: 15px;
  margin-bottom: 32px;
  padding: 0 24px;
}

/* Form Styles */
#pirForm {
  padding: 0 24px 32px;
}

.pir-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #2d3748;
  margin: 32px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pir-section-title::before {
  content: "";
  width: 4px;
  height: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.pir-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 8px;
  margin-top: 16px;
}

.pir-input,
.pir-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-family: inherit;
  background: #f7fafc;
  color: #2d3748;
}

.pir-input:focus,
.pir-textarea:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.pir-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

/* Location Button */
.pir-location-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pir-location-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.pir-location-btn:active {
  transform: translateY(0);
}

.pir-location-btn i {
  font-size: 18px;
}

#pir_location_preview {
  background: #f0f4ff;
  border: 2px solid #dce5ff;
  border-radius: 10px;
  padding: 16px;
  margin-top: 16px;
  color: #2d3748;
}

#pir_location_preview b {
  display: block;
  margin-bottom: 8px;
  color: #667eea;
  font-size: 14px;
}

#pir_location_text {
  font-size: 13px;
  color: #4a5568;
  line-height: 1.5;
}

/* Video Upload Box */
.pir-video-box {
  background: linear-gradient(135deg, #f0f4ff 0%, #e9f0ff 100%);
  border: 2px dashed #c3d4ff;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  margin: 16px 0;
  transition: all 0.3s ease;
}

.pir-video-box:hover {
  border-color: #667eea;
  background: linear-gradient(135deg, #e9f0ff 0%, #dce5ff 100%);
}

.pir-video-box i {
  font-size: 48px;
  color: #667eea;
  margin-bottom: 16px;
  display: block;
}

.pir-video-box p {
  color: #2d3748;
  margin-bottom: 16px;
}

.pir-video-box .pir-label {
  margin-top: 0;
  text-align: center;
}

.pir-video-box .pir-input {
  margin-top: 12px;
  padding: 12px;
  background: white;
  cursor: pointer;
}

.pir-video-box .pir-input::-webkit-file-upload-button {
  padding: 10px 20px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pir-video-box .pir-input::-webkit-file-upload-button:hover {
  background: #5568d3;
}

/* Submit Button */
.pir-btn {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 32px;
  box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pir-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

.pir-btn:active {
  transform: translateY(0);
}

/* Success Modal */
#pirSuccessModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
  z-index: 99999;
  animation: fadeIn 0.3s ease;
}

#pirSuccessModal.show {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#pirSuccessModal > div {
  background: white;
  width: 90%;
  max-width: 400px;
  padding: 40px 32px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#pirSuccessModal i {
  font-size: 72px;
  color: #48bb78;
  margin-bottom: 20px;
  animation: scaleIn 0.5s ease 0.2s both;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

#pirSuccessModal h2 {
  font-size: 26px;
  color: #2d3748;
  margin-bottom: 12px;
  font-weight: 700;
}

#pirSuccessModal p {
  color: #718096;
  font-size: 15px;
  margin-bottom: 28px;
  line-height: 1.5;
}

#pirSuccessModal button {
  padding: 14px 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#pirSuccessModal button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#pirSuccessModal button:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 12px;
  }

  .pir-form-wrapper {
    border-radius: 12px;
  }

  .pir-form-wrapper::before {
    height: 120px;
  }

  .pir-form-wrapper > h2::before {
    width: 70px;
    height: 70px;
  }

  .pir-form-wrapper > h2 {
    font-size: 24px;
    margin-top: -70px;
  }

  .pir-form-wrapper > p {
    font-size: 14px;
    margin-bottom: 24px;
  }

  #pirForm {
    padding: 0 20px 24px;
  }

  .pir-section-title {
    font-size: 16px;
    margin: 24px 0 16px;
  }

  .pir-label {
    font-size: 13px;
    margin-top: 12px;
  }

  .pir-input,
  .pir-textarea {
    padding: 10px 14px;
    font-size: 14px;
  }

  .pir-textarea {
    min-height: 100px;
  }

  .pir-video-box {
    padding: 24px 16px;
  }

  .pir-video-box i {
    font-size: 40px;
  }

  .pir-btn {
    padding: 14px 20px;
    font-size: 15px;
    margin-top: 24px;
  }

  #pirSuccessModal > div {
    width: 85%;
    padding: 32px 24px;
  }

  #pirSuccessModal i {
    font-size: 60px;
  }

  #pirSuccessModal h2 {
    font-size: 22px;
  }

  #pirSuccessModal p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .pir-form-wrapper::before {
    height: 100px;
  }

  .pir-form-wrapper > h2::before {
    width: 80px;
    height: 80px;
  }

  .pir-form-wrapper > h2 {
    font-size: 22px;
    margin-top: -60px;
  }

  #pirForm {
    padding: 0 16px 20px;
  }

  .pir-section-title {
    font-size: 15px;
  }

  .pir-location-btn {
    padding: 12px 16px;
    font-size: 14px;
  }

  .pir-video-box {
    padding: 20px 12px;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
  }

  .pir-form-wrapper {
    box-shadow: none;
  }

  .pir-btn,
  #pirSuccessModal {
    display: none;
  }
}
