/* ===================================
   FEEDBACK BUTTON - Better Positioning
   =================================== */

.feedback-button {
  position: fixed;
  right: 12px;  /* Changed from 0 to show more of the button */
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: right center;
  background: linear-gradient(135deg, #0066CC, #00D4FF);
  color: white;
  border: none;
  padding: 15px 30px;  /* Increased padding for better visibility */
  border-radius: 12px 12px 0 0;
  cursor: pointer;
  font-weight: 700;  /* Made bolder */
  font-size: 1.1rem;  /* Slightly larger */
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: -3px 3px 20px rgba(0, 212, 255, 0.6);  /* Stronger glow */
  transition: all 0.3s ease;
  z-index: 999;
  font-family: 'Inter', sans-serif;
  letter-spacing: 1.5px;
}

.feedback-button:hover {
  right: 15px;  /* Slides out more on hover */
  box-shadow: -5px 5px 30px rgba(0, 212, 255, 0.8);
  padding: 15px 35px;
}

.feedback-icon {
  font-size: 1.5rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1);
    filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.8));
  }
  50% { 
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 1));
  }
}

.feedback-text {
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Alternative: If you want it more visible, use this instead */
.feedback-button-visible {
  right: 20px;  /* More visible by default */
}

/* ===================================
   FEEDBACK MODAL
   =================================== */

.feedback-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 13, 24, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10000;
  overflow-y: auto;
  padding: 40px 20px;
  animation: fadeIn 0.3s ease;
}

.feedback-modal.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

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

.feedback-modal-content {
  background: linear-gradient(135deg, rgba(10, 25, 41, 0.95), rgba(5, 13, 24, 0.95));
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  padding: 40px;
  position: relative;
  animation: slideUp 0.4s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

.feedback-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 2rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.feedback-close:hover {
  background: rgba(255, 76, 76, 0.2);
  border-color: #ff4c4c;
  color: #ff4c4c;
  transform: rotate(90deg);
}

.feedback-header {
  text-align: center;
  margin-bottom: 40px;
}

.feedback-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0066CC, #00D4FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.feedback-header p {
  color: #B0BEC5;
  font-size: 1.1rem;
}

/* ===================================
   FORM STYLING
   =================================== */

.form-section {
  margin-bottom: 35px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h3 {
  color: #00D4FF;
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: white;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00D4FF;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(176, 190, 197, 0.5);
}

.form-group small {
  display: block;
  color: #B0BEC5;
  font-size: 0.85rem;
  margin-top: 6px;
}

.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='%2300D4FF' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 45px;
}

.form-group select option {
  background: #0A1929;
  color: white;
}

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

/* Checkbox Styling */
.checkbox-group {
  margin: 15px 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 15px;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.checkbox-label:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.4);
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #00D4FF;
}

.checkbox-label span {
  color: white;
  font-size: 1rem;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-actions button {
  padding: 14px 35px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: 'Inter', sans-serif;
}

.btn-secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-submit {
  background: linear-gradient(135deg, #0066CC, #00D4FF);
  color: white;
  box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.btn-submit:hover {
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
  transform: translateY(-2px);
}

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

/* Success Message in Modal */
.feedback-success {
  text-align: center;
  padding: 60px 40px;
}

.feedback-success h2 {
  color: #00ff88;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.feedback-success p {
  color: #B0BEC5;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
  .feedback-modal-content {
    padding: 30px 20px;
    margin: 20px 10px;
  }
  
  .feedback-header h2 {
    font-size: 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions button {
    width: 100%;
  }
}
