/* Service Request Survey Modal */

.sr-survey-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

/* Payment overlay — same pattern as task_details_popup_overlay */
#service-request-payment-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

#service-request-payment-overlay .publish_form_container {
  background: #fff;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#service-request-payment-overlay .publish_form_header {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#service-request-payment-overlay .publish_form_header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

#service-request-payment-overlay .publish_form_close {
  background: none;
  border: none;
  border-radius: 4px;
  color: #666;
  cursor: pointer;
  display: flex;
  padding: 4px;
}

#service-request-payment-overlay .publish_form_close:hover {
  background: #f3f4f6;
  color: #374151;
}

#service-request-payment-overlay .publish_form_close svg {
  width: 20px;
  height: 20px;
}

#service-request-payment-overlay .publish_form {
  padding: 20px;
}

#service-request-payment-overlay .form_group {
  margin-bottom: 20px;
}

#service-request-payment-overlay .checkbox_container {
  display: flex;
  gap: 8px;
}

#service-request-payment-overlay .checkbox_container label {
  margin: 0;
  cursor: pointer;
  font-weight: 400;
}

#service-request-payment-overlay .form_actions {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

#service-request-payment-overlay .btn_primary {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  background: #3b82f6;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
}

#service-request-payment-overlay .btn_primary:hover {
  background: #2563eb;
}

#service-request-payment-overlay .btn_primary:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

@media (max-width: 768px) {
  #service-request-payment-overlay {
    align-items: flex-start;
    padding: 12px;
    box-sizing: border-box;
  }

  #service-request-payment-overlay .publish_form_container {
    width: 100%;
  }

  #service-request-payment-overlay .form_actions {
    flex-direction: column;
  }

  #service-request-payment-overlay .btn_primary {
    width: 100%;
  }
}

.sr-survey-modal {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.sr-survey-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.sr-survey-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

.sr-survey-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.sr-survey-close:hover {
  color: #1f2937;
}

.sr-survey-progress {
  padding: 0.5rem 1.5rem;
  font-size: 0.8125rem;
  color: #6b7280;
}

.sr-survey-body {
  padding: 1rem 1.5rem;
  flex: 1;
}

.sr-survey-question {
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.sr-survey-textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.9375rem;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.sr-survey-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.sr-survey-counter {
  text-align: right;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

.sr-survey-footer {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.sr-survey-btn {
  flex: 1;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s, opacity 0.2s;
}

.sr-survey-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sr-survey-btn-back {
  background: #f3f4f6;
  color: #374151;
}

.sr-survey-btn-back:hover {
  background: #e5e7eb;
}

.sr-survey-btn-next {
  background: #2563eb;
  color: #fff;
}

.sr-survey-btn-next:hover:not(:disabled) {
  background: #1d4ed8;
}
