/* ./pitpar/css/form.css */
/*	form.css	*/

/*	CONTACT FORM:	*/
#contact-form,
#contact-form-main {
  max-width: 600px;
  margin: auto;
}
#contact-form-main {
  background: #111;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255,255,255,0.1);
}

#contact-form textarea,
#contact-form-main textarea {
  width: 100%;
  height: 140px;
  margin-top: 10px;
  resize: none;
  border-radius: 8px;
  background: #D3D3D3;
}

#contact-form select,
#contact-form-main select {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border-radius: 8px;
  background: #D3D3D3;
}
#contact-form input,
#contact-form-main input {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: #D3D3D3;
}

#contact-form button,
#contact-form-main button {
  background: black;
  border: 2px solid white;
  border-radius: 10px;
  padding: 10px;
  transition: 0.2s;
}

#contact-form button:hover,
#contact-form-main button:hover {
  background: white;
  color: black;
}

.form-row {
	display: flex;
	gap: 10px;
}

.form-row input {
	width: 100%;
	flex: 1;
	background: #D3D3D3;
}

/* Mensajes */
#form-status {
  margin-top: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

#form-status.success {
  color: #28a745;
}

#form-status.error {
  color: #dc3545;
}

/* Input error */
.input-error {
  border: 2px solid #dc3545 !important;
  animation: shake 0.3s ease;
}

/* Botón loading */
#submit-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
#contact-form select {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border-radius: 8px;
  background: #D3D3D3;
}
#submit-btn:disabled {
  opacity: 0.6;
  cursor: url("../cursors/unavailable.cur"), not-allowed;
}

/* Spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  display: none;
  animation: spin 0.6s linear infinite;
}

.spinner.active {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Animación shake */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}
