/* Public styles for TheCRM Ticket Form */

.thecrm-ticket-form-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  border: 1px solid #f0f0f5;
}

.thecrm-form-group {
  margin-bottom: 20px;
}

.thecrm-form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.thecrm-form-row .thecrm-form-group {
  flex: 1;
  min-width: 250px;
}

.thecrm-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #2c3338;
}

.thecrm-form label .required {
  color: #d63638;
}

.thecrm-form input[type="text"],
.thecrm-form input[type="email"],
.thecrm-form select,
.thecrm-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s ease-in-out;
  background-color: #fcfcfd;
}

.thecrm-form input:focus,
.thecrm-form select:focus,
.thecrm-form textarea:focus {
  outline: none;
  border-color: #2271b1;
  box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.1);
  background-color: #fff;
}

.thecrm-submit-button {
  background-color: #2271b1;
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
}

.thecrm-submit-button:hover {
  background-color: #135e96;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 113, 177, 0.2);
}

.thecrm-submit-button:active {
  transform: translateY(0);
}

.thecrm-submit-button:disabled {
  background-color: #a7aaad;
  cursor: not-allowed;
  transform: none;
}

.thecrm-form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.thecrm-form-message.success {
  background-color: #edfaef;
  border: 1px solid #b8e6c1;
  color: #008a20;
}

.thecrm-form-message.error {
  background-color: #fcf0f1;
  border: 1px solid #f8d7da;
  color: #d63638;
}

/* Spinner */
.thecrm-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: thecrm-spin 1s ease-in-out infinite;
  margin-left: 10px;
}

@keyframes thecrm-spin {
  to {
    transform: rotate(360deg);
  }
}

.submitting .thecrm-spinner {
  display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .thecrm-form-row {
    flex-direction: column;
    gap: 0;
  }
}
